Skip to content

Commit 427a79b

Browse files
authored
Merge pull request #21 from emxsys/develop
Add NetBeans IDE support
2 parents c749258 + e1907f3 commit 427a79b

File tree

6 files changed

+186
-1
lines changed

6 files changed

+186
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ testClasses
1515
worldwind.jar
1616

1717
worldwindx.jar
18+
19+
/nbproject/private/

build.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@
330330
<delete dir="${worldwind.test.results.dir}"/>
331331
<mkdir dir="${worldwind.test.results.dir}"/>
332332
<junit failureproperty="unitTest.failure"
333+
dir="${basedir}"
333334
fork="on"
334335
forkmode="once"
335336
maxmemory="1024m">
@@ -545,5 +546,12 @@
545546
<arg value="all"/>
546547
</exec>
547548
</target>
548-
549+
550+
<target name="runLayerManager" depends="build" description="Runs the LayerManager example app.">
551+
<java fork="true"
552+
classname="gov.nasa.worldwindx.examples.layermanager.LayerManagerApp"
553+
classpath="gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar;worldwind.jar;worldwindx.jar"
554+
/>
555+
</target>
556+
549557
</project>

nbproject/ide-file-targets.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project basedir=".." name="WorldWindJava CE-IDE">
3+
<!-- TODO: edit the following target according to your needs -->
4+
<!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#runsingle) -->
5+
<target name="run-selected-file-in-src">
6+
<fail unless="run.class">Must set property 'run.class'</fail>
7+
<!--<ant antfile="build.xml" inheritall="false" target="build"/>-->
8+
<java classname="${run.class}" failonerror="true" fork="true">
9+
<classpath>
10+
<pathelement path="worldwind.jar;gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar"/>
11+
<pathelement location="build/classes/debug"/>
12+
</classpath>
13+
</java>
14+
</target>
15+
</project>

nbproject/ide-targets.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project basedir=".." name="WorldWindJava - CE-IDE">
3+
<import file="../build.xml"/>
4+
<!-- TODO: edit the following targets according to your needs -->
5+
<!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#debugj2se) -->
6+
<target depends="build" name="debug-nb">
7+
<nbjpdastart addressproperty="jpda.address" name="WorldWindJava - CE" transport="dt_socket">
8+
<classpath path="gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar;worldwind.jar;worldwindx.jar"/>
9+
</nbjpdastart>
10+
<java classname="gov.nasa.worldwindx.examples.layermanager.LayerManagerApp" classpath="gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar;worldwind.jar;worldwindx.jar" fork="true">
11+
<jvmarg value="-Xdebug"/>
12+
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
13+
</java>
14+
</target>
15+
</project>

nbproject/project.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs=true
2+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width=4
3+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab=4
4+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.tab-size=4
5+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width=80
6+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap=none
7+
auxiliary.org-netbeans-modules-editor-indent.CodeStyle.usedProfile=project

nbproject/project.xml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.ant.freeform</type>
4+
<configuration>
5+
<general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
6+
<!-- Do not use Project Properties customizer when editing this file manually.
7+
To prevent the customizer from showing, create nbproject/project.properties file and enter
8+
auxiliary.show.customizer=false
9+
property there. Adding
10+
auxiliary.show.customizer.message=<message>
11+
will show your customized message when someone attempts to open the customizer. -->
12+
<name>WorldWindJava - CE</name>
13+
<properties/>
14+
<folders>
15+
<source-folder>
16+
<label>src</label>
17+
<type>java</type>
18+
<location>src</location>
19+
</source-folder>
20+
<source-folder>
21+
<label>test</label>
22+
<type>java</type>
23+
<location>test</location>
24+
</source-folder>
25+
<source-folder>
26+
<label>testFunctional</label>
27+
<type>java</type>
28+
<location>testFunctional</location>
29+
</source-folder>
30+
</folders>
31+
<ide-actions>
32+
<action name="build">
33+
<target>build</target>
34+
</action>
35+
<action name="clean">
36+
<target>clean</target>
37+
</action>
38+
<action name="javadoc">
39+
<target>assembleJavadoc</target>
40+
</action>
41+
<action name="test">
42+
<target>test</target>
43+
</action>
44+
<action name="rebuild">
45+
<target>clean</target>
46+
<target>build</target>
47+
</action>
48+
<action name="run.single">
49+
<script>nbproject/ide-file-targets.xml</script>
50+
<target>run-selected-file-in-src</target>
51+
<context>
52+
<property>run.class</property>
53+
<folder>src</folder>
54+
<pattern>\.java$</pattern>
55+
<format>java-name</format>
56+
<arity>
57+
<one-file-only/>
58+
</arity>
59+
</context>
60+
</action>
61+
<action name="debug">
62+
<script>nbproject/ide-targets.xml</script>
63+
<target>debug-nb</target>
64+
</action>
65+
<action name="run">
66+
<target>runLayerManager</target>
67+
</action>
68+
</ide-actions>
69+
<export>
70+
<type>folder</type>
71+
<location>build/classes/debug</location>
72+
<build-target>build</build-target>
73+
</export>
74+
<export>
75+
<type>folder</type>
76+
<location>build/classes/test</location>
77+
<build-target>build</build-target>
78+
</export>
79+
<export>
80+
<type>folder</type>
81+
<location>build/classes/test</location>
82+
<build-target>build</build-target>
83+
</export>
84+
<view>
85+
<items>
86+
<source-folder style="packages">
87+
<label>src</label>
88+
<location>src</location>
89+
</source-folder>
90+
<source-folder style="packages">
91+
<label>test</label>
92+
<location>test</location>
93+
</source-folder>
94+
<source-folder style="packages">
95+
<label>testFunctional</label>
96+
<location>testFunctional</location>
97+
</source-folder>
98+
<source-file>
99+
<location>build.xml</location>
100+
</source-file>
101+
</items>
102+
<context-menu>
103+
<ide-action name="build"/>
104+
<ide-action name="rebuild"/>
105+
<ide-action name="clean"/>
106+
<ide-action name="javadoc"/>
107+
<ide-action name="run"/>
108+
<ide-action name="test"/>
109+
<ide-action name="debug"/>
110+
</context-menu>
111+
</view>
112+
<subprojects/>
113+
</general-data>
114+
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
115+
<compilation-unit>
116+
<package-root>src</package-root>
117+
<classpath mode="compile">gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar</classpath>
118+
<built-to>build/classes/debug</built-to>
119+
<source-level>1.5</source-level>
120+
</compilation-unit>
121+
<compilation-unit>
122+
<package-root>test</package-root>
123+
<unit-tests/>
124+
<classpath mode="compile">gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar;worldwind.jar;worldwindx.jar</classpath>
125+
<built-to>build/classes/test</built-to>
126+
<javadoc-built-to>build/doc</javadoc-built-to>
127+
<source-level>1.5</source-level>
128+
</compilation-unit>
129+
<compilation-unit>
130+
<package-root>testFunctional</package-root>
131+
<unit-tests/>
132+
<classpath mode="compile">gdal.jar;gluegen-rt-natives-linux-amd64.jar;gluegen-rt-natives-linux-i586.jar;gluegen-rt-natives-macosx-universal.jar;gluegen-rt-natives-windows-amd64.jar;gluegen-rt-natives-windows-i586.jar;gluegen-rt.jar;jogl-all-natives-linux-amd64.jar;jogl-all-natives-linux-i586.jar;jogl-all-natives-macosx-universal.jar;jogl-all-natives-windows-amd64.jar;jogl-all-natives-windows-i586.jar;jogl-all.jar;junit-4.5.jar;vpf-symbols.jar;worldwind.jar;worldwindx.jar</classpath>
133+
<built-to>build/classes/test</built-to>
134+
<source-level>1.5</source-level>
135+
</compilation-unit>
136+
</java-data>
137+
</configuration>
138+
</project>

0 commit comments

Comments
 (0)