summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nbproject/ide-file-targets.xml24
-rw-r--r--nbproject/project.xml26
2 files changed, 50 insertions, 0 deletions
diff --git a/nbproject/ide-file-targets.xml b/nbproject/ide-file-targets.xml
new file mode 100644
index 0000000..c7f6fb0
--- /dev/null
+++ b/nbproject/ide-file-targets.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir=".." name="JOAL-IDE">
+ <!-- TODO: edit the following target according to your needs -->
+ <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
+ <target name="run-selected-file-in-src">
+ <fail unless="run.class">Must set property 'run.class'</fail>
+ <java classname="${run.class}" failonerror="true" fork="true">
+ <jvmarg value="-Djava.library.path=${basedir}/../gluegen/build/obj:${basedir}/build/obj"/>
+ <jvmarg value="-Djogamp.debug.NativeLibrary=true"/>
+ <classpath>
+ <pathelement path="../gluegen/build/gluegen-rt.jar:build/classes:test/classes:../gluegen/make/lib/junit.jar"/>
+ </classpath>
+ </java>
+ </target>
+ <!-- TODO: edit the following target according to your needs -->
+ <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#compilesingle) -->
+ <target name="compile-selected-files-in-src">
+ <fail unless="files">Must set property 'files'</fail>
+ <!-- TODO decide on and define some value for ${build.classes.dir} -->
+ <javac destdir="test/classes" includes="${files}" source="1.5" srcdir="test/src" includeantruntime="false">
+ <classpath path="../gluegen/build/gluegen-rt.jar:build/classes:../gluegen/make/lib/junit.jar"/>
+ </javac>
+ </target>
+</project>
diff --git a/nbproject/project.xml b/nbproject/project.xml
index bb958bd..dc47ad4 100644
--- a/nbproject/project.xml
+++ b/nbproject/project.xml
@@ -52,6 +52,32 @@
<script>${ant.script}</script>
<target>test</target>
</action>
+ <action name="run.single">
+ <script>nbproject/ide-file-targets.xml</script>
+ <target>run-selected-file-in-src</target>
+ <context>
+ <property>run.class</property>
+ <folder>test/src</folder>
+ <pattern>\.java$</pattern>
+ <format>java-name</format>
+ <arity>
+ <one-file-only/>
+ </arity>
+ </context>
+ </action>
+ <action name="compile.single">
+ <script>nbproject/ide-file-targets.xml</script>
+ <target>compile-selected-files-in-src</target>
+ <context>
+ <property>files</property>
+ <folder>test/src</folder>
+ <pattern>\.java$</pattern>
+ <format>relative-path</format>
+ <arity>
+ <separated-files>,</separated-files>
+ </arity>
+ </context>
+ </action>
</ide-actions>
<view>
<items>