build.xml
changeset 16 55b0d5006e7b
parent 9 506c7ab82d39
equal deleted inserted replaced
15:d4b2b9a87d80 16:55b0d5006e7b
     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="manifest" value="${project}.manifest" />
    10 	<property name="docs.dir" value="doc/" />
    10 	<property name="docs.dir" value="doc/" />
    11 	<property name="debug" value="simu" />
    11 	<property name="debug" value="simu" />
       
    12 	<property name="jsp" value="{env.jsp}" />
    12 
    13 
    13 	<property name="distributable.exts"
    14 	<property name="distributable.exts"
    14 		value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" />
    15 		value="**/*.class,**/*.gif,**/*.html,**/*.jar,**/*.jnlp,**/*.jpg,**/*.png" />
    15 	<path id="classpath">
    16 	<path id="classpath">
    16 		<pathelement location="." />
    17 		<pathelement location="." />
    55     	<delete dir="${docs.dir}"/>
    56     	<delete dir="${docs.dir}"/>
    56 	</target>
    57 	</target>
    57 
    58 
    58 	<target name="compile">
    59 	<target name="compile">
    59 		<echo message="compiling ${package.dir} tree." />
    60 		<echo message="compiling ${package.dir} tree." />
    60 		<javac source="1.5" target="1.5" srcdir="${package.dir}"
    61 		<javac srcdir="${package.dir}"
    61 			sourcepath="${basedir}" debug="on">
    62 			sourcepath="${basedir}" debug="on">
    62 			<classpath refid="classpath" />
    63 			<classpath refid="classpath" />
    63 		</javac>
    64 		</javac>
    64 	</target>
    65 	</target>
    65 
    66 
    69 			includes="org/ images/"
    70 			includes="org/ images/"
    70 			manifest="${manifest}" />
    71 			manifest="${manifest}" />
    71 	</target>
    72 	</target>
    72 
    73 
    73 	<target name="post" depends="jar">
    74 	<target name="post" depends="jar">
    74 		<signjar jar="${jar.file}" alias="spectre" storepass="${env.jsp}" />
    75 		<signjar jar="${jar.file}" alias="spectre" storepass="${jsp}" />
    75 		<copy file="${jar.file}" todir="${www.dir}"/>
    76 		<!-- <copy file="${jar.file}" todir="${www.dir}"/> -->
    76 	</target>
    77 	</target>
    77 
    78 
    78 	<target name="debug" depends="compile">
    79 	<target name="debug" depends="compile">
    79 		<java classname="${package.name}.schach.Schach"
    80 		<java classname="${package.name}.schach.Schach"
    80 			failonerror="true" fork="yes">
    81 			failonerror="true" fork="yes">