aboutsummaryrefslogtreecommitdiffstats
path: root/nbproject
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-07-10 14:30:49 +0200
committerMichael Bien <[email protected]>2010-07-10 14:30:49 +0200
commit6a6faf9388bdbc2e3b762c20a89a0745698fb1c7 (patch)
tree0cf4de7c18ed5fea7502617e11723a54ef63fb7d /nbproject
parentcca0e32878a2c196aab969e1dfb75de6bca6b3f7 (diff)
added netbeans compile-single and run-single acthion bindings.
Diffstat (limited to 'nbproject')
-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>