4 <property name="package.name" value="org.homelinux.largo" /> |
4 <property name="package.name" value="org.homelinux.largo" /> |
5 <property name="package.dir" value="org/homelinux/largo" /> |
5 <property name="package.dir" value="org/homelinux/largo" /> |
6 <property name="jar.file" value="bin/games.jar" /> |
6 <property name="jar.file" value="bin/games.jar" /> |
7 <property name="classpath.dir" value="/usr/local/lib/classes" /> |
7 <property name="classpath.dir" value="/usr/local/lib/classes" /> |
8 <property name="www.dir" value="/var/www/localhost/htdocs/classes" /> |
8 <property name="www.dir" value="/var/www/localhost/htdocs/classes" /> |
|
9 <property name="manifest" value="${project}.manifest" /> |
9 <property name="docs.dir" value="doc/" /> |
10 <property name="docs.dir" value="doc/" /> |
10 <property name="debug" value="simu" /> |
11 <property name="debug" value="simu" /> |
11 |
12 |
12 <property name="distributable.exts" |
13 <property name="distributable.exts" |
13 value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" /> |
14 value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" /> |
14 <path id="Schach.classpath"> |
15 <path id="classpath"> |
15 <pathelement location="." /> |
16 <pathelement location="." /> |
16 </path> |
17 </path> |
17 |
18 |
18 <!-- Targets --> |
19 <!-- Targets --> |
19 <target name="clean"> |
20 <target name="clean"> |
34 <javadoc destdir="${docs.dir}" |
35 <javadoc destdir="${docs.dir}" |
35 author="true" |
36 author="true" |
36 version="true" |
37 version="true" |
37 use="true" |
38 use="true" |
38 windowtitle="${ant.project.name}" |
39 windowtitle="${ant.project.name}" |
39 sourcepathref="Schach.classpath" |
40 sourcepathref="classpath" |
40 packagenames="org.*" |
41 packagenames="org.*" |
41 verbose="false"> |
42 verbose="false"> |
42 <doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle> |
43 <doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle> |
43 <bottom> |
44 <bottom> |
44 <![CDATA[<i>Developed by Largo Enterprises in 2008</i>]]> |
45 <![CDATA[<i>Developed by Largo Enterprises in 2008</i>]]> |
45 </bottom> |
46 </bottom> |
56 |
57 |
57 <target name="compile"> |
58 <target name="compile"> |
58 <echo message="compiling ${package.dir} tree." /> |
59 <echo message="compiling ${package.dir} tree." /> |
59 <javac source="1.5" target="1.5" srcdir="${package.dir}" |
60 <javac source="1.5" target="1.5" srcdir="${package.dir}" |
60 sourcepath="${basedir}" debug="on"> |
61 sourcepath="${basedir}" debug="on"> |
61 <classpath refid="Schach.classpath" /> |
62 <classpath refid="classpath" /> |
62 </javac> |
63 </javac> |
63 </target> |
64 </target> |
64 |
65 |
65 <target name="jar" depends="compile"> |
66 <target name="jar" depends="compile"> |
66 <property environment="env" /> |
67 <property environment="env" /> |
67 <jar destfile="${jar.file}" basedir="${basedir}" |
68 <jar destfile="${jar.file}" basedir="${basedir}" |
68 includes="org/ images/" |
69 includes="org/ images/" |
69 manifest="schach.manifest" /> |
70 manifest="${manifest}" /> |
70 </target> |
71 </target> |
71 |
72 |
72 <target name="post" depends="jar"> |
73 <target name="post" depends="jar"> |
73 <signjar jar="${jar.file}" alias="spectre" storepass="${env.jsp}" /> |
74 <signjar jar="${jar.file}" alias="spectre" storepass="${env.jsp}" /> |
74 <copy file="${jar.file}" todir="${www.dir}"/> |
75 <copy file="${jar.file}" todir="${www.dir}"/> |
75 </target> |
76 </target> |
76 |
77 |
77 <target name="debug" depends="compile"> |
78 <target name="debug" depends="compile"> |
78 <java classname="org.homelinux.largo.schach.Schach" |
79 <java classname="${package.name}.schach.Schach" |
79 failonerror="true" fork="yes"> |
80 failonerror="true" fork="yes"> |
80 <classpath refid="Schach.classpath" /> |
81 <classpath refid="classpath" /> |
81 <arg line="${debug}" /> |
82 <arg line="${debug}" /> |
82 </java> |
83 </java> |
83 </target> |
84 </target> |
84 |
85 |
85 <target name="checkers" depends="compile"> |
86 <target name="checkers" depends="compile"> |
86 <java classname="org.homelinux.largo.checkers.Checkers" |
87 <java classname="${package.name}.checkers.Checkers" |
87 failonerror="true" fork="yes"> |
88 failonerror="true" fork="yes"> |
88 <classpath refid="Schach.classpath" /> |
89 <classpath refid="classpath" /> |
89 <arg line="${debug}" /> |
90 <arg line="${debug}" /> |
90 </java> |
91 </java> |
91 </target> |
92 </target> |
92 </project> |
93 </project> |