source: josm/trunk/build.xml@ 12931

Last change on this file since 12931 was 12931, checked in by Don-vip, 7 years ago

see #14602 - Override digit group separator to be consistent across languages with ISO 80000-1 + checkstyle fixes

  • Property svn:eol-style set to native
File size: 46.6 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/jdk.internal.loader 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/parallel/**"/>
260 <exclude name="org/apache/commons/compress/utils/ArchiveUtils.java"/>
261 <exclude name="org/apache/commons/jcs/JCS.java"/>
262 <exclude name="org/apache/commons/jcs/access/GroupCacheAccess.java"/>
263 <exclude name="org/apache/commons/jcs/access/PartitionedCacheAccess.java"/>
264 <exclude name="org/apache/commons/jcs/access/behavior/IGroupCacheAccess.java"/>
265 <exclude name="org/apache/commons/jcs/access/exception/InvalidGroupException.java"/>
266 <exclude name="org/apache/commons/jcs/admin/servlet/**"/>
267 <exclude name="org/apache/commons/jcs/auxiliary/AbstractAuxiliaryCacheMonitor.java"/>
268 <exclude name="org/apache/commons/jcs/auxiliary/disk/jdbc/**"/>
269 <exclude name="org/apache/commons/jcs/auxiliary/lateral/**"/>
270 <exclude name="org/apache/commons/jcs/auxiliary/remote/**"/>
271 <exclude name="org/apache/commons/jcs/engine/CacheAdaptor.java"/>
272 <exclude name="org/apache/commons/jcs/engine/CacheGroup.java"/>
273 <exclude name="org/apache/commons/jcs/engine/CacheWatchRepairable.java"/>
274 <exclude name="org/apache/commons/jcs/engine/Zombie*.java"/>
275 <exclude name="org/apache/commons/jcs/engine/logging/CacheEventLoggerDebugLogger.java"/>
276 <exclude name="org/apache/commons/jcs/utils/access/**"/>
277 <exclude name="org/apache/commons/jcs/utils/discovery/**"/>
278 <exclude name="org/apache/commons/jcs/utils/net/**"/>
279 <exclude name="org/apache/commons/jcs/utils/props/**"/>
280 <exclude name="org/apache/commons/jcs/utils/servlet/**"/>
281 <exclude name="org/apache/commons/logging/impl/AvalonLogger.java"/>
282 <exclude name="org/apache/commons/logging/impl/Jdk13LumberjackLogger.java"/>
283 <exclude name="org/apache/commons/logging/impl/Log4JLogger.java"/>
284 <exclude name="org/apache/commons/logging/impl/LogKitLogger.java"/>
285 <exclude name="org/apache/commons/logging/impl/ServletContextCleaner.java"/>
286 </javac>
287 </target>
288 <target name="compile-jmapviewer" depends="init">
289 <!-- JMapViewer -->
290 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}"
291 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/**"
292 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
293 <compilerclasspath>
294 <pathelement location="${error_prone_ant.jar}"/>
295 </compilerclasspath>
296 <compilerarg value="-Xlint:cast"/>
297 <compilerarg value="-Xlint:deprecation"/>
298 <compilerarg value="-Xlint:dep-ann"/>
299 <compilerarg value="-Xlint:divzero"/>
300 <compilerarg value="-Xlint:empty"/>
301 <compilerarg value="-Xlint:finally"/>
302 <compilerarg value="-Xlint:overrides"/>
303 <!--<compilerarg value="-Xlint:rawtypes"/>-->
304 <compilerarg value="-Xlint:static"/>
305 <compilerarg value="-Xlint:try"/>
306 <compilerarg value="-Xlint:unchecked"/>
307 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
308 <compilerarg value="-XDignore.symbol.file"/>
309 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
310 <compilerarg line="-Xmaxwarns 1000"/>
311 </javac>
312 </target>
313 <target name="compile" depends="init,javacc,compile-cots,compile-jmapviewer">
314 <!-- JOSM -->
315 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}"
316 excludes="com/**,javax/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/**,gnu/**"
317 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
318 <compilerclasspath>
319 <pathelement location="${error_prone_ant.jar}"/>
320 </compilerclasspath>
321 <compilerarg value="-Xlint:cast"/>
322 <compilerarg value="-Xlint:deprecation"/>
323 <compilerarg value="-Xlint:dep-ann"/>
324 <compilerarg value="-Xlint:divzero"/>
325 <compilerarg value="-Xlint:empty"/>
326 <compilerarg value="-Xlint:finally"/>
327 <compilerarg value="-Xlint:overrides"/>
328 <!--<compilerarg value="-Xlint:rawtypes"/>-->
329 <compilerarg value="-Xlint:static"/>
330 <compilerarg value="-Xlint:try"/>
331 <compilerarg value="-Xlint:unchecked"/>
332 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
333 <compilerarg value="-XDignore.symbol.file"/>
334 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
335 <compilerarg value="-Xep:ImmutableEnumChecker:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
336 <compilerarg value="-Xep:FutureReturnValueIgnored:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
337 <compilerarg value="-Xep:FloatingPointLiteralPrecision:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
338 <compilerarg value="-Xep:ShortCircuitBoolean:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
339 <compilerarg value="-Xep:LiteralClassName:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/>
340 <compilerarg line="-Xmaxwarns 1000"/>
341 <exclude name="org/openstreetmap/josm/io/audio/JavaFxMediaPlayer.java" if:set="noJavaFX"/>
342 </javac>
343
344 <copy todir="build" failonerror="no" includeemptydirs="no">
345 <fileset dir="resources"/>
346 </copy>
347 </target>
348 <target name="init" depends="init-properties">
349 <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
350 <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
351 </uptodate>
352 <mkdir dir="${build.dir}"/>
353 <mkdir dir="${dist.dir}"/>
354 </target>
355 <target name="javadoc" depends="init-properties">
356 <javadoc destdir="javadoc"
357 sourcepath="${src.dir}"
358 encoding="UTF-8"
359 packagenames="org.openstreetmap.josm.*,org.openstreetmap.gui.jmapviewer.*"
360 excludepackagenames="org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.*"
361 windowtitle="JOSM"
362 use="true"
363 private="true"
364 linksource="true"
365 author="false">
366 <link href="http://docs.oracle.com/javase/8/docs/api"/>
367 <doctitle><![CDATA[<h2>JOSM - Javadoc</h2>]]></doctitle>
368 <bottom><![CDATA[<a href="https://josm.openstreetmap.de/">JOSM</a>]]></bottom>
369 <arg value="--add-exports" if:set="isJava9" />
370 <arg value="java.base/sun.security.util=ALL-UNNAMED" if:set="isJava9" />
371 <arg value="--add-exports" if:set="isJava9" />
372 <arg value="java.base/sun.security.x509=ALL-UNNAMED" if:set="isJava9" />
373 <arg value="--add-exports" if:set="isJava9" />
374 <arg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" />
375 </javadoc>
376 </target>
377 <target name="clean" depends="init-properties">
378 <delete dir="${build.dir}"/>
379 <delete dir="${proj-build.dir}"/>
380 <delete dir="${checkstyle-build.dir}"/>
381 <delete dir="${dist.dir}"/>
382 <delete dir="${mapcss.dir}/parsergen"/>
383 <delete file="${src.dir}/org/w3/_2001/xmlschema/Adapter1.java"/>
384 <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
385 <delete file="${epsg.output}"/>
386 </target>
387 <macrodef name="init-test-preferences">
388 <attribute name="testfamily"/>
389 <sequential>
390 <copy file="${test.dir}/config/preferences.template.xml" tofile="${test.dir}/config/@{testfamily}-josm.home/preferences.xml"/>
391 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_USERNAME@" value="${osm.username}"/>
392 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_PASSWORD@" value="${osm.password}"/>
393 </sequential>
394 </macrodef>
395 <target name="test-init" depends="init-properties">
396 <mkdir dir="${test.dir}/build"/>
397 <mkdir dir="${test.dir}/build/unit"/>
398 <mkdir dir="${test.dir}/build/functional"/>
399 <mkdir dir="${test.dir}/build/performance"/>
400 <mkdir dir="${test.dir}/report"/>
401 <init-test-preferences testfamily="unit"/>
402 <init-test-preferences testfamily="functional"/>
403 <init-test-preferences testfamily="performance"/>
404 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" />
405 </target>
406 <target name="test-clean" depends="init-properties">
407 <delete dir="${test.dir}/build"/>
408 <delete dir="${test.dir}/report"/>
409 <delete file="${test.dir}/jacoco.exec" />
410 <delete file="${test.dir}/jacocoIT.exec" />
411 <delete file="${test.dir}/config/unit-josm.home" failonerror="false"/>
412 <delete file="${test.dir}/config/functional-josm.home" failonerror="false"/>
413 <delete file="${test.dir}/config/performance-josm.home" failonerror="false"/>
414 </target>
415 <macrodef name="call-groovyc">
416 <attribute name="testfamily"/>
417 <element name="cp-elements"/>
418 <sequential>
419 <groovyc srcdir="${test.dir}/@{testfamily}" destdir="${test.dir}/build/@{testfamily}" encoding="UTF-8">
420 <classpath>
421 <cp-elements/>
422 </classpath>
423 <javac target="${java.lang.version}" source="${java.lang.version}" debug="on" encoding="UTF-8">
424 <compilerarg value="-Xlint:all"/>
425 <compilerarg value="-Xlint:-serial"/>
426 </javac>
427 </groovyc>
428 </sequential>
429 </macrodef>
430 <target name="test-compile" depends="test-init,dist">
431 <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
432 <call-groovyc testfamily="unit">
433 <cp-elements>
434 <path refid="test.classpath"/>
435 </cp-elements>
436 </call-groovyc>
437 <call-groovyc testfamily="functional">
438 <cp-elements>
439 <path refid="test.classpath"/>
440 <pathelement path="${test.dir}/build/unit"/>
441 </cp-elements>
442 </call-groovyc>
443 <call-groovyc testfamily="performance">
444 <cp-elements>
445 <path refid="test.classpath"/>
446 <pathelement path="${test.dir}/build/unit"/>
447 </cp-elements>
448 </call-groovyc>
449 </target>
450 <macrodef name="call-junit">
451 <attribute name="testfamily"/>
452 <attribute name="testITsuffix" default=""/>
453 <attribute name="coverage" default="true"/>
454 <sequential>
455 <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/>
456 <jacoco:coverage destfile="${test.dir}/jacoco@{testITsuffix}.exec" enabled="@{coverage}" includes="org.openstreetmap.josm.*">
457 <junit printsummary="yes" fork="true" forkmode="once">
458 <jvmarg value="-Dfile.encoding=UTF-8"/>
459 <jvmarg value="--add-modules" if:set="isJava9" />
460 <jvmarg value="java.activation,java.se.ee" if:set="isJava9" />
461 <jvmarg value="--add-exports" if:set="isJava9" />
462 <jvmarg value="java.base/sun.security.util=ALL-UNNAMED" if:set="isJava9" />
463 <jvmarg value="--add-exports" if:set="isJava9" />
464 <jvmarg value="java.base/sun.security.x509=ALL-UNNAMED" if:set="isJava9" />
465 <jvmarg value="--add-exports" if:set="isJava9" />
466 <jvmarg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" />
467 <jvmarg value="--add-exports" if:set="isJava9" />
468 <jvmarg value="jdk.deploy/com.sun.deploy.config=ALL-UNNAMED" if:set="isJava9" />
469 <jvmarg value="--add-opens" if:set="isJava9" />
470 <jvmarg value="java.base/java.io=ALL-UNNAMED" if:set="isJava9" />
471 <jvmarg value="--add-opens" if:set="isJava9" />
472 <jvmarg value="java.base/java.lang=ALL-UNNAMED" if:set="isJava9" />
473 <jvmarg value="--add-opens" if:set="isJava9" />
474 <jvmarg value="java.base/java.text=ALL-UNNAMED" if:set="isJava9" />
475 <jvmarg value="--add-opens" if:set="isJava9" />
476 <jvmarg value="java.base/java.util=ALL-UNNAMED" if:set="isJava9" />
477 <jvmarg value="--add-opens" if:set="isJava9" />
478 <jvmarg value="java.desktop/java.awt=ALL-UNNAMED" if:set="isJava9" />
479 <sysproperty key="josm.home" value="${test.dir}/config/@{testfamily}-josm.home"/>
480 <sysproperty key="josm.test.data" value="${test.dir}/data"/>
481 <sysproperty key="java.awt.headless" value="true"/>
482 <sysproperty key="glass.platform" value="Monocle"/>
483 <sysproperty key="monocle.platform" value="Headless"/>
484 <sysproperty key="prism.order" value="sw"/>
485 <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
486 <classpath>
487 <path refid="test.classpath"/>
488 <pathelement path="${test.dir}/build/unit"/>
489 <pathelement path="${test.dir}/build/@{testfamily}"/>
490 <pathelement path="${test.dir}/config"/>
491 </classpath>
492 <formatter type="plain"/>
493 <formatter type="xml"/>
494 <batchtest fork="yes" todir="${test.dir}/report">
495 <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/>
496 </batchtest>
497 </junit>
498 </jacoco:coverage>
499 </sequential>
500 </macrodef>
501 <target name="test" depends="test-compile" unless="test.notRequired"
502 description="Run unit and functional tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
503 <call-junit testfamily="unit"/>
504 <call-junit testfamily="functional"/>
505 </target>
506 <target name="test-it" depends="test-compile" unless="test-it.notRequired"
507 description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
508 <call-junit testfamily="unit" testITsuffix="IT"/>
509 <call-junit testfamily="functional" testITsuffix="IT"/>
510 </target>
511 <target name="test-perf" depends="test-compile" unless="test-perf.notRequired"
512 description="Run performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
513 <call-junit testfamily="performance" coverage="false"/>
514 </target>
515 <target name="test-html" depends="test, test-it, test-perf" description="Generate HTML test reports">
516 <!-- May require additional ant dependencies like ant-trax package -->
517 <junitreport todir="${test.dir}/report">
518 <fileset dir="${test.dir}/report">
519 <include name="TEST-*.xml"/>
520 </fileset>
521 <report todir="${test.dir}/report/html"/>
522 </junitreport>
523 <jacoco:report>
524 <executiondata>
525 <fileset dir="${test.dir}" includes="*.exec"/>
526 </executiondata>
527 <structure name="JOSM Test Coverage">
528 <classfiles>
529 <fileset dir="${build.dir}" includes="org/openstreetmap/"/>
530 </classfiles>
531 <sourcefiles encoding="UTF-8">
532 <fileset dir="${src.dir}" includes="org/openstreetmap/"/>
533 </sourcefiles>
534 </structure>
535 <html destdir="${test.dir}/report/jacoco"/>
536 </jacoco:report>
537 </target>
538 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
539 <target name="dist-optimized" depends="dist" unless="isJava9">
540 <taskdef resource="proguard/ant/task.properties" classpath="tools/proguard.jar"/>
541 <proguard>
542 -injars ${dist.jar}
543 -outjars ${dist-optimized.jar}
544
545 -libraryjars ${java.home}/lib/rt.jar
546 -libraryjars ${java.home}/lib/jce.jar
547 -libraryjars ${java.home}/lib/ext/jfxrt.jar
548
549 -dontoptimize
550 -dontobfuscate
551
552 # These options probably are not necessary (and make processing a bit slower)
553 -dontskipnonpubliclibraryclasses
554 -dontskipnonpubliclibraryclassmembers
555
556 -keepclasseswithmembers public class org.openstreetmap.josm.gui.MainApplication {
557 public static void main(java.lang.String[]);
558 }
559
560 -keep class * extends org.openstreetmap.josm.io.FileImporter
561 -keep class * extends org.openstreetmap.josm.io.FileExporter
562 -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
563 -keep class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory$PseudoClasses {
564 static boolean *(org.openstreetmap.josm.gui.mappaint.Environment);
565 }
566 -keep class org.apache.commons.logging.impl.*
567
568 -keepclassmembers enum * {
569 public static **[] values();
570 public static ** valueOf(java.lang.String);
571 }
572
573 # Keep unused public classes and methods (needed for plugins)
574 -keep public class * {
575 public protected *;
576 }
577
578 # Keep serialization code
579 -keepclassmembers class * implements java.io.Serializable {
580 static final long serialVersionUID;
581 private static final java.io.ObjectStreamField[] serialPersistentFields;
582 private void writeObject(java.io.ObjectOutputStream);
583 private void readObject(java.io.ObjectInputStream);
584 java.lang.Object writeReplace();
585 java.lang.Object readResolve();
586 }
587
588 # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'.
589 # This note should not be a problem as we don't use obfuscation
590 -dontnote
591 </proguard>
592 </target>
593 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
594 <target name="dist-optimized-report" depends="dist-optimized" unless="isJava9">
595 <!-- generate difference report between optimized jar and normal one -->
596 <exec executable="perl" dir="${basedir}">
597 <arg value="tools/japicc/japi-compliance-checker.pl"/>
598 <arg value="--lib=JOSM"/>
599 <arg value="--keep-internal"/>
600 <arg value="--v1=${version.entry.commit.revision}"/>
601 <arg value="--v2=${version.entry.commit.revision}-optimized"/>
602 <arg value="--report-path=${dist.dir}/compat_report.html"/>
603 <arg value="${dist.jar}"/>
604 <arg value="${dist-optimized.jar}"/>
605 </exec>
606 </target>
607 <target name="check-plugins" depends="dist-optimized" description="Check of plugins binary compatibility">
608 <local name="dir"/>
609 <local name="plugins"/>
610 <property name="dir" value="plugin-check"/>
611 <typedef uri="antlib:org.codehaus.mojo.animal_sniffer">
612 <classpath path="tools/animal-sniffer-ant-tasks.jar"/>
613 </typedef>
614 <mkdir dir="${dir}"/>
615 <!-- List of deprecated plugins -->
616 <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java">
617 <filterchain>
618 <linecontains>
619 <contains value="new DeprecatedPlugin("/>
620 </linecontains>
621 <tokenfilter>
622 <replaceregex pattern=".*new DeprecatedPlugin\(&quot;(.+?)&quot;.*" replace="\1|" flags="gi"/>
623 </tokenfilter>
624 <striplinebreaks/>
625 <tokenfilter>
626 <replaceregex pattern="\|$" replace="" flags="gi"/>
627 </tokenfilter>
628 </filterchain>
629 </loadfile>
630 <!-- Download list of plugins -->
631 <loadresource property="plugins">
632 <url url="https://josm.openstreetmap.de/plugin"/>
633 <filterchain>
634 <linecontainsregexp negate="true">
635 <regexp pattern="^\t.*"/>
636 </linecontainsregexp>
637 <linecontainsregexp negate="true">
638 <regexp pattern="${deprecated-plugins}"/>
639 </linecontainsregexp>
640 <tokenfilter>
641 <replaceregex pattern="^.*;" replace="" flags="gi"/>
642 </tokenfilter>
643 </filterchain>
644 </loadresource>
645 <!-- Delete files that are not in plugin list (like old plugins) -->
646 <loadresource property="file-list">
647 <propertyresource name="plugins"/>
648 <filterchain>
649 <tokenfilter>
650 <replaceregex pattern="^.*/(.*)$" replace="\1\|" flags=""/>
651 </tokenfilter>
652 <striplinebreaks/>
653 <tokenfilter>
654 <replaceregex pattern="\|$" replace="" flags="gi"/>
655 </tokenfilter>
656 </filterchain>
657 </loadresource>
658 <delete>
659 <restrict>
660 <fileset dir="${dir}"/>
661 <not>
662 <name regex="${file-list}"/>
663 </not>
664 </restrict>
665 </delete>
666 <!-- Download plugins -->
667 <copy todir="${dir}" flatten="true" verbose="true" failonerror="false">
668 <resourcelist>
669 <string value="${plugins}"/>
670 </resourcelist>
671 </copy>
672 <!-- Check plugins -->
673 <as:build-signatures destfile="${dir}/api.sig">
674 <path>
675 <fileset file="${dist-optimized.jar}"/>
676 <fileset file="${java.home}/lib/rt.jar"/>
677 <fileset file="${java.home}/lib/jce.jar"/>
678 <fileset file="${java.home}/lib/ext/jfxrt.jar"/>
679 </path>
680 </as:build-signatures>
681 <as:check-signature signature="${dir}/api.sig" failonerror="false">
682 <ignore classname="au.*"/>
683 <ignore classname="com.*"/>
684 <ignore classname="de.*"/>
685 <ignore classname="edu.*"/>
686 <ignore classname="groovy.*"/>
687 <ignore classname="it.*"/>
688 <ignore classname="javax.*"/>
689 <ignore classname="jogamp.*"/>
690 <ignore classname="junit.*"/>
691 <ignore classname="kdu_jni.*"/>
692 <ignore classname="net.*"/>
693 <ignore classname="netscape.*"/>
694 <ignore classname="nu.*"/>
695 <ignore classname="oracle.*"/>
696 <ignore classname="org.apache.*"/>
697 <ignore classname="org.bouncycastle.*"/>
698 <ignore classname="org.codehaus.*"/>
699 <ignore classname="org.dom4j.*"/>
700 <ignore classname="org.eclipse.*"/>
701 <ignore classname="org.ejml.*"/>
702 <ignore classname="org.gdal.*"/>
703 <ignore classname="org.hibernate.*"/>
704 <ignore classname="org.hsqldb.*"/>
705 <ignore classname="org.ibex.*"/>
706 <ignore classname="org.iso_relax.*"/>
707 <ignore classname="org.jaitools.*"/>
708 <ignore classname="org.jaxen.*"/>
709 <ignore classname="org.jboss.*"/>
710 <ignore classname="org.jdom2.*"/>
711 <ignore classname="org.jfree.*"/>
712 <ignore classname="org.jgraph.*"/>
713 <ignore classname="org.joda.*"/>
714 <ignore classname="org.junit.*"/>
715 <ignore classname="org.jvnet.*"/>
716 <ignore classname="org.kxml2.*"/>
717 <ignore classname="org.objectweb.*"/>
718 <ignore classname="org.osgi.*"/>
719 <ignore classname="org.postgresql.*"/>
720 <ignore classname="org.python.*"/>
721 <ignore classname="org.seasar.*"/>
722 <ignore classname="org.slf4j.*"/>
723 <ignore classname="org.springframework.*"/>
724 <ignore classname="org.testng.*"/>
725 <ignore classname="org.zeromq.*"/>
726 <!-- plugins used by another ones -->
727 <ignore classname="org.openstreetmap.josm.plugins.geotools.*"/>
728 <ignore classname="org.openstreetmap.josm.plugins.jna.*"/>
729 <ignore classname="org.openstreetmap.josm.plugins.jts.*"/>
730 <ignore classname="org.openstreetmap.josm.plugins.log4j.*"/>
731 <ignore classname="org.openstreetmap.josm.plugins.utilsplugin2.*"/>
732 <ignore classname="sun.*"/>
733 <path path="${dir}"/>
734 </as:check-signature>
735 </target>
736
737 <macrodef name="_taginfo">
738 <attribute name="type"/>
739 <attribute name="output"/>
740 <sequential>
741 <echo message="Generating Taginfo for type @{type} to @{output}"/>
742 <groovy src="${taginfoextract}" classpath="${dist.jar}:tools/spotbugs/spotbugs-annotations.jar">
743 <arg value="-t"/>
744 <arg value="@{type}"/>
745 <arg value="--noexit"/>
746 <arg value="--svnweb"/>
747 <arg value="--imgurlprefix"/>
748 <arg value="${imgurlprefix}"/>
749 <arg value="-o"/>
750 <arg value="@{output}"/>
751 </groovy>
752 </sequential>
753 </macrodef>
754
755 <target name="taginfo" depends="dist">
756 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
757 <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/>
758 <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
759 <_taginfo type="mappaint" output="taginfo_style.json"/>
760 <_taginfo type="presets" output="taginfo_presets.json"/>
761 <_taginfo type="external_presets" output="taginfo_external_presets.json"/>
762 </target>
763
764 <target name="imageryindex" depends="init-properties">
765 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
766 <echo message="Checking editor imagery difference"/>
767 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}">
768 <arg value="-noeli"/>
769 <arg value="-p"/>
770 <arg value="imagery_eliout.imagery.xml"/>
771 <arg value="-q"/>
772 <arg value="imagery_josmout.imagery.xml"/>
773 </groovy>
774 </target>
775
776 <target name="imageryindexdownload">
777 <exec append="false" executable="wget" failifexecutionfails="true">
778 <arg value="https://josm.openstreetmap.de/maps"/>
779 <arg value="-O"/>
780 <arg value="imagery_josm.imagery.xml"/>
781 <arg value="--unlink"/>
782 </exec>
783 <exec append="false" executable="wget" failifexecutionfails="true">
784 <arg value="https://josm.openstreetmap.de/wiki/ImageryCompareIgnores?format=txt"/>
785 <arg value="-O"/>
786 <arg value="imagery_josm.ignores.txt"/>
787 <arg value="--unlink"/>
788 </exec>
789 <exec append="false" executable="wget" failifexecutionfails="true">
790 <arg value="https://raw.githubusercontent.com/osmlab/editor-layer-index/gh-pages/imagery.geojson"/>
791 <arg value="-O"/>
792 <arg value="imagery_eli.geojson"/>
793 <arg value="--unlink"/>
794 </exec>
795 <antcall target="imageryindex"/>
796 </target>
797
798 <target name="checkstyle-compile" depends="init-properties">
799 <mkdir dir="${checkstyle-build.dir}"/>
800 <javac sourcepath="" srcdir="${base.dir}/tools/checkstyle/src" failonerror="true"
801 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
802 includeantruntime="false" createMissingPackageInfoClass="false"
803 encoding="UTF-8" classpath="tools/checkstyle/checkstyle-all.jar">
804 </javac>
805 </target>
806 <target name="checkstyle" depends="checkstyle-compile">
807 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
808 classpath="tools/checkstyle/checkstyle-all.jar:${checkstyle-build.dir}"/>
809 <checkstyle config="tools/checkstyle/josm_checks.xml">
810 <fileset dir="${base.dir}/src/org/openstreetmap/josm" includes="**/*.java"
811 excludes="gui/mappaint/mapcss/parsergen/*.java"/>
812 <fileset dir="${base.dir}/test" includes="**/*.java"/>
813 <formatter type="plain"/>
814 <formatter type="xml" toFile="checkstyle-josm.xml"/>
815 </checkstyle>
816 </target>
817
818 <target name="spotbugs" depends="dist">
819 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/spotbugs/spotbugs-ant.jar"/>
820 <path id="spotbugs-classpath">
821 <fileset dir="${base.dir}/tools/spotbugs/">
822 <include name="*.jar"/>
823 </fileset>
824 </path>
825 <property name="spotbugs-classpath" refid="spotbugs-classpath"/>
826 <spotbugs output="xml"
827 outputFile="spotbugs-josm.xml"
828 classpath="${spotbugs-classpath}"
829 pluginList=""
830 excludeFilter="tools/spotbugs/josm-filter.xml"
831 effort="max"
832 reportLevel="low"
833 >
834 <sourcePath path="${base.dir}/src" />
835 <class location="${dist.jar}" />
836 </spotbugs>
837 </target>
838
839 <target name="pmd" depends="init-properties">
840 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/>
841 <pmd shortFilenames="true" encoding="UTF-8">
842 <sourceLanguage name="java" version="${java.lang.version}" />
843 <ruleset>${base.dir}/tools/pmd/josm-ruleset.xml</ruleset>
844 <formatter type="text" toConsole="true" />
845 <formatter type="xml" toFile="pmd-josm.xml">
846 <param name="encoding" value="UTF-8" />
847 </formatter>
848 <fileset dir="${src.dir}">
849 <include name="org/openstreetmap/josm/**/*.java"/>
850 <exclude name="org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java" />
851 </fileset>
852 </pmd>
853 </target>
854
855 <target name="run" depends="dist">
856 <java jar="${dist.jar}" fork="true">
857 <arg value="--set=expert=true"/>
858 <arg value="--set=remotecontrol.enabled=true"/>
859 <arg value="--set=debug.edt-checker.enable=false"/>
860 <jvmarg value="-Djosm.home=/tmp/.josm/"/>
861 </java>
862 </target>
863 <!--
864 ** Compile build script for generating projection list.
865 -->
866 <target name="epsg-compile" depends="init-properties">
867 <property name="proj-classpath" location="${build.dir}"/>
868 <mkdir dir="${proj-build.dir}"/>
869 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true"
870 destdir="${proj-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
871 includeantruntime="false" createMissingPackageInfoClass="false"
872 encoding="UTF-8" classpath="${proj-classpath}">
873 </javac>
874 </target>
875 <!--
876 ** generate projection list.
877 -->
878 <target name="epsg" depends="epsg-compile">
879 <touch file="${epsg.output}"/>
880 <java classname="BuildProjectionDefinitions" failonerror="true" fork="true">
881 <sysproperty key="java.awt.headless" value="true"/>
882 <classpath>
883 <pathelement path="${base.dir}"/>
884 <pathelement path="${proj-classpath}"/>
885 <pathelement path="${proj-build.dir}"/>
886 </classpath>
887 <arg value="${base.dir}"/>
888 </java>
889 </target>
890</project>
Note: See TracBrowser for help on using the repository browser.