summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-05-29 23:56:51 +0200
committerMichael Bien <[email protected]>2010-05-29 23:56:51 +0200
commit0bcc9dd8f36dabfef118f3546a08f7d5666714ef (patch)
tree3e7ff436114939f0edd6aec0b812c95109977768
parent2eb3fda0824284e6e955664af79cd9bf40333d52 (diff)
added test-file target. Run it with e.g: "ant test-file -Dtest.file=com/jogamp/opencl/LowLevelBindingTest.java".
minimum ant version is now 1.8.
-rw-r--r--build.xml8
-rw-r--r--nbproject/project.xml3
2 files changed, 9 insertions, 2 deletions
diff --git a/build.xml b/build.xml
index 63f17725..73f9c8dc 100644
--- a/build.xml
+++ b/build.xml
@@ -77,7 +77,7 @@
<!--compile build utilities-->
<mkdir dir="${etc.build.dir}"/>
- <javac destdir="${etc.build.dir}" classpath="${ant.core.lib}" source="1.5" debug="true" debuglevel="lines,vars,source">
+ <javac destdir="${etc.build.dir}" classpath="${ant.core.lib}" source="1.5" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
<src path="${basedir}/etc/src"/>
</javac>
@@ -311,4 +311,10 @@
<zip destfile="${dist.javadoc.dir}/../jocl-javadoc.zip" basedir="${dist.javadoc.dir}"/>
</target>
+ <target name="test-file">
+ <property name="javac.includes" value="${test.file}"/>
+ <property name="test.includes" value="${test.file}"/>
+ <antcall target="test-single" inheritall="true"/>
+ </target>
+
</project>
diff --git a/nbproject/project.xml b/nbproject/project.xml
index 6de0ad31..8ff22a5e 100644
--- a/nbproject/project.xml
+++ b/nbproject/project.xml
@@ -4,7 +4,8 @@
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>JOCL</name>
- <minimum-ant-version>1.6.5</minimum-ant-version>
+ <minimum-ant-version>1.8</minimum-ant-version>
+ <explicit-platform explicit-source-supported="true"/>
<source-roots>
<root id="src.dir"/>
<root id="src.java.dir"/>