Created
May 5, 2012 07:15
-
-
Save haydenmuhl/2600580 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="hNes" default="build" basedir="."> | |
<presetdef name="javac"> | |
<javac includeantruntime="false" /> | |
</presetdef> | |
<property name="src" location="src" /> | |
<property name="build" location="build" /> | |
<property name="test" location="test" /> | |
<property name="src.classes" location="${build}/classes" /> | |
<property name="test.classes" location="${build}/tests" /> | |
<target name="build"> | |
<mkdir dir="${src.classes}" /> | |
<javac srcdir="${src}" destdir="${src.classes}" /> | |
</target> | |
<target name="test" depends="build"> | |
<mkdir dir="${test.classes}" /> | |
<javac srcdir="${test}" destdir="${test.classes}" > | |
<classpath> | |
<pathelement path="${src.classes}" /> | |
<pathelement location="${test}/*" /> | |
</classpath> | |
</javac> | |
</target> | |
<target name="clean"> | |
<delete dir="${build}" /> | |
</target> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Buildfile: /home/hayden/dev/nes/build.xml | |
Trying to override old definition of task javac | |
build: | |
[javac] Compiling 1 source file to /home/hayden/dev/nes/build/classes | |
test: | |
[javac] Compiling 1 source file to /home/hayden/dev/nes/build/tests | |
[javac] /home/hayden/dev/nes/test/com.haydenmuhl.hnes/MainTest.java:3: package org.junit does not exist | |
[javac] import org.junit.*; | |
[javac] ^ | |
[javac] /home/hayden/dev/nes/test/com.haydenmuhl.hnes/MainTest.java:6: cannot find symbol | |
[javac] symbol : class Test | |
[javac] location: class com.haydenmuhl.hnes.MainTest | |
[javac] @Test | |
[javac] ^ | |
[javac] /home/hayden/dev/nes/test/com.haydenmuhl.hnes/MainTest.java:10: cannot find symbol | |
[javac] symbol : method assertTrue(boolean) | |
[javac] location: class com.haydenmuhl.hnes.MainTest | |
[javac] assertTrue(main.returnsTrue()); | |
[javac] ^ | |
[javac] 3 errors | |
BUILD FAILED | |
/home/hayden/dev/nes/build.xml:20: Compile failed; see the compiler error output for details. | |
Total time: 1 second |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
|-- build | |
| |-- classes | |
| | `-- com | |
| | `-- haydenmuhl | |
| | `-- hnes | |
| | `-- Main.class | |
| `-- tests | |
|-- build.xml | |
|-- README | |
|-- src | |
| `-- com.haydenmuhl.hnes | |
| `-- Main.java | |
`-- test | |
|-- com.haydenmuhl.hnes | |
| `-- MainTest.java | |
`-- junit-4.10.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment