author | Markus Brökers <mbroeker@largo.homelinux.org> |
Mon, 30 Aug 2010 15:21:47 +0200 | |
changeset 146 | 0ffa20c26b2d |
parent 92 | 0bc2646daa82 |
permissions | -rw-r--r-- |
92
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
2 |
<project name="Hello" basedir="." default="jar"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
3 |
<property name="project" value="Hello" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
4 |
<property name="package.name" value="example.hello" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
5 |
<property name="package.dir" value="example/hello" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
6 |
<property name="jar.file" value="bin/hello.jar" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
7 |
<property name="classpath.dir" value="/usr/local/lib/classes" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
8 |
<property name="www.dir" value="/var/www/localhost/htdocs/classes" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
9 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
10 |
<property name="distributable.exts" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
11 |
value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
12 |
<path id="classpath"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
13 |
<pathelement location="." /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
14 |
</path> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
15 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
16 |
<!-- Targets --> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
17 |
<target name="clean"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
18 |
<echo |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
19 |
message="deleting all class- and jar-files in ${package.dir} tree" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
20 |
<delete> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
21 |
<fileset dir="${package.dir}" includes="**/*.class" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
22 |
<fileset dir="." includes="**/*.*~" defaultexcludes="no" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
23 |
</delete> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
24 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
25 |
<delete file="${jar.file}" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
26 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
27 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
28 |
<target name="compile"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
29 |
<echo message="compiling ${package.dir} tree." /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
30 |
<javac source="1.5" target="1.5" srcdir="${package.dir}" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
31 |
sourcepath="${basedir}" debug="on"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
32 |
<classpath refid="classpath" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
33 |
</javac> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
34 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
35 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
36 |
<target name="jar" depends="compile"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
37 |
<property environment="env" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
38 |
<jar destfile="${jar.file}" basedir="${basedir}" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
39 |
includes="example/" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
40 |
manifest="${project}.manifest" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
41 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
42 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
43 |
<target name="post" depends="jar"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
44 |
<signjar jar="${jar.file}" alias="spectre" storepass="${env.jsp}" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
45 |
<copy file="${jar.file}" todir="${www.dir}"/> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
46 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
47 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
48 |
<target name="client" depends="compile"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
49 |
<java classname="${package.name}.Client" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
50 |
failonerror="true" fork="yes"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
51 |
<classpath refid="classpath" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
52 |
</java> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
53 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
54 |
|
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
55 |
<target name="server" depends="compile"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
56 |
<java classname="${package.name}.Server" |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
57 |
failonerror="true" fork="yes"> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
58 |
<classpath refid="classpath" /> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
59 |
</java> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
60 |
</target> |
0bc2646daa82
RMI Hello Example from Sun Microsystems
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff
changeset
|
61 |
</project> |