<!-- The main class of the application -->
<property name="main-class" value="net.sf.openrocket.startup.Startup"/>
- <property name="main-dir" value="net/sf/openrocket/startup"/>
<!-- Classpath definitions -->
<pathelement location="${basedir}"/>
<pathelement location="${build-test.dir}"/>
<pathelement location="${classes.dir}"/>
+ <pathelement location="${src-test.dir}"/>
<!-- <pathelement location="${ant.library.dir}/junit4.jar"/> -->
<pathelement location="lib-test/junit-4.7.jar"/>
</path>
<!-- BUILD -->
<target name="build">
<mkdir dir="${classes.dir}"/>
- <echo>Compiling main classes</echo>
- <javac debug="true" srcdir="${src.dir}" destdir="${classes.dir}" excludes="${main-dir}/*" classpathref="classpath"/>
- <echo>Compiling startup classes</echo>
- <javac debug="true" srcdir="${src.dir}/${main-dir}" destdir="${classes.dir}" source="1.4" classpathref="classpath"/>
+ <echo level="info">Compiling main classes</echo>
+ <javac debug="true" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
+ <echo level="info">Copying build.properties</echo>
<copy file="build.properties" todir="${dist.dir}"/>
</target>
<target name="check" depends="checktodo,checkascii"/>
<!-- CHECK TODOs -->
+ <target name="todo" depends="checktodo"/>
<target name="checktodo">
<tempfile property="todo.file" prefix="checktodo-"/>
<echo>Checking project for critical TODOs.</echo>
<!-- CHECK TODOs -->
+ <target name="ascii" depends="checkascii"/>
<target name="checkascii">
<tempfile property="ascii.file" prefix="checkascii-"/>
<echo>Checking project for non-ASCII characters.</echo>
<echo>Running unit tests</echo>
<mkdir dir="tmp/rawtestoutput"/>
- <junit fork="yes" forkmode="once" printsummary="true" failureproperty="junit.failure">
+ <junit fork="yes" forkmode="once" printsummary="false" failureproperty="junit.failure">
<classpath>
<path refid="test-classpath"/>
<path location="${basedir}"/>
</classpath>
<batchtest todir="tmp/rawtestoutput">
<fileset dir="${build-test.dir}">
- <include name="**/*Test*.class" />
+ <include name="**/Test*.class" />
+ <include name="**/*Test.class" />
<exclude name="**/*$*.class" />
<exclude name="Test.class" />
</fileset>