source: josm/trunk/build.xml@ 13033

Last change on this file since 13033 was 13011, checked in by Don-vip, 6 years ago

adapt to latest change in apache-commons SVN repo

  • Property svn:eol-style set to native
File size: 46.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!-- ** build.xml - main ant file for JOSM
3**
4** To build run
5** ant clean
6** ant dist
7** This will create 'josm-custom.jar' in directory 'dist'. See also
8** https://josm.openstreetmap.de/wiki/DevelopersGuide/CreateBuild
9**
10-->
11<project xmlns:as="antlib:org.codehaus.mojo.animal_sniffer" name="josm" default="dist" xmlns:jacoco="antlib:org.jacoco.ant" xmlns:if="ant:if">
12 <target name="init-properties">
13 <!-- Load properties in a target and not at top level, so this build file can be
14 imported from an IDE ant file (Netbeans) without messing up IDE properties.
15 When imported from another file, ${basedir} will point to the parent directory
16 of the importing ant file. Use ${base.dir} instead, which is always the parent
17 directory of this file. -->
18 <dirname property="base.dir" file="${ant.file.josm}"/>
19 <property name="test.dir" location="${base.dir}/test"/>
20 <property name="src.dir" location="${base.dir}/src"/>
21 <property name="build.dir" location="${base.dir}/build"/>
22 <property name="dist.dir" location="${base.dir}/dist"/>
23 <property name="javacc.home" location="${base.dir}/tools"/>
24 <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/>
25 <property name="proj-build.dir" location="${base.dir}/build2"/>
26 <property name="checkstyle-build.dir" location="${base.dir}/build2"/>
27 <property name="epsg.output" location="${base.dir}/data/projection/custom-epsg"/>
28 <property name="groovy.jar" location="${base.dir}/tools/groovy-all.jar"/>
29 <property name="error_prone_ant.jar" location="${base.dir}/tools/error_prone_ant.jar"/>
30 <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/>
31 <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/>
32 <property name="javac.compiler" value="com.google.errorprone.ErrorProneAntCompilerAdapter" />
33 <property name="java.lang.version" value="1.8" />
34 <!-- build parameter: compression level (ant -Dclevel=N)
35 N ranges from 0 (no compression) to 9 (maximum compression)
36 default: 9 -->
37 <condition property="clevel" value="${clevel}" else="9">
38 <isset property="clevel"/>
39 </condition>
40 <!-- For Java9-specific stuff -->
41 <condition property="isJava9">
42 <matches string="${ant.java.version}" pattern="(1.)?9" />
43 </condition>
44 <path id="test.classpath">
45 <fileset dir="${test.dir}/lib">
46 <include name="**/*.jar"/>
47 </fileset>
48 <pathelement path="${dist.jar}"/>
49 <pathelement path="${groovy.jar}"/>
50 <pathelement path="tools/spotbugs/spotbugs-annotations.jar"/>
51 </path>
52 <path id="pmd.classpath">
53 <fileset dir="${base.dir}/tools/pmd/">
54 <include name="*.jar"/>
55 </fileset>
56 </path>
57 </target>
58
59 <!--
60 ** Used by Eclipse ant builder for updating
61 ** the REVISION file used by JOSM
62 -->
63 <target name="create-revision-eclipse">
64 <property name="revision.dir" value="bin"/>
65 <antcall target="create-revision"/>
66 <mkdir dir="bin/META-INF/services"/>
67 <echo encoding="UTF-8" file="bin/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider">org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider</echo>
68 </target>
69 <!--
70 ** Initializes the REVISION.XML file from SVN information
71 -->
72 <target name="init-svn-revision-xml" depends="init-properties">
73 <exec append="false" output="${base.dir}/REVISION.XML" executable="svn" dir="${base.dir}" failifexecutionfails="false" resultproperty="svn.info.result">
74 <env key="LANG" value="C"/>
75 <arg value="info"/>
76 <arg value="--xml"/>
77 <arg value="."/>
78 </exec>
79 <condition property="svn.info.success">
80 <equals arg1="${svn.info.result}" arg2="0" />
81 </condition>
82 </target>
83 <!--
84 ** Initializes the REVISION.XML file from git information
85 -->
86 <target name="init-git-revision-xml" unless="svn.info.success" depends="init-properties">
87 <exec append="false" output="${base.dir}/REVISION.XML" executable="git" dir="${base.dir}" failifexecutionfails="false">
88 <arg value="log"/>
89 <arg value="-1"/>
90 <arg value="--grep=git-svn-id"/>
91 <!--
92 %B: raw body (unwrapped subject and body)
93 %n: new line
94 %ai: author date, ISO 8601 format
95 -->
96 <arg value="--pretty=format:%B%n%ai"/>
97 <arg value="HEAD"/>
98 </exec>
99 <replaceregexp file="${base.dir}/REVISION.XML" flags="s"
100 match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
101 replace="&lt;info&gt;&lt;entry&gt;&lt;commit revision=&quot;\1&quot;&gt;&lt;date&gt;\2&lt;/date&gt;&lt;/commit&gt;&lt;/entry&gt;&lt;/info&gt;"/>
102 </target>
103 <!--
104 ** Creates the REVISION file to be included in the distribution
105 -->
106 <target name="create-revision" depends="init-properties,init-svn-revision-xml,init-git-revision-xml">
107 <property name="revision.dir" value="${build.dir}"/>
108 <xmlproperty file="${base.dir}/REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
109 <delete file="${base.dir}/REVISION.XML"/>
110 <tstamp>
111 <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
112 </tstamp>
113 <property name="version.entry.commit.revision" value="UNKNOWN"/>
114 <property name="version.entry.commit.date" value="UNKNOWN"/>
115 <mkdir dir="${revision.dir}"/>
116 <!-- add Build-Name: ... when making special builds, e.g. DEBIAN -->
117 <echo file="${revision.dir}/REVISION">
118# automatically generated by JOSM build.xml - do not edit
119Revision: ${version.entry.commit.revision}
120Is-Local-Build: true
121Build-Date: ${build.tstamp}
122</echo>
123 </target>
124 <!--
125 ** Check internal XML files against their XSD
126 -->
127 <target name="check-schemas" unless="check-schemas.notRequired" depends="init-properties">
128 <schemavalidate file="data/defaultpresets.xml" >
129 <schema namespace="http://josm.openstreetmap.de/tagging-preset-1.0" file="data/tagging-preset.xsd" />
130 </schemavalidate>
131 </target>
132 <!--
133 ** Main target that builds JOSM and checks XML against schemas
134 -->
135 <target name="dist" depends="compile,create-revision,check-schemas,epsg">
136 <echo>Revision ${version.entry.commit.revision}</echo>
137 <copy file="CONTRIBUTION" todir="${build.dir}"/>
138 <copy file="README" todir="${build.dir}"/>
139 <copy file="LICENSE" todir="${build.dir}"/>
140 <!-- create josm-custom.jar -->
141 <delete file="${dist.jar}"/>
142 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
143 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
144 <manifest>
145 <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication"/>
146 <attribute name="Main-Version" value="${version.entry.commit.revision} SVN"/>
147 <attribute name="Main-Date" value="${version.entry.commit.date}"/>
148 <attribute name="Permissions" value="all-permissions"/>
149 <attribute name="Codebase" value="josm.openstreetmap.de"/>
150 <attribute name="Application-Name" value="JOSM - Java OpenStreetMap Editor"/>
151 <!-- Java 9 stuff. Entries are safely ignored by Java 8 -->
152 <attribute name="Add-Exports" value="java.base/sun.security.util java.base/sun.security.x509 java.desktop/com.apple.eawt java.desktop/com.sun.imageio.spi javafx.graphics/com.sun.javafx.application jdk.deploy/com.sun.deploy.config" />
153 <attribute name="Add-Opens" value="java.base/java.lang java.base/java.nio java.base/jdk.internal.loader java.base/jdk.internal.ref java.desktop/javax.imageio.spi java.desktop/javax.swing.text.html java.prefs/java.util.prefs" />
154 </manifest>
155 <service type="java.text.spi.DecimalFormatSymbolsProvider" provider="org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider" />
156 <zipfileset dir="images" prefix="images"/>
157 <zipfileset dir="data" prefix="data"/>
158 <zipfileset dir="styles" prefix="styles"/>
159 <zipfileset dir="${src.dir}/org/openstreetmap/gui/jmapviewer/images" prefix="org/openstreetmap/gui/jmapviewer/images"/>
160 </jar>
161 </target>
162 <!-- Mac OS X target -->
163 <target name="mac" depends="init-properties">
164 <!-- Using https://bitbucket.org/infinitekind/appbundler to create mac application bundle -->
165 <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="tools/appbundler-1.0ea.jar"/>
166 <!-- create MacOS X application bundle -->
167 <bundleapp outputdirectory="${bundle.outdir}" name="JOSM" displayname="JOSM" executablename="JOSM" identifier="org.openstreetmap.josm"
168 mainclassname="org.openstreetmap.josm.gui.MainApplication"
169 copyright="JOSM, and all its integral parts, are released under the GNU General Public License v2 or later"
170 applicationCategory="public.app-category.utilities"
171 shortversion="${version.entry.commit.revision} SVN"
172 version="${version.entry.commit.revision} SVN"
173 icon="macosx/JOSM.app/Contents/Resources/JOSM.icns"
174 highResolutionCapable="true">
175
176 <arch name="x86_64"/>
177 <arch name="i386"/>
178
179 <classpath file="${bundle.jar}"/>
180
181 <option value="-Xmx1024m"/>
182
183 <option value="-Xdock:icon=Contents/Resources/JOSM.icns"/>
184 <option value="-Xdock:name=JOSM"/>
185
186 <!-- OSX specific options, optional -->
187 <option value="-Dapple.laf.useScreenMenuBar=true"/>
188 <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
189 <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
190 <option value="-Dcom.apple.mrj.application.apple.menu.about.name=JOSM"/>
191 <option value="-Dcom.apple.smallTabs=true"/>
192 </bundleapp>
193
194 <!-- appbundler lacks the possibility of defining our own keys or using a template, so update the .plist manually -->
195 <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath="tools/xmltask.jar"/>
196
197 <xmltask source="${bundle.outdir}/JOSM.app/Contents/Info.plist" dest="${bundle.outdir}/JOSM.app/Contents/Info.plist" indent="false">
198 <!-- remove empty CFBundleDocumentTypes definition -->
199 <remove path="/plist/dict/key[text()='CFBundleDocumentTypes']|/plist/dict/key[text()='CFBundleDocumentTypes']/following-sibling::array[1]"/>
200 <!-- insert our own keys -->
201 <insert position="before" path="/plist/dict/key[1]" file="macosx/JOSM.app/Contents/Info.plist_template.xml" />
202 </xmltask>
203
204 <!-- create ZIP file with MacOS X application bundle -->
205 <zip destfile="${bundle.outdir}/josm-custom-macosx.zip" update="true">
206 <zipfileset dir="." includes="CONTRIBUTION README LICENSE"/>
207 <zipfileset dir="${bundle.outdir}" includes="JOSM.app/**/*" filemode="755" />
208 </zip>
209 </target>
210 <target name="distmac" depends="dist">
211 <antcall target="mac">
212 <param name="bundle.outdir" value="${dist.dir}"/>
213 <param name="bundle.jar" value="${dist.jar}"/>
214 </antcall>
215 </target>
216 <!-- Windows target -->
217 <target name="distwin" depends="dist">
218 <exec dir="windows" executable="./josm-setup-unix.sh">
219 <arg value="${version.entry.commit.revision}"/>
220 <arg value="${dist.jar}"/>
221 </exec>
222 </target>
223 <target name="javacc" depends="init" unless="javacc.notRequired">
224 <mkdir dir="${mapcss.dir}/parsergen"/>
225 <java classname="javacc" fork="true" failonerror="true">
226 <classpath path="${javacc.home}/javacc.jar"/>
227 <arg value="-DEBUG_PARSER=false"/>
228 <arg value="-DEBUG_TOKEN_MANAGER=false"/>
229 <arg value="-JDK_VERSION=${java.lang.version}"/>
230 <arg value="-GRAMMAR_ENCODING=UTF-8"/>
231 <arg value="-OUTPUT_DIRECTORY=${mapcss.dir}/parsergen"/>
232 <arg value="${mapcss.dir}/MapCSSParser.jj"/>
233 </java>
234 </target>
235 <target name="compile-cots" depends="init">
236 <!-- COTS -->
237 <javac srcdir="${src.dir}" includes="com/**,javax/**,oauth/**,org/apache/commons/**,org/glassfish/**,gnu/**" nowarn="on" encoding="iso-8859-1"
238 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false">
239 <!-- get rid of "internal proprietary API" warning -->
240 <compilerarg value="-XDignore.symbol.file"/>
241 <exclude name="org/apache/commons/compress/PasswordRequiredException.java"/>
242 <exclude name="org/apache/commons/compress/archivers/**"/>
243 <exclude name="org/apache/commons/compress/changes/**"/>
244 <exclude name="org/apache/commons/compress/compressors/bzip2/BZip2Utils.java"/>
245 <exclude name="org/apache/commons/compress/compressors/brotli/**"/>
246 <exclude name="org/apache/commons/compress/compressors/lzma/**"/>
247 <exclude name="org/apache/commons/compress/compressors/xz/**"/>
248 <exclude name="org/apache/commons/compress/compressors/CompressorStreamFactory.java"/>
249 <exclude name="org/apache/commons/compress/compressors/CompressorStreamProvider.java"/>
250 <exclude name="org/apache/commons/compress/compressors/CompressorException.java"/>
251 <exclude name="org/apache/commons/compress/compressors/FileNameUtil.java"/>
252 <exclude name="org/apache/commons/compress/compressors/deflate/**"/>
253 <exclude name="org/apache/commons/compress/compressors/gzip/**"/>
254 <exclude name="org/apache/commons/compress/compressors/lz4/**"/>
255 <exclude name="org/apache/commons/compress/compressors/lz77support/**"/>
256 <exclude name="org/apache/commons/compress/compressors/pack200/**"/>
257 <exclude name="org/apache/commons/compress/compressors/snappy/**"/>
258 <exclude name="org/apache/commons/compress/compressors/z/**"/>
259 <exclude name="org/apache/commons/compress/compressors/zstandard/**"/>
260 <exclude name="org/apache/commons/compress/parallel/**"/>
261 <exclude name="org/apache/commons/compress/utils/ArchiveUtils.java"/>
262 <exclude name="org/apache/commons/jcs/JCS.java"/>
263 <exclude name="org/apache/commons/jcs/access/GroupCacheAccess.java"/>
264 <exclude name="org/apache/commons/jcs/access/PartitionedCacheAccess.java"/>
265 <exclude name="org/apache/commons/jcs/access/behavior/IGroupCacheAccess.java"/>
266 <exclude name="org/apache/commons/jcs/access/exception/InvalidGroupException.java"/>
267 <exclude name="org/apache/commons/jcs/admin/servlet/**"/>
268 <exclude name="org/apache/commons/jcs/auxiliary/AbstractAuxiliaryCacheMonitor.java"/>
269 <exclude name="org/apache/commons/jcs/auxiliary/disk/jdbc/**"/>
270 <exclude name="org/apache/commons/jcs/auxiliary/lateral/**"/>
271 <exclude name="org/apache/commons/jcs/auxiliary/remote/**"/>
272 <exclude name="org/apache/commons/jcs/engine/CacheAdaptor.java"/>
273 <exclude name="org/apache/commons/jcs/engine/CacheGroup.java"/>
274 <exclude name="org/apache/commons/jcs/engine/CacheWatchRepairable.java"/>
275 <exclude name="org/apache/commons/jcs/engine/Zombie*.java"/>
276 <exclude name="org/apache/commons/jcs/engine/logging/CacheEventLoggerDebugLogger.java"/>
277 <exclude name="org/apache/commons/jcs/utils/access/**"/>
278 <exclude name="org/apache/commons/jcs/utils/discovery/**"/>
279 <exclude name="org/apache/commons/jcs/utils/net/**"/>
280 <exclude name="org/apache/commons/jcs/utils/props/**"/>
281 <exclude name="org/apache/commons/jcs/utils/servlet/**"/>
282 <exclude name="org/apache/commons/logging/impl/AvalonLogger.java"/>
283 <exclude name="org/apache/commons/logging/impl/Jdk13LumberjackLogger.java"/>
284 <exclude name="org/apache/commons/logging/impl/Log4JLogger.java"/>
285 <exclude name="org/apache/commons/logging/impl/LogKitLogger.java"/>
286 <exclude name="org/apache/commons/logging/impl/ServletContextCleaner.java"/>
287 </javac>
288 </target>
289 <target name="compile-jmapviewer" depends="init">
290 <!-- JMapViewer -->
291 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}"
292 excludes="com/**,javax/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/gui/jmapviewer/JMapViewerTree.java,org/openstreetmap/gui/jmapviewer/checkBoxTree/**,org/openstreetmap/josm/**,gnu/**"
293 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
294 <compilerclasspath>
295 <pathelement location="${error_prone_ant.jar}"/>
296 </compilerclasspath>
297 <compilerarg value="-Xlint:cast"/>
298 <compilerarg value="-Xlint:deprecation"/>
299 <compilerarg value="-Xlint:dep-ann"/>
300 <compilerarg value="-Xlint:divzero"/>
301 <compilerarg value="-Xlint:empty"/>
302 <compilerarg value="-Xlint:finally"/>
303 <compilerarg value="-Xlint:overrides"/>
304 <!--<compilerarg value="-Xlint:rawtypes"/>-->
305 <compilerarg value="-Xlint:static"/>
306 <compilerarg value="-Xlint:try"/>
307 <compilerarg value="-Xlint:unchecked"/>
308 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
309 <compilerarg value="-XDignore.symbol.file"/>
310 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
311 <compilerarg line="-Xmaxwarns 1000"/>
312 </javac>
313 </target>
314 <target name="compile" depends="init,javacc,compile-cots,compile-jmapviewer">
315 <!-- JOSM -->
316 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}"
317 excludes="com/**,javax/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/**,gnu/**"
318 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
319 <compilerclasspath>
320 <pathelement location="${error_prone_ant.jar}"/>
321 </compilerclasspath>
322 <compilerarg value="-Xlint:cast"/>
323 <compilerarg value="-Xlint:deprecation"/>
324 <compilerarg value="-Xlint:dep-ann"/>
325 <compilerarg value="-Xlint:divzero"/>
326 <compilerarg value="-Xlint:empty"/>
327 <compilerarg value="-Xlint:finally"/>
328 <compilerarg value="-Xlint:overrides"/>
329 <!--<compilerarg value="-Xlint:rawtypes"/>-->
330 <compilerarg value="-Xlint:static"/>
331 <compilerarg value="-Xlint:try"/>
332 <compilerarg value="-Xlint:unchecked"/>
333 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
334 <compilerarg value="-XDignore.symbol.file"/>
335 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
336 <compilerarg value="-Xep:ImmutableEnumChecker:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
337 <compilerarg value="-Xep:FutureReturnValueIgnored:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
338 <compilerarg value="-Xep:FloatingPointLiteralPrecision:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
339 <compilerarg value="-Xep:ShortCircuitBoolean:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
340 <compilerarg value="-Xep:LiteralClassName:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
341 <compilerarg line="-Xmaxwarns 1000"/>
342 <exclude name="org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java" if:set="noJavaFX"/>
343 </javac>
344
345 <copy todir="build" failonerror="no" includeemptydirs="no">
346 <fileset dir="resources"/>
347 </copy>
348 </target>
349 <target name="init" depends="init-properties">
350 <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
351 <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
352 </uptodate>
353 <mkdir dir="${build.dir}"/>
354 <mkdir dir="${dist.dir}"/>
355 </target>
356 <target name="javadoc" depends="init-properties">
357 <javadoc destdir="javadoc"
358 sourcepath="${src.dir}"
359 encoding="UTF-8"
360 packagenames="org.openstreetmap.josm.*,org.openstreetmap.gui.jmapviewer.*"
361 excludepackagenames="org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.*"
362 windowtitle="JOSM"
363 use="true"
364 private="true"
365 linksource="true"
366 author="false">
367 <link href="http://docs.oracle.com/javase/8/docs/api"/>
368 <doctitle><![CDATA[<h2>JOSM - Javadoc</h2>]]></doctitle>
369 <bottom><![CDATA[<a href="https://josm.openstreetmap.de/">JOSM</a>]]></bottom>
370 <arg value="--add-exports" if:set="isJava9" />
371 <arg value="java.base/sun.security.util=ALL-UNNAMED" if:set="isJava9" />
372 <arg value="--add-exports" if:set="isJava9" />
373 <arg value="java.base/sun.security.x509=ALL-UNNAMED" if:set="isJava9" />
374 <arg value="--add-exports" if:set="isJava9" />
375 <arg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" />
376 </javadoc>
377 </target>
378 <target name="clean" depends="init-properties">
379 <delete dir="${build.dir}"/>
380 <delete dir="${proj-build.dir}"/>
381 <delete dir="${checkstyle-build.dir}"/>
382 <delete dir="${dist.dir}"/>
383 <delete dir="${mapcss.dir}/parsergen"/>
384 <delete file="${src.dir}/org/w3/_2001/xmlschema/Adapter1.java"/>
385 <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
386 <delete file="${epsg.output}"/>
387 </target>
388 <macrodef name="init-test-preferences">
389 <attribute name="testfamily"/>
390 <sequential>
391 <copy file="${test.dir}/config/preferences.template.xml" tofile="${test.dir}/config/@{testfamily}-josm.home/preferences.xml"/>
392 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_USERNAME@" value="${osm.username}"/>
393 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_PASSWORD@" value="${osm.password}"/>
394 </sequential>
395 </macrodef>
396 <target name="test-init" depends="init-properties">
397 <mkdir dir="${test.dir}/build"/>
398 <mkdir dir="${test.dir}/build/unit"/>
399 <mkdir dir="${test.dir}/build/functional"/>
400 <mkdir dir="${test.dir}/build/performance"/>
401 <mkdir dir="${test.dir}/report"/>
402 <init-test-preferences testfamily="unit"/>
403 <init-test-preferences testfamily="functional"/>
404 <init-test-preferences testfamily="performance"/>
405 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" />
406 </target>
407 <target name="test-clean" depends="init-properties">
408 <delete dir="${test.dir}/build"/>
409 <delete dir="${test.dir}/report"/>
410 <delete file="${test.dir}/jacoco.exec" />
411 <delete file="${test.dir}/jacocoIT.exec" />
412 <delete file="${test.dir}/config/unit-josm.home" failonerror="false"/>
413 <delete file="${test.dir}/config/functional-josm.home" failonerror="false"/>
414 <delete file="${test.dir}/config/performance-josm.home" failonerror="false"/>
415 </target>
416 <macrodef name="call-groovyc">
417 <attribute name="testfamily"/>
418 <element name="cp-elements"/>
419 <sequential>
420 <groovyc srcdir="${test.dir}/@{testfamily}" destdir="${test.dir}/build/@{testfamily}" encoding="UTF-8">
421 <classpath>
422 <cp-elements/>
423 </classpath>
424 <javac target="${java.lang.version}" source="${java.lang.version}" debug="on" encoding="UTF-8">
425 <compilerarg value="-Xlint:all"/>
426 <compilerarg value="-Xlint:-serial"/>
427 </javac>
428 </groovyc>
429 </sequential>
430 </macrodef>
431 <target name="test-compile" depends="test-init,dist">
432 <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
433 <call-groovyc testfamily="unit">
434 <cp-elements>
435 <path refid="test.classpath"/>
436 </cp-elements>
437 </call-groovyc>
438 <call-groovyc testfamily="functional">
439 <cp-elements>
440 <path refid="test.classpath"/>
441 <pathelement path="${test.dir}/build/unit"/>
442 </cp-elements>
443 </call-groovyc>
444 <call-groovyc testfamily="performance">
445 <cp-elements>
446 <path refid="test.classpath"/>
447 <pathelement path="${test.dir}/build/unit"/>
448 </cp-elements>
449 </call-groovyc>
450 </target>
451 <macrodef name="call-junit">
452 <attribute name="testfamily"/>
453 <attribute name="testITsuffix" default=""/>
454 <attribute name="coverage" default="true"/>
455 <sequential>
456 <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/>
457 <jacoco:coverage destfile="${test.dir}/jacoco@{testITsuffix}.exec" enabled="@{coverage}" includes="org.openstreetmap.josm.*">
458 <junit printsummary="yes" fork="true" forkmode="once">
459 <jvmarg value="-Dfile.encoding=UTF-8"/>
460 <jvmarg value="--add-modules" if:set="isJava9" />
461 <jvmarg value="java.activation,java.se.ee" if:set="isJava9" />
462 <jvmarg value="--add-exports" if:set="isJava9" />
463 <jvmarg value="java.base/sun.security.util=ALL-UNNAMED" if:set="isJava9" />
464 <jvmarg value="--add-exports" if:set="isJava9" />
465 <jvmarg value="java.base/sun.security.x509=ALL-UNNAMED" if:set="isJava9" />
466 <jvmarg value="--add-exports" if:set="isJava9" />
467 <jvmarg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" />
468 <jvmarg value="--add-exports" if:set="isJava9" />
469 <jvmarg value="jdk.deploy/com.sun.deploy.config=ALL-UNNAMED" if:set="isJava9" />
470 <jvmarg value="--add-opens" if:set="isJava9" />
471 <jvmarg value="java.base/java.io=ALL-UNNAMED" if:set="isJava9" />
472 <jvmarg value="--add-opens" if:set="isJava9" />
473 <jvmarg value="java.base/java.lang=ALL-UNNAMED" if:set="isJava9" />
474 <jvmarg value="--add-opens" if:set="isJava9" />
475 <jvmarg value="java.base/java.nio=ALL-UNNAMED" if:set="isJava9" />
476 <jvmarg value="--add-opens" if:set="isJava9" />
477 <jvmarg value="java.base/java.text=ALL-UNNAMED" if:set="isJava9" />
478 <jvmarg value="--add-opens" if:set="isJava9" />
479 <jvmarg value="java.base/java.util=ALL-UNNAMED" if:set="isJava9" />
480 <jvmarg value="--add-opens" if:set="isJava9" />
481 <jvmarg value="java.desktop/java.awt=ALL-UNNAMED" if:set="isJava9" />
482 <sysproperty key="josm.home" value="${test.dir}/config/@{testfamily}-josm.home"/>
483 <sysproperty key="josm.test.data" value="${test.dir}/data"/>
484 <sysproperty key="java.awt.headless" value="true"/>
485 <sysproperty key="glass.platform" value="Monocle"/>
486 <sysproperty key="monocle.platform" value="Headless"/>
487 <sysproperty key="prism.order" value="sw"/>
488 <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
489 <classpath>
490 <path refid="test.classpath"/>
491 <pathelement path="${test.dir}/build/unit"/>
492 <pathelement path="${test.dir}/build/@{testfamily}"/>
493 <pathelement path="${test.dir}/config"/>
494 </classpath>
495 <formatter type="plain"/>
496 <formatter type="xml"/>
497 <batchtest fork="yes" todir="${test.dir}/report">
498 <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/>
499 </batchtest>
500 </junit>
501 </jacoco:coverage>
502 </sequential>
503 </macrodef>
504 <target name="test" depends="test-compile" unless="test.notRequired"
505 description="Run unit and functional tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
506 <call-junit testfamily="unit"/>
507 <call-junit testfamily="functional"/>
508 </target>
509 <target name="test-it" depends="test-compile" unless="test-it.notRequired"
510 description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
511 <call-junit testfamily="unit" testITsuffix="IT"/>
512 <call-junit testfamily="functional" testITsuffix="IT"/>
513 </target>
514 <target name="test-perf" depends="test-compile" unless="test-perf.notRequired"
515 description="Run performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
516 <call-junit testfamily="performance" coverage="false"/>
517 </target>
518 <target name="test-html" depends="test, test-it, test-perf" description="Generate HTML test reports">
519 <!-- May require additional ant dependencies like ant-trax package -->
520 <junitreport todir="${test.dir}/report">
521 <fileset dir="${test.dir}/report">
522 <include name="TEST-*.xml"/>
523 </fileset>
524 <report todir="${test.dir}/report/html"/>
525 </junitreport>
526 <jacoco:report>
527 <executiondata>
528 <fileset dir="${test.dir}" includes="*.exec"/>
529 </executiondata>
530 <structure name="JOSM Test Coverage">
531 <classfiles>
532 <fileset dir="${build.dir}" includes="org/openstreetmap/"/>
533 </classfiles>
534 <sourcefiles encoding="UTF-8">
535 <fileset dir="${src.dir}" includes="org/openstreetmap/"/>
536 </sourcefiles>
537 </structure>
538 <html destdir="${test.dir}/report/jacoco"/>
539 </jacoco:report>
540 </target>
541 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
542 <target name="dist-optimized" depends="dist" unless="isJava9">
543 <taskdef resource="proguard/ant/task.properties" classpath="tools/proguard.jar"/>
544 <proguard>
545 -injars ${dist.jar}
546 -outjars ${dist-optimized.jar}
547
548 -libraryjars ${java.home}/lib/rt.jar
549 -libraryjars ${java.home}/lib/jce.jar
550 -libraryjars ${java.home}/lib/ext/jfxrt.jar
551
552 -dontoptimize
553 -dontobfuscate
554
555 # These options probably are not necessary (and make processing a bit slower)
556 -dontskipnonpubliclibraryclasses
557 -dontskipnonpubliclibraryclassmembers
558
559 -keepclasseswithmembers public class org.openstreetmap.josm.gui.MainApplication {
560 public static void main(java.lang.String[]);
561 }
562
563 -keep class * extends org.openstreetmap.josm.io.FileImporter
564 -keep class * extends org.openstreetmap.josm.io.FileExporter
565 -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
566 -keep class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory$PseudoClasses {
567 static boolean *(org.openstreetmap.josm.gui.mappaint.Environment);
568 }
569 -keep class org.apache.commons.logging.impl.*
570
571 -keepclassmembers enum * {
572 public static **[] values();
573 public static ** valueOf(java.lang.String);
574 }
575
576 # Keep unused public classes and methods (needed for plugins)
577 -keep public class * {
578 public protected *;
579 }
580
581 # Keep serialization code
582 -keepclassmembers class * implements java.io.Serializable {
583 static final long serialVersionUID;
584 private static final java.io.ObjectStreamField[] serialPersistentFields;
585 private void writeObject(java.io.ObjectOutputStream);
586 private void readObject(java.io.ObjectInputStream);
587 java.lang.Object writeReplace();
588 java.lang.Object readResolve();
589 }
590
591 # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'.
592 # This note should not be a problem as we don't use obfuscation
593 -dontnote
594 </proguard>
595 </target>
596 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
597 <target name="dist-optimized-report" depends="dist-optimized" unless="isJava9">
598 <!-- generate difference report between optimized jar and normal one -->
599 <exec executable="perl" dir="${basedir}">
600 <arg value="tools/japicc/japi-compliance-checker.pl"/>
601 <arg value="--lib=JOSM"/>
602 <arg value="--keep-internal"/>
603 <arg value="--v1=${version.entry.commit.revision}"/>
604 <arg value="--v2=${version.entry.commit.revision}-optimized"/>
605 <arg value="--report-path=${dist.dir}/compat_report.html"/>
606 <arg value="${dist.jar}"/>
607 <arg value="${dist-optimized.jar}"/>
608 </exec>
609 </target>
610 <target name="check-plugins" depends="dist-optimized" description="Check of plugins binary compatibility">
611 <local name="dir"/>
612 <local name="plugins"/>
613 <property name="dir" value="plugin-check"/>
614 <typedef uri="antlib:org.codehaus.mojo.animal_sniffer">
615 <classpath path="tools/animal-sniffer-ant-tasks.jar"/>
616 </typedef>
617 <mkdir dir="${dir}"/>
618 <!-- List of deprecated plugins -->
619 <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java">
620 <filterchain>
621 <linecontains>
622 <contains value="new DeprecatedPlugin("/>
623 </linecontains>
624 <tokenfilter>
625 <replaceregex pattern=".*new DeprecatedPlugin\(&quot;(.+?)&quot;.*" replace="\1|" flags="gi"/>
626 </tokenfilter>
627 <striplinebreaks/>
628 <tokenfilter>
629 <replaceregex pattern="\|$" replace="" flags="gi"/>
630 </tokenfilter>
631 </filterchain>
632 </loadfile>
633 <!-- Download list of plugins -->
634 <loadresource property="plugins">
635 <url url="https://josm.openstreetmap.de/plugin"/>
636 <filterchain>
637 <linecontainsregexp negate="true">
638 <regexp pattern="^\t.*"/>
639 </linecontainsregexp>
640 <linecontainsregexp negate="true">
641 <regexp pattern="${deprecated-plugins}"/>
642 </linecontainsregexp>
643 <tokenfilter>
644 <replaceregex pattern="^.*;" replace="" flags="gi"/>
645 </tokenfilter>
646 </filterchain>
647 </loadresource>
648 <!-- Delete files that are not in plugin list (like old plugins) -->
649 <loadresource property="file-list">
650 <propertyresource name="plugins"/>
651 <filterchain>
652 <tokenfilter>
653 <replaceregex pattern="^.*/(.*)$" replace="\1\|" flags=""/>
654 </tokenfilter>
655 <striplinebreaks/>
656 <tokenfilter>
657 <replaceregex pattern="\|$" replace="" flags="gi"/>
658 </tokenfilter>
659 </filterchain>
660 </loadresource>
661 <delete>
662 <restrict>
663 <fileset dir="${dir}"/>
664 <not>
665 <name regex="${file-list}"/>
666 </not>
667 </restrict>
668 </delete>
669 <!-- Download plugins -->
670 <copy todir="${dir}" flatten="true" verbose="true" failonerror="false">
671 <resourcelist>
672 <string value="${plugins}"/>
673 </resourcelist>
674 </copy>
675 <!-- Check plugins -->
676 <as:build-signatures destfile="${dir}/api.sig">
677 <path>
678 <fileset file="${dist-optimized.jar}"/>
679 <fileset file="${java.home}/lib/rt.jar"/>
680 <fileset file="${java.home}/lib/jce.jar"/>
681 <fileset file="${java.home}/lib/ext/jfxrt.jar"/>
682 </path>
683 </as:build-signatures>
684 <as:check-signature signature="${dir}/api.sig" failonerror="false">
685 <ignore classname="au.*"/>
686 <ignore classname="com.*"/>
687 <ignore classname="de.*"/>
688 <ignore classname="edu.*"/>
689 <ignore classname="groovy.*"/>
690 <ignore classname="it.*"/>
691 <ignore classname="javax.*"/>
692 <ignore classname="jogamp.*"/>
693 <ignore classname="junit.*"/>
694 <ignore classname="kdu_jni.*"/>
695 <ignore classname="net.*"/>
696 <ignore classname="netscape.*"/>
697 <ignore classname="nu.*"/>
698 <ignore classname="oracle.*"/>
699 <ignore classname="org.apache.*"/>
700 <ignore classname="org.bouncycastle.*"/>
701 <ignore classname="org.codehaus.*"/>
702 <ignore classname="org.dom4j.*"/>
703 <ignore classname="org.eclipse.*"/>
704 <ignore classname="org.ejml.*"/>
705 <ignore classname="org.gdal.*"/>
706 <ignore classname="org.hibernate.*"/>
707 <ignore classname="org.hsqldb.*"/>
708 <ignore classname="org.ibex.*"/>
709 <ignore classname="org.iso_relax.*"/>
710 <ignore classname="org.jaitools.*"/>
711 <ignore classname="org.jaxen.*"/>
712 <ignore classname="org.jboss.*"/>
713 <ignore classname="org.jdom2.*"/>
714 <ignore classname="org.jfree.*"/>
715 <ignore classname="org.jgraph.*"/>
716 <ignore classname="org.joda.*"/>
717 <ignore classname="org.junit.*"/>
718 <ignore classname="org.jvnet.*"/>
719 <ignore classname="org.kxml2.*"/>
720 <ignore classname="org.objectweb.*"/>
721 <ignore classname="org.osgi.*"/>
722 <ignore classname="org.postgresql.*"/>
723 <ignore classname="org.python.*"/>
724 <ignore classname="org.seasar.*"/>
725 <ignore classname="org.slf4j.*"/>
726 <ignore classname="org.springframework.*"/>
727 <ignore classname="org.testng.*"/>
728 <ignore classname="org.zeromq.*"/>
729 <!-- plugins used by another ones -->
730 <ignore classname="org.openstreetmap.josm.plugins.geotools.*"/>
731 <ignore classname="org.openstreetmap.josm.plugins.jna.*"/>
732 <ignore classname="org.openstreetmap.josm.plugins.jts.*"/>
733 <ignore classname="org.openstreetmap.josm.plugins.log4j.*"/>
734 <ignore classname="org.openstreetmap.josm.plugins.utilsplugin2.*"/>
735 <ignore classname="sun.*"/>
736 <path path="${dir}"/>
737 </as:check-signature>
738 </target>
739
740 <macrodef name="_taginfo">
741 <attribute name="type"/>
742 <attribute name="output"/>
743 <sequential>
744 <echo message="Generating Taginfo for type @{type} to @{output}"/>
745 <groovy src="${taginfoextract}" classpath="${dist.jar}:tools/spotbugs/spotbugs-annotations.jar">
746 <arg value="-t"/>
747 <arg value="@{type}"/>
748 <arg value="--noexit"/>
749 <arg value="--svnweb"/>
750 <arg value="--imgurlprefix"/>
751 <arg value="${imgurlprefix}"/>
752 <arg value="-o"/>
753 <arg value="@{output}"/>
754 </groovy>
755 </sequential>
756 </macrodef>
757
758 <target name="taginfo" depends="dist">
759 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
760 <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/>
761 <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
762 <_taginfo type="mappaint" output="taginfo_style.json"/>
763 <_taginfo type="presets" output="taginfo_presets.json"/>
764 <_taginfo type="external_presets" output="taginfo_external_presets.json"/>
765 </target>
766
767 <target name="imageryindex" depends="init-properties">
768 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
769 <echo message="Checking editor imagery difference"/>
770 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}">
771 <arg value="-noeli"/>
772 <arg value="-p"/>
773 <arg value="imagery_eliout.imagery.xml"/>
774 <arg value="-q"/>
775 <arg value="imagery_josmout.imagery.xml"/>
776 </groovy>
777 </target>
778
779 <target name="imageryindexdownload">
780 <exec append="false" executable="wget" failifexecutionfails="true">
781 <arg value="https://josm.openstreetmap.de/maps"/>
782 <arg value="-O"/>
783 <arg value="imagery_josm.imagery.xml"/>
784 <arg value="--unlink"/>
785 </exec>
786 <exec append="false" executable="wget" failifexecutionfails="true">
787 <arg value="https://josm.openstreetmap.de/wiki/ImageryCompareIgnores?format=txt"/>
788 <arg value="-O"/>
789 <arg value="imagery_josm.ignores.txt"/>
790 <arg value="--unlink"/>
791 </exec>
792 <exec append="false" executable="wget" failifexecutionfails="true">
793 <arg value="https://raw.githubusercontent.com/osmlab/editor-layer-index/gh-pages/imagery.geojson"/>
794 <arg value="-O"/>
795 <arg value="imagery_eli.geojson"/>
796 <arg value="--unlink"/>
797 </exec>
798 <antcall target="imageryindex"/>
799 </target>
800
801 <target name="checkstyle-compile" depends="init-properties">
802 <mkdir dir="${checkstyle-build.dir}"/>
803 <javac sourcepath="" srcdir="${base.dir}/tools/checkstyle/src" failonerror="true"
804 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
805 includeantruntime="false" createMissingPackageInfoClass="false"
806 encoding="UTF-8" classpath="tools/checkstyle/checkstyle-all.jar">
807 </javac>
808 </target>
809 <target name="checkstyle" depends="checkstyle-compile">
810 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
811 classpath="tools/checkstyle/checkstyle-all.jar:${checkstyle-build.dir}"/>
812 <checkstyle config="tools/checkstyle/josm_checks.xml">
813 <fileset dir="${base.dir}/src/org/openstreetmap/josm" includes="**/*.java"
814 excludes="gui/mappaint/mapcss/parsergen/*.java"/>
815 <fileset dir="${base.dir}/test" includes="**/*.java"/>
816 <formatter type="plain"/>
817 <formatter type="xml" toFile="checkstyle-josm.xml"/>
818 </checkstyle>
819 </target>
820
821 <target name="spotbugs" depends="dist">
822 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/spotbugs/spotbugs-ant.jar"/>
823 <path id="spotbugs-classpath">
824 <fileset dir="${base.dir}/tools/spotbugs/">
825 <include name="*.jar"/>
826 </fileset>
827 </path>
828 <property name="spotbugs-classpath" refid="spotbugs-classpath"/>
829 <spotbugs output="xml"
830 outputFile="spotbugs-josm.xml"
831 classpath="${spotbugs-classpath}"
832 pluginList=""
833 excludeFilter="tools/spotbugs/josm-filter.xml"
834 effort="max"
835 reportLevel="low"
836 >
837 <sourcePath path="${base.dir}/src" />
838 <class location="${dist.jar}" />
839 </spotbugs>
840 </target>
841
842 <target name="pmd" depends="init-properties">
843 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/>
844 <pmd shortFilenames="true" encoding="UTF-8">
845 <sourceLanguage name="java" version="${java.lang.version}" />
846 <ruleset>${base.dir}/tools/pmd/josm-ruleset.xml</ruleset>
847 <formatter type="text" toConsole="true" />
848 <formatter type="xml" toFile="pmd-josm.xml">
849 <param name="encoding" value="UTF-8" />
850 </formatter>
851 <fileset dir="${src.dir}">
852 <include name="org/openstreetmap/josm/**/*.java"/>
853 <exclude name="org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java" />
854 </fileset>
855 </pmd>
856 </target>
857
858 <target name="run" depends="dist">
859 <java jar="${dist.jar}" fork="true">
860 <arg value="--set=expert=true"/>
861 <arg value="--set=remotecontrol.enabled=true"/>
862 <arg value="--set=debug.edt-checker.enable=false"/>
863 <jvmarg value="-Djosm.home=/tmp/.josm/"/>
864 </java>
865 </target>
866 <!--
867 ** Compile build script for generating projection list.
868 -->
869 <target name="epsg-compile" depends="init-properties">
870 <property name="proj-classpath" location="${build.dir}"/>
871 <mkdir dir="${proj-build.dir}"/>
872 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true"
873 destdir="${proj-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
874 includeantruntime="false" createMissingPackageInfoClass="false"
875 encoding="UTF-8" classpath="${proj-classpath}">
876 </javac>
877 </target>
878 <!--
879 ** generate projection list.
880 -->
881 <target name="epsg" depends="epsg-compile">
882 <touch file="${epsg.output}"/>
883 <java classname="BuildProjectionDefinitions" failonerror="true" fork="true">
884 <sysproperty key="java.awt.headless" value="true"/>
885 <classpath>
886 <pathelement path="${base.dir}"/>
887 <pathelement path="${proj-classpath}"/>
888 <pathelement path="${proj-build.dir}"/>
889 </classpath>
890 <arg value="${base.dir}"/>
891 </java>
892 </target>
893</project>
Note: See TracBrowser for help on using the repository browser.