--- a/build.xml
+++ b/build.xml
@@ -6,12 +6,13 @@
<property name="jar.file" value="bin/games.jar" />
<property name="classpath.dir" value="/usr/local/lib/classes" />
<property name="www.dir" value="/var/www/localhost/htdocs/classes" />
+ <property name="manifest" value="${project}.manifest" />
<property name="docs.dir" value="doc/" />
<property name="debug" value="simu" />
<property name="distributable.exts"
value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" />
- <path id="Schach.classpath">
+ <path id="classpath">
<pathelement location="." />
</path>
@@ -36,8 +37,8 @@
version="true"
use="true"
windowtitle="${ant.project.name}"
- sourcepathref="Schach.classpath"
- packagenames="org.*"
+ sourcepathref="classpath"
+ packagenames="org.*"
verbose="false">
<doctitle><![CDATA[<h1>${ant.project.name}</h1>]]></doctitle>
<bottom>
@@ -58,7 +59,7 @@
<echo message="compiling ${package.dir} tree." />
<javac source="1.5" target="1.5" srcdir="${package.dir}"
sourcepath="${basedir}" debug="on">
- <classpath refid="Schach.classpath" />
+ <classpath refid="classpath" />
</javac>
</target>
@@ -66,7 +67,7 @@
<property environment="env" />
<jar destfile="${jar.file}" basedir="${basedir}"
includes="org/ images/"
- manifest="schach.manifest" />
+ manifest="${manifest}" />
</target>
<target name="post" depends="jar">
@@ -75,17 +76,17 @@
</target>
<target name="debug" depends="compile">
- <java classname="org.homelinux.largo.schach.Schach"
+ <java classname="${package.name}.schach.Schach"
failonerror="true" fork="yes">
- <classpath refid="Schach.classpath" />
+ <classpath refid="classpath" />
<arg line="${debug}" />
</java>
</target>
<target name="checkers" depends="compile">
- <java classname="org.homelinux.largo.checkers.Checkers"
+ <java classname="${package.name}.checkers.Checkers"
failonerror="true" fork="yes">
- <classpath refid="Schach.classpath" />
+ <classpath refid="classpath" />
<arg line="${debug}" />
</java>
</target>