From 8af67ed53bc9f24815eb55758bd25f8b61df415c Mon Sep 17 00:00:00 2001
From: Don Brutzman <brutzman@nps.edu>
Date: Sun, 21 Feb 2021 12:12:49 -0800
Subject: [PATCH] add compile/debug/run targets for Netbeans

---
 nbproject/ide-file-targets.xml | 36 ++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 nbproject/ide-file-targets.xml

diff --git a/nbproject/ide-file-targets.xml b/nbproject/ide-file-targets.xml
new file mode 100644
index 0000000000..230278d2a6
--- /dev/null
+++ b/nbproject/ide-file-targets.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir=".." name="X3D examples: Savage-IDE">
+    <path id="classpath">
+        <pathelement path="classes;lib/CreateContentCatalog.jar;lib/X3DJSAIL.4.0.full.jar;lib/ant-contrib-1.0b3.jar;lib/jslint4java-2.0.5.jar;lib/json-schema-validator-2.2.6-lib.jar"/>
+    </path>
+    <!-- TODO: edit the following target according to your needs -->
+    <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
+    <target name="debug-selected-file-in-examples">
+        <fail unless="debug.class">Must set property 'debug.class'</fail>
+        <nbjpdastart addressproperty="jpda.address" name="X3D examples: X3dForAdvancedModeling" transport="dt_socket">
+            <classpath refid="classpath"/>
+        </nbjpdastart>
+        <java classname="${debug.class}" fork="true">
+            <classpath refid="classpath"/>
+            <jvmarg value="-Xdebug"/>
+            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
+        </java>
+    </target>
+    <!-- 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-examples">
+        <fail unless="run.class">Must set property 'run.class'</fail>
+        <java classname="${run.class}" failonerror="true" fork="true">
+            <classpath refid="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-examples">
+        <fail unless="files">Must set property 'files'</fail>
+        <mkdir dir="classes"/>
+        <javac debug="on" destdir="classes" failonerror="false" includeantruntime="false" includes="${files}" source="1.8" srcdir=".." verbose="false">
+            <classpath refid="classpath"/>
+        </javac>
+    </target>
+</project>
-- 
GitLab