All pastes #84766 Raw Edit

Stuff

public xml v1 · immutable
·published 2006-07-11 09:32 UTC
rendered paste body
<project name="RazorBack" default="test" basedir=".">    <description>        The first version of the build file    </description>  <!-- set global properties for this build -->  <property name="src" location="src"/>  <property name="build" location="bin"/>  <property name="dist"  location="dist"/>  <property name="junit.dir" value="junit-results"/>  <property name="junit.jar" location="/home/kaamoss/APIs/Java/junit-4.1.jar"/>  <property name="test.class" value="LTQA.BACKEND.etc.TestCommon"/>  <path id="classpath">  	<pathelement location="${build}" />  	<pathelement location="${junit.jar}" />  </path>	  <target name="init">    <!-- Create the time stamp -->    <tstamp/>    <!-- Create the build directory structure used by compile -->    <mkdir dir="${build}"/>    <mkdir dir="${junit.dir}"/>  </target>  <target name="compile" depends="init"        description="compile the source " >    <!-- Compile the java code from ${src} into ${build} -->    <javac srcdir="${src}" destdir="${build}">    		<classpath refid="classpath"/>    </javac>  </target>	  <target name="test" depends="dist" description="unit test" >  	<junit errorProperty="test.failed" failureProperty="test.failed">	      <test name="${test.class}" todir="${junit.dir}" />	      <formatter type="brief" usefile="false" />	      <formatter type="xml" />	      <classpath refid="classpath" />  	</junit>	<fail message="Tests failed: check test reports." if="test.failed" />  </target>  <target name="dist" depends="compile"        description="generate the distribution" >    <!-- Create the distribution directory -->    <mkdir dir="${dist}/lib"/>    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->    <jar jarfile="${dist}/lib/RazorBack-${DSTAMP}.jar" basedir="${build}">		<manifest>			<attribute name="Main-Class" value="LTQA.GUI.main.LTQAgui"/>		</manifest>    </jar>  </target>  <target name="run" depends="dist">  	<java jar="${dist}/lib/RazorBack-${DSTAMP}.jar" fork="true" />  </target>	  <target name="clean"        description="clean up" >    <!-- Delete the ${build} and ${dist} directory trees -->    <delete dir="${build}"/>    <delete dir="${dist}"/>  </target></project>