summaryrefslogtreecommitdiffstats
path: root/make/build-junit.xml
diff options
context:
space:
mode:
Diffstat (limited to 'make/build-junit.xml')
-rw-r--r--make/build-junit.xml19
1 files changed, 18 insertions, 1 deletions
diff --git a/make/build-junit.xml b/make/build-junit.xml
index 749e73dbd..3ec367cbb 100644
--- a/make/build-junit.xml
+++ b/make/build-junit.xml
@@ -53,7 +53,21 @@
<!--
- Build/run junit.
-->
- <target name="junit.compile" depends="init">
+ <target name="junit.compile.check" depends="init">
+ <property name="jogl.test.jar.path" location="${jogl.test.jar}"/> <!-- absolute path -->
+ <echo message="jogl.test.jar ${jogl.test.jar.path}"/>
+ <uptodate property="junit.compile.skip">
+ <srcfiles dir= "." includes="*.xml"/>
+ <srcfiles dir= "${src.junit}" includes="**"/>
+ <srcfiles file="${nativewindow.all.jar}" />
+ <srcfiles file="${jogl.all.jar}" />
+ <srcfiles file="${newt.all.jar}" />
+ <srcfiles file="${gluegen.jar}" />
+ <mapper type="merge" to="${jogl.test.jar.path}"/>
+ </uptodate>
+ </target>
+
+ <target name="junit.compile" depends="junit.compile.check" unless="junit.compile.skip">
<!-- Perform the junit pass Java compile -->
<javac destdir="${classes}"
source="${host.sourcelevel}"
@@ -64,6 +78,9 @@
<classpath refid="junit_jogl_newt.compile.classpath"/>
<src path="${src.junit}" />
</javac>
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset file="${jogl.test.jar}" />
+ </delete>
<jar destfile="${jogl.test.jar}" filesonly="true">
<fileset dir="${classes}">
<include name="${java.part.test}"/>