diff options
Diffstat (limited to 'nbproject')
-rw-r--r-- | nbproject/.gitignore | 1 | ||||
-rw-r--r-- | nbproject/ide-file-targets.xml | 79 | ||||
-rw-r--r-- | nbproject/project.xml | 217 |
3 files changed, 297 insertions, 0 deletions
diff --git a/nbproject/.gitignore b/nbproject/.gitignore new file mode 100644 index 000000000..3e18ebf09 --- /dev/null +++ b/nbproject/.gitignore @@ -0,0 +1 @@ +private diff --git a/nbproject/ide-file-targets.xml b/nbproject/ide-file-targets.xml new file mode 100644 index 000000000..666cf0106 --- /dev/null +++ b/nbproject/ide-file-targets.xml @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project basedir=".." name="GlueGen-IDE"> + <!-- edit the following targets according to your needs --> + <!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html--> + <property name="libpath" value="${basedir}/build/lib"/> + <target name="init"> + <path id="cp"> + <pathelement path="${jdk.home}/lib/tools.jar:${ant.core.lib}:${ant.home}/lib/ant-junit.jar"/> + <pathelement location="../gluegen/make/lib/junit.jar"/> + <pathelement location="../gluegen/build/gluegen-rt.jar"/> + <pathelement location="build/test/build/classes"/> + <pathelement location="build/jogl/classes"/> + <pathelement location="build/jogl/gensrc/classes"/> + <pathelement location="build/newt/classes"/> + <pathelement location="build/nativewindow/classes"/> + <pathelement location="build/nativewindow/gensrc/classes"/> + </path> + </target> + <target name="compile-test" depends="init"> + <mkdir dir="build/test/build/classes"/> + <javac debug="true" debuglevel="lines,vars,source" destdir="build/test/build/classes" failonerror="false" source="1.5" srcdir="src/test" includeantruntime="false"> + <classpath refid="cp"/> + </javac> + </target> + <target name="compile-selected-files-in-junit" depends="init"> + <fail unless="files">Must set property 'files'</fail> + <mkdir dir="build/test/build/classes"/> + <javac debug="true" debuglevel="lines,vars,source" destdir="build/test/build/classes" includes="${files}" source="1.5" srcdir="src/test" includeantruntime="false"> + <classpath refid="cp"/> + </javac> + </target> + <target name="run-selected-file-in-junit" depends="compile-test"> + <fail unless="run.class">Must set property 'run.class'</fail> + <java classname="${run.class}" failonerror="true" fork="true"> + <jvmarg value="-Djava.library.path=${libpath}"/> + <classpath refid="cp"/> + </java> + </target> + <target depends="compile-test" name="test-selected-file-in-junit"> + <fail unless="run.class">Must set property 'run.class'</fail> + <junit errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="once" showoutput="true"> + <test name="${run.class}"/> + <jvmarg value="-Djava.library.path=${libpath}"/> + <classpath refid="cp"/> + <formatter type="brief" usefile="false"/> + </junit> + </target> + <target name="debug-selected-file-in-junit" depends="compile-test,init"> + <fail unless="debug.class">Must set property 'debug.class'</fail> + <nbjpdastart addressproperty="jpda.address" name="JOGL" transport="dt_socket"> + <classpath refid="cp"/> + </nbjpdastart> + <junit errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="once" showoutput="true"> + <test name="${debug.class}"/> + <classpath refid="cp"/> + <jvmarg value="-Djava.library.path=${libpath}"/> + <jvmarg value="-Xdebug"/> + <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> + <formatter type="brief" usefile="false"/> + </junit> + </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-java"> + <fail unless="run.class">Must set property 'run.class'</fail> + <java classname="${run.class}" failonerror="true" fork="true"> + <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-java"> + <fail unless="files">Must set property 'files'</fail> + <mkdir dir="build/classes"/> + <javac destdir="build/classes" includes="${files}" source="1.5" srcdir="src/java"> + <classpath path="build/classes:${jdk.home}/lib/tools.jar:${ant.core.lib}:lib/antlr-3.2.jar"/> + </javac> + </target> +</project> diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 000000000..32d850e34 --- /dev/null +++ b/nbproject/project.xml @@ -0,0 +1,217 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.ant.freeform</type> + <configuration> + <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1"> + <name>JOGL</name> + </general-data> + <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2"> + <!-- Do not use Project Properties customizer when editing this file manually. --> + <name>JOGL</name> + <properties> + <property name="ant.script">make/build.xml</property> + </properties> + <folders> + <source-folder> + <label>JOGL</label> + <location>.</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>nativewindow gensrc</label> + <type>java</type> + <location>build/nativewindow/gensrc/classes</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>nativewindow</label> + <type>java</type> + <location>src/nativewindow/classes</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>jogl gensrc</label> + <type>java</type> + <location>build/jogl/gensrc/classes</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>jogl</label> + <type>java</type> + <location>src/jogl/classes</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>newt</label> + <type>java</type> + <location>src/newt/classes</location> + <encoding>UTF-8</encoding> + </source-folder> + <source-folder> + <label>src/test</label> + <type>java</type> + <location>src/test</location> + <encoding>UTF-8</encoding> + </source-folder> + </folders> + <ide-actions> + <action name="build"> + <script>${ant.script}</script> + <target>all.but-archives</target> + </action> + <action name="clean"> + <script>${ant.script}</script> + <target>clean</target> + </action> + <action name="rebuild"> + <script>${ant.script}</script> + <target>clean</target> + <target>all.but-archives</target> + </action> + <action name="compile.single"> + <script>nbproject/ide-file-targets.xml</script> + <target>compile-selected-files-in-classes</target> + <context> + <property>files</property> + <folder>src/classes</folder> + <pattern>\.java$</pattern> + <format>relative-path</format> + <arity> + <separated-files>,</separated-files> + </arity> + </context> + </action> + <action name="test"> + <script>${ant.script}</script> + <target>junit.run</target> + </action> + <action name="javadoc"> + <script>${ant.script}</script> + <target>javadoc</target> + </action> + <action name="run.single"> + <script>nbproject/ide-file-targets.xml</script> + <target>run-selected-file-in-junit</target> + <context> + <property>run.class</property> + <folder>src/test</folder> + <pattern>\.java$</pattern> + <format>java-name</format> + <arity> + <one-file-only/> + </arity> + </context> + </action> + <action name="debug.single"> + <script>nbproject/ide-file-targets.xml</script> + <target>debug-selected-file-in-junit</target> + <context> + <property>debug.class</property> + <folder>src/test</folder> + <pattern>\.java$</pattern> + <format>java-name</format> + <arity> + <one-file-only/> + </arity> + </context> + </action> + <action name="debug.test.single"> + <script>nbproject/ide-file-targets.xml</script> + <target>debug-selected-file-in-junit</target> + <context> + <property>debug.class</property> + <folder>src/test</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-junit</target> + <context> + <property>files</property> + <folder>src/test</folder> + <pattern>\.java$</pattern> + <format>relative-path</format> + <arity> + <separated-files>,</separated-files> + </arity> + </context> + </action> + </ide-actions> + <export> + <type>folder</type> + <location>bin</location> + <script>${ant.script}</script> + <build-target>all.but-archives</build-target> + </export> + <export> + <type>folder</type> + <location>bin</location> + <script>${ant.script}</script> + <build-target>all.but-archives</build-target> + </export> + <view> + <items> + <source-folder style="packages"> + <label>nativewindow gensrc</label> + <location>build/nativewindow/gensrc/classes</location> + </source-folder> + <source-folder style="packages"> + <label>nativewindow</label> + <location>src/nativewindow/classes</location> + </source-folder> + <source-folder style="packages"> + <label>jogl gensrc</label> + <location>build/jogl/gensrc/classes</location> + </source-folder> + <source-folder style="packages"> + <label>jogl</label> + <location>src/jogl/classes</location> + </source-folder> + <source-folder style="packages"> + <label>newt</label> + <location>src/newt/classes</location> + </source-folder> + <source-folder style="packages"> + <label>src/test</label> + <location>src/test</location> + </source-folder> + <source-file> + <location>${ant.script}</location> + </source-file> + </items> + <context-menu> + <ide-action name="build"/> + <ide-action name="rebuild"/> + <ide-action name="clean"/> + <ide-action name="javadoc"/> + <ide-action name="test"/> + </context-menu> + </view> + <subprojects/> + </general-data> + <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2"> + <compilation-unit> + <package-root>src/newt/classes</package-root> + <package-root>src/jogl/classes</package-root> + <package-root>src/nativewindow/classes</package-root> + <package-root>build/jogl/gensrc/classes</package-root> + <package-root>build/nativewindow/gensrc/classes</package-root> + <classpath mode="compile">../gluegen/build/gluegen.jar:../gluegen/build/gluegen-rt.jar:make/lib/swt/gtk-linux-x86_64/swt-debug.jar</classpath> + <built-to>bin</built-to> + <source-level>1.5</source-level> + </compilation-unit> + <compilation-unit> + <package-root>src/test</package-root> + <unit-tests/> + <classpath mode="compile">build/jogl/classes:build/jogl/gensrc/classes:build/newt/classes:build/nativewindow/classes:build/nativewindow/gensrc/classes:build/test/build/classes:${jdk.home}/lib/tools.jar:${ant.core.lib}:${ant.home}/lib/ant-junit.jar:../gluegen/make/lib/antlr.jar:../gluegen/make/lib/junit.jar:../gluegen/build/gluegen-rt.jar:make/lib/swt/gtk-linux-x86_64/swt-debug.jar</classpath> + <built-to>bin</built-to> + <source-level>1.5</source-level> + </compilation-unit> + </java-data> + </configuration> +</project> |