|
28 | 28 | <delete file="${basedir}/worldwindx.jar"/> |
29 | 29 | </target> |
30 | 30 |
|
31 | | - <target name="assemble" depends="assembleDebug, assembleRelease, assembleJavadoc" |
32 | | - description="Assembles JAR libraries for all build types and assembles the project documentation."> |
33 | | - <copy file="${worldwind.jar.dir}/worldwind-release.jar" tofile="${basedir}/worldwind.jar"/> |
34 | | - <copy file="${worldwind.jar.dir}/worldwindx-release.jar" tofile="${basedir}/worldwindx.jar"/> |
35 | | - </target> |
| 31 | + <target name="assemble" depends="assembleDebug, assembleRelease, assembleJavadoc, assembleWebStart, assembleSdkArchive" |
| 32 | + description="Assembles JAR libraries for all build types and assembles the project documentation."/> |
36 | 33 |
|
37 | 34 | <!-- Targets for compiling Java sources and bundling JAR libraries. --> |
38 | 35 |
|
|
76 | 73 | <mkdir dir="${worldwind.jar.dir}"/> |
77 | 74 | <bundleJarFiles srcdir="${worldwind.src.dir}" classdir="${worldwind.classes.dir}/release" |
78 | 75 | destdir="${worldwind.jar.dir}" type="release"/> |
| 76 | + <copy file="${worldwind.jar.dir}/worldwind-release.jar" tofile="${basedir}/worldwind.jar"/> |
| 77 | + <copy file="${worldwind.jar.dir}/worldwindx-release.jar" tofile="${basedir}/worldwindx.jar"/> |
79 | 78 | </target> |
80 | 79 |
|
81 | 80 | <!-- Targets for compiling and bundling the project documentation. --> |
|
116 | 115 | </zip> |
117 | 116 | </target> |
118 | 117 |
|
119 | | - <!-- Targets for testing the project sources. --> |
120 | | - |
121 | | - <target name="test" depends="unitTest" |
122 | | - description="Runs all project tests. Exits with status code 1 if any test fails."> |
123 | | - <fail if="unitTest.failure" message="Unit tests FAILED" status="1"/> |
124 | | - </target> |
125 | | - |
126 | | - <target name="unitTest" depends="assembleDebug, compileUnitTestSources, runUnitTest"/> |
127 | | - |
128 | | - <target name="compileUnitTestSources"> |
129 | | - <mkdir dir="${worldwind.classes.dir}/test"/> |
130 | | - <compileJava srcdir="${worldwind.test.dir}" classdir="${worldwind.classes.dir}/test" type="debug" |
131 | | - jdk="${worldwind.jdk}"> |
132 | | - <pathelements> |
133 | | - <pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/> |
134 | | - <pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/> |
135 | | - <pathelement location="${basedir}/jogl-all.jar"/> |
136 | | - <pathelement location="${basedir}/gluegen-rt.jar"/> |
137 | | - <pathelement location="${basedir}/gdal.jar"/> |
138 | | - <pathelement location="${basedir}/junit-4.5.jar"/> |
139 | | - </pathelements> |
140 | | - </compileJava> |
141 | | - </target> |
142 | | - |
143 | | - <target name="runUnitTest"> |
144 | | - <delete dir="${worldwind.test.results.dir}"/> |
145 | | - <mkdir dir="${worldwind.test.results.dir}"/> |
146 | | - <junit failureproperty="unitTest.failure" |
147 | | - fork="on" |
148 | | - forkmode="once" |
149 | | - maxmemory="1024m"> |
150 | | - <classpath> |
151 | | - <pathelement location="${worldwind.classes.dir}/test"/> |
152 | | - <pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/> |
153 | | - <pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/> |
154 | | - <pathelement location="${basedir}/jogl-all.jar"/> |
155 | | - <pathelement location="${basedir}/gluegen-rt.jar"/> |
156 | | - <pathelement location="${basedir}/gdal.jar"/> |
157 | | - <pathelement location="${basedir}/junit-4.5.jar"/> |
158 | | - </classpath> |
159 | | - <batchtest todir="${worldwind.test.results.dir}" |
160 | | - skipnontests="true"> |
161 | | - <fileset dir="${worldwind.classes.dir}/test"> |
162 | | - <include name="**/*"/> |
163 | | - </fileset> |
164 | | - </batchtest> |
165 | | - <formatter type="brief" usefile="no"/> |
166 | | - <formatter type="xml" usefile="yes"/> |
167 | | - </junit> |
168 | | - <junitreport todir="${worldwind.test.results.dir}"> |
169 | | - <fileset dir="${worldwind.test.results.dir}"> |
170 | | - <include name="TEST-*.xml"/> |
171 | | - </fileset> |
172 | | - <report todir="${worldwind.test.results.dir}" format="noframes"/> |
173 | | - </junitreport> |
174 | | - </target> |
175 | | - |
176 | 118 | <!-- Tasks for assembling the project Web Start package. --> |
177 | 119 |
|
178 | 120 | <target name="assembleWebStart" |
|
344 | 286 | <available property="keystore.isAvailable" file="${basedir}/keystore.properties"/> |
345 | 287 | </target> |
346 | 288 |
|
| 289 | + <!-- Targets for assembling the project SDK archive. --> |
| 290 | + |
| 291 | + <target name="assembleSdkArchive"> |
| 292 | + <zip destfile="${worldwind.build.dir}/worldwind.zip"> |
| 293 | + <fileset dir="${basedir}"> |
| 294 | + <include name="**/*"/> |
| 295 | + <exclude name="build/**"/> |
| 296 | + <exclude name="classes/**"/> |
| 297 | + <exclude name="testClasses/**"/> |
| 298 | + <exclude name="keystore.properties"/> |
| 299 | + <exclude name="keystore.tar"/> |
| 300 | + <exclude name="wwstore"/> |
| 301 | + <type type="file"/> |
| 302 | + </fileset> |
| 303 | + </zip> |
| 304 | + </target> |
| 305 | + |
| 306 | + <!-- Targets for testing the project sources. --> |
| 307 | + |
| 308 | + <target name="test" depends="unitTest" |
| 309 | + description="Runs all project tests. Exits with status code 1 if any test fails."> |
| 310 | + <fail if="unitTest.failure" message="Unit tests FAILED" status="1"/> |
| 311 | + </target> |
| 312 | + |
| 313 | + <target name="unitTest" depends="assembleDebug, compileUnitTestSources, runUnitTest"/> |
| 314 | + |
| 315 | + <target name="compileUnitTestSources"> |
| 316 | + <mkdir dir="${worldwind.classes.dir}/test"/> |
| 317 | + <compileJava srcdir="${worldwind.test.dir}" classdir="${worldwind.classes.dir}/test" type="debug" |
| 318 | + jdk="${worldwind.jdk}"> |
| 319 | + <pathelements> |
| 320 | + <pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/> |
| 321 | + <pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/> |
| 322 | + <pathelement location="${basedir}/jogl-all.jar"/> |
| 323 | + <pathelement location="${basedir}/gluegen-rt.jar"/> |
| 324 | + <pathelement location="${basedir}/gdal.jar"/> |
| 325 | + <pathelement location="${basedir}/junit-4.5.jar"/> |
| 326 | + </pathelements> |
| 327 | + </compileJava> |
| 328 | + </target> |
| 329 | + |
| 330 | + <target name="runUnitTest"> |
| 331 | + <delete dir="${worldwind.test.results.dir}"/> |
| 332 | + <mkdir dir="${worldwind.test.results.dir}"/> |
| 333 | + <junit failureproperty="unitTest.failure" |
| 334 | + fork="on" |
| 335 | + forkmode="once" |
| 336 | + maxmemory="1024m"> |
| 337 | + <classpath> |
| 338 | + <pathelement location="${worldwind.classes.dir}/test"/> |
| 339 | + <pathelement location="${worldwind.jar.dir}/worldwind-debug.jar"/> |
| 340 | + <pathelement location="${worldwind.jar.dir}/worldwindx-debug.jar"/> |
| 341 | + <pathelement location="${basedir}/jogl-all.jar"/> |
| 342 | + <pathelement location="${basedir}/gluegen-rt.jar"/> |
| 343 | + <pathelement location="${basedir}/gdal.jar"/> |
| 344 | + <pathelement location="${basedir}/junit-4.5.jar"/> |
| 345 | + </classpath> |
| 346 | + <batchtest todir="${worldwind.test.results.dir}" |
| 347 | + skipnontests="true"> |
| 348 | + <fileset dir="${worldwind.classes.dir}/test"> |
| 349 | + <include name="**/*"/> |
| 350 | + </fileset> |
| 351 | + </batchtest> |
| 352 | + <formatter type="brief" usefile="no"/> |
| 353 | + <formatter type="xml" usefile="yes"/> |
| 354 | + </junit> |
| 355 | + <junitreport todir="${worldwind.test.results.dir}"> |
| 356 | + <fileset dir="${worldwind.test.results.dir}"> |
| 357 | + <include name="TEST-*.xml"/> |
| 358 | + </fileset> |
| 359 | + <report todir="${worldwind.test.results.dir}" format="noframes"/> |
| 360 | + </junitreport> |
| 361 | + </target> |
| 362 | + |
347 | 363 | <!-- Tasks for assembling the MIL-STD-2525 symbology package. Rasterizes MIL-STD-2525 SVG image files into PNG image |
348 | 364 | files. The maxwidth and height parameters control the PNG image dimensions, where the width varies depending on |
349 | 365 | the SVG image's aspect ratio. PNG files are written to the destination directory according to their relative |
|
0 commit comments