source: josm/trunk/build.xml@ 13010

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

fix #15406 - add more java9 options for geotools plugin

  • Property svn:eol-style set to native
File size: 46.8 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/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.nio=ALL-UNNAMED" if:set="isJava9" />
475 <jvmarg value="--add-opens" if:set="isJava9" />
476 <jvmarg value="java.base/java.text=ALL-UNNAMED" if:set="isJava9" />
477 <jvmarg value="--add-opens" if:set="isJava9" />
478 <jvmarg value="java.base/java.util=ALL-UNNAMED" if:set="isJava9" />
479 <jvmarg value="--add-opens" if:set="isJava9" />
480 <jvmarg value="java.desktop/java.awt=ALL-UNNAMED" if:set="isJava9" />
481 <sysproperty key="josm.home" value="${test.dir}/config/@{testfamily}-josm.home"/>
482 <sysproperty key="josm.test.data" value="${test.dir}/data"/>
483 <sysproperty key="java.awt.headless" value="true"/>
484 <sysproperty key="glass.platform" value="Monocle"/>
485 <sysproperty key="monocle.platform" value="Headless"/>
486 <sysproperty key="prism.order" value="sw"/>
487 <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
488 <classpath>
489 <path refid="test.classpath"/>
490 <pathelement path="${test.dir}/build/unit"/>
491 <pathelement path="${test.dir}/build/@{testfamily}"/>
492 <pathelement path="${test.dir}/config"/>
493 </classpath>
494 <formatter type="plain"/>
495 <formatter type="xml"/>
496 <batchtest fork="yes" todir="${test.dir}/report">
497 <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/>
498 </batchtest>
499 </junit>
500 </jacoco:coverage>
501 </sequential>
502 </macrodef>
503 <target name="test" depends="test-compile" unless="test.notRequired"
504 description="Run unit and functional tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
505 <call-junit testfamily="unit"/>
506 <call-junit testfamily="functional"/>
507 </target>
508 <target name="test-it" depends="test-compile" unless="test-it.notRequired"
509 description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
510 <call-junit testfamily="unit" testITsuffix="IT"/>
511 <call-junit testfamily="functional" testITsuffix="IT"/>
512 </target>
513 <target name="test-perf" depends="test-compile" unless="test-perf.notRequired"
514 description="Run performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
515 <call-junit testfamily="performance" coverage="false"/>
516 </target>
517 <target name="test-html" depends="test, test-it, test-perf" description="Generate HTML test reports">
518 <!-- May require additional ant dependencies like ant-trax package -->
519 <junitreport todir="${test.dir}/report">
520 <fileset dir="${test.dir}/report">
521 <include name="TEST-*.xml"/>
522 </fileset>
523 <report todir="${test.dir}/report/html"/>
524 </junitreport>
525 <jacoco:report>
526 <executiondata>
527 <fileset dir="${test.dir}" includes="*.exec"/>
528 </executiondata>
529 <structure name="JOSM Test Coverage">
530 <classfiles>
531 <fileset dir="${build.dir}" includes="org/openstreetmap/"/>
532 </classfiles>
533 <sourcefiles encoding="UTF-8">
534 <fileset dir="${src.dir}" includes="org/openstreetmap/"/>
535 </sourcefiles>
536 </structure>
537 <html destdir="${test.dir}/report/jacoco"/>
538 </jacoco:report>
539 </target>
540 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
541 <target name="dist-optimized" depends="dist" unless="isJava9">
542 <taskdef resource="proguard/ant/task.properties" classpath="tools/proguard.jar"/>
543 <proguard>
544 -injars ${dist.jar}
545 -outjars ${dist-optimized.jar}
546
547 -libraryjars ${java.home}/lib/rt.jar
548 -libraryjars ${java.home}/lib/jce.jar
549 -libraryjars ${java.home}/lib/ext/jfxrt.jar
550
551 -dontoptimize
552 -dontobfuscate
553
554 # These options probably are not necessary (and make processing a bit slower)
555 -dontskipnonpubliclibraryclasses
556 -dontskipnonpubliclibraryclassmembers
557
558 -keepclasseswithmembers public class org.openstreetmap.josm.gui.MainApplication {
559 public static void main(java.lang.String[]);
560 }
561
562 -keep class * extends org.openstreetmap.josm.io.FileImporter
563 -keep class * extends org.openstreetmap.josm.io.FileExporter
564 -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
565 -keep class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory$PseudoClasses {
566 static boolean *(org.openstreetmap.josm.gui.mappaint.Environment);
567 }
568 -keep class org.apache.commons.logging.impl.*
569
570 -keepclassmembers enum * {
571 public static **[] values();
572 public static ** valueOf(java.lang.String);
573 }
574
575 # Keep unused public classes and methods (needed for plugins)
576 -keep public class * {
577 public protected *;
578 }
579
580 # Keep serialization code
581 -keepclassmembers class * implements java.io.Serializable {
582 static final long serialVersionUID;
583 private static final java.io.ObjectStreamField[] serialPersistentFields;
584 private void writeObject(java.io.ObjectOutputStream);
585 private void readObject(java.io.ObjectInputStream);
586 java.lang.Object writeReplace();
587 java.lang.Object readResolve();
588 }
589
590 # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'.
591 # This note should not be a problem as we don't use obfuscation
592 -dontnote
593 </proguard>
594 </target>
595 <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
596 <target name="dist-optimized-report" depends="dist-optimized" unless="isJava9">
597 <!-- generate difference report between optimized jar and normal one -->
598 <exec executable="perl" dir="${basedir}">
599 <arg value="tools/japicc/japi-compliance-checker.pl"/>
600 <arg value="--lib=JOSM"/>
601 <arg value="--keep-internal"/>
602 <arg value="--v1=${version.entry.commit.revision}"/>
603 <arg value="--v2=${version.entry.commit.revision}-optimized"/>
604 <arg value="--report-path=${dist.dir}/compat_report.html"/>
605 <arg value="${dist.jar}"/>
606 <arg value="${dist-optimized.jar}"/>
607 </exec>
608 </target>
609 <target name="check-plugins" depends="dist-optimized" description="Check of plugins binary compatibility">
610 <local name="dir"/>
611 <local name="plugins"/>
612 <property name="dir" value="plugin-check"/>
613 <typedef uri="antlib:org.codehaus.mojo.animal_sniffer">
614 <classpath path="tools/animal-sniffer-ant-tasks.jar"/>
615 </typedef>
616 <mkdir dir="${dir}"/>
617 <!-- List of deprecated plugins -->
618 <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java">
619 <filterchain>
620 <linecontains>
621 <contains value="new DeprecatedPlugin("/>
622 </linecontains>
623 <tokenfilter>
624 <replaceregex pattern=".*new DeprecatedPlugin\(&quot;(.+?)&quot;.*" replace="\1|" flags="gi"/>
625 </tokenfilter>
626 <striplinebreaks/>
627 <tokenfilter>
628 <replaceregex pattern="\|$" replace="" flags="gi"/>
629 </tokenfilter>
630 </filterchain>
631 </loadfile>
632 <!-- Download list of plugins -->
633 <loadresource property="plugins">
634 <url url="https://josm.openstreetmap.de/plugin"/>
635 <filterchain>
636 <linecontainsregexp negate="true">
637 <regexp pattern="^\t.*"/>
638 </linecontainsregexp>
639 <linecontainsregexp negate="true">
640 <regexp pattern="${deprecated-plugins}"/>
641 </linecontainsregexp>
642 <tokenfilter>
643 <replaceregex pattern="^.*;" replace="" flags="gi"/>
644 </tokenfilter>
645 </filterchain>
646 </loadresource>
647 <!-- Delete files that are not in plugin list (like old plugins) -->
648 <loadresource property="file-list">
649 <propertyresource name="plugins"/>
650 <filterchain>
651 <tokenfilter>
652 <replaceregex pattern="^.*/(.*)$" replace="\1\|" flags=""/>
653 </tokenfilter>
654 <striplinebreaks/>
655 <tokenfilter>
656 <replaceregex pattern="\|$" replace="" flags="gi"/>
657 </tokenfilter>
658 </filterchain>
659 </loadresource>
660 <delete>
661 <restrict>
662 <fileset dir="${dir}"/>
663 <not>
664 <name regex="${file-list}"/>
665 </not>
666 </restrict>
667 </delete>
668 <!-- Download plugins -->
669 <copy todir="${dir}" flatten="true" verbose="true" failonerror="false">
670 <resourcelist>
671 <string value="${plugins}"/>
672 </resourcelist>
673 </copy>
674 <!-- Check plugins -->
675 <as:build-signatures destfile="${dir}/api.sig">
676 <path>
677 <fileset file="${dist-optimized.jar}"/>
678 <fileset file="${java.home}/lib/rt.jar"/>
679 <fileset file="${java.home}/lib/jce.jar"/>
680 <fileset file="${java.home}/lib/ext/jfxrt.jar"/>
681 </path>
682 </as:build-signatures>
683 <as:check-signature signature="${dir}/api.sig" failonerror="false">
684 <ignore classname="au.*"/>
685 <ignore classname="com.*"/>
686 <ignore classname="de.*"/>
687 <ignore classname="edu.*"/>
688 <ignore classname="groovy.*"/>
689 <ignore classname="it.*"/>
690 <ignore classname="javax.*"/>
691 <ignore classname="jogamp.*"/>
692 <ignore classname="junit.*"/>
693 <ignore classname="kdu_jni.*"/>
694 <ignore classname="net.*"/>
695 <ignore classname="netscape.*"/>
696 <ignore classname="nu.*"/>
697 <ignore classname="oracle.*"/>
698 <ignore classname="org.apache.*"/>
699 <ignore classname="org.bouncycastle.*"/>
700 <ignore classname="org.codehaus.*"/>
701 <ignore classname="org.dom4j.*"/>
702 <ignore classname="org.eclipse.*"/>
703 <ignore classname="org.ejml.*"/>
704 <ignore classname="org.gdal.*"/>
705 <ignore classname="org.hibernate.*"/>
706 <ignore classname="org.hsqldb.*"/>
707 <ignore classname="org.ibex.*"/>
708 <ignore classname="org.iso_relax.*"/>
709 <ignore classname="org.jaitools.*"/>
710 <ignore classname="org.jaxen.*"/>
711 <ignore classname="org.jboss.*"/>
712 <ignore classname="org.jdom2.*"/>
713 <ignore classname="org.jfree.*"/>
714 <ignore classname="org.jgraph.*"/>
715 <ignore classname="org.joda.*"/>
716 <ignore classname="org.junit.*"/>
717 <ignore classname="org.jvnet.*"/>
718 <ignore classname="org.kxml2.*"/>
719 <ignore classname="org.objectweb.*"/>
720 <ignore classname="org.osgi.*"/>
721 <ignore classname="org.postgresql.*"/>
722 <ignore classname="org.python.*"/>
723 <ignore classname="org.seasar.*"/>
724 <ignore classname="org.slf4j.*"/>
725 <ignore classname="org.springframework.*"/>
726 <ignore classname="org.testng.*"/>
727 <ignore classname="org.zeromq.*"/>
728 <!-- plugins used by another ones -->
729 <ignore classname="org.openstreetmap.josm.plugins.geotools.*"/>
730 <ignore classname="org.openstreetmap.josm.plugins.jna.*"/>
731 <ignore classname="org.openstreetmap.josm.plugins.jts.*"/>
732 <ignore classname="org.openstreetmap.josm.plugins.log4j.*"/>
733 <ignore classname="org.openstreetmap.josm.plugins.utilsplugin2.*"/>
734 <ignore classname="sun.*"/>
735 <path path="${dir}"/>
736 </as:check-signature>
737 </target>
738
739 <macrodef name="_taginfo">
740 <attribute name="type"/>
741 <attribute name="output"/>
742 <sequential>
743 <echo message="Generating Taginfo for type @{type} to @{output}"/>
744 <groovy src="${taginfoextract}" classpath="${dist.jar}:tools/spotbugs/spotbugs-annotations.jar">
745 <arg value="-t"/>
746 <arg value="@{type}"/>
747 <arg value="--noexit"/>
748 <arg value="--svnweb"/>
749 <arg value="--imgurlprefix"/>
750 <arg value="${imgurlprefix}"/>
751 <arg value="-o"/>
752 <arg value="@{output}"/>
753 </groovy>
754 </sequential>
755 </macrodef>
756
757 <target name="taginfo" depends="dist">
758 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
759 <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/>
760 <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
761 <_taginfo type="mappaint" output="taginfo_style.json"/>
762 <_taginfo type="presets" output="taginfo_presets.json"/>
763 <_taginfo type="external_presets" output="taginfo_external_presets.json"/>
764 </target>
765
766 <target name="imageryindex" depends="init-properties">
767 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
768 <echo message="Checking editor imagery difference"/>
769 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}">
770 <arg value="-noeli"/>
771 <arg value="-p"/>
772 <arg value="imagery_eliout.imagery.xml"/>
773 <arg value="-q"/>
774 <arg value="imagery_josmout.imagery.xml"/>
775 </groovy>
776 </target>
777
778 <target name="imageryindexdownload">
779 <exec append="false" executable="wget" failifexecutionfails="true">
780 <arg value="https://josm.openstreetmap.de/maps"/>
781 <arg value="-O"/>
782 <arg value="imagery_josm.imagery.xml"/>
783 <arg value="--unlink"/>
784 </exec>
785 <exec append="false" executable="wget" failifexecutionfails="true">
786 <arg value="https://josm.openstreetmap.de/wiki/ImageryCompareIgnores?format=txt"/>
787 <arg value="-O"/>
788 <arg value="imagery_josm.ignores.txt"/>
789 <arg value="--unlink"/>
790 </exec>
791 <exec append="false" executable="wget" failifexecutionfails="true">
792 <arg value="https://raw.githubusercontent.com/osmlab/editor-layer-index/gh-pages/imagery.geojson"/>
793 <arg value="-O"/>
794 <arg value="imagery_eli.geojson"/>
795 <arg value="--unlink"/>
796 </exec>
797 <antcall target="imageryindex"/>
798 </target>
799
800 <target name="checkstyle-compile" depends="init-properties">
801 <mkdir dir="${checkstyle-build.dir}"/>
802 <javac sourcepath="" srcdir="${base.dir}/tools/checkstyle/src" failonerror="true"
803 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
804 includeantruntime="false" createMissingPackageInfoClass="false"
805 encoding="UTF-8" classpath="tools/checkstyle/checkstyle-all.jar">
806 </javac>
807 </target>
808 <target name="checkstyle" depends="checkstyle-compile">
809 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
810 classpath="tools/checkstyle/checkstyle-all.jar:${checkstyle-build.dir}"/>
811 <checkstyle config="tools/checkstyle/josm_checks.xml">
812 <fileset dir="${base.dir}/src/org/openstreetmap/josm" includes="**/*.java"
813 excludes="gui/mappaint/mapcss/parsergen/*.java"/>
814 <fileset dir="${base.dir}/test" includes="**/*.java"/>
815 <formatter type="plain"/>
816 <formatter type="xml" toFile="checkstyle-josm.xml"/>
817 </checkstyle>
818 </target>
819
820 <target name="spotbugs" depends="dist">
821 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/spotbugs/spotbugs-ant.jar"/>
822 <path id="spotbugs-classpath">
823 <fileset dir="${base.dir}/tools/spotbugs/">
824 <include name="*.jar"/>
825 </fileset>
826 </path>
827 <property name="spotbugs-classpath" refid="spotbugs-classpath"/>
828 <spotbugs output="xml"
829 outputFile="spotbugs-josm.xml"
830 classpath="${spotbugs-classpath}"
831 pluginList=""
832 excludeFilter="tools/spotbugs/josm-filter.xml"
833 effort="max"
834 reportLevel="low"
835 >
836 <sourcePath path="${base.dir}/src" />
837 <class location="${dist.jar}" />
838 </spotbugs>
839 </target>
840
841 <target name="pmd" depends="init-properties">
842 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/>
843 <pmd shortFilenames="true" encoding="UTF-8">
844 <sourceLanguage name="java" version="${java.lang.version}" />
845 <ruleset>${base.dir}/tools/pmd/josm-ruleset.xml</ruleset>
846 <formatter type="text" toConsole="true" />
847 <formatter type="xml" toFile="pmd-josm.xml">
848 <param name="encoding" value="UTF-8" />
849 </formatter>
850 <fileset dir="${src.dir}">
851 <include name="org/openstreetmap/josm/**/*.java"/>
852 <exclude name="org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java" />
853 </fileset>
854 </pmd>
855 </target>
856
857 <target name="run" depends="dist">
858 <java jar="${dist.jar}" fork="true">
859 <arg value="--set=expert=true"/>
860 <arg value="--set=remotecontrol.enabled=true"/>
861 <arg value="--set=debug.edt-checker.enable=false"/>
862 <jvmarg value="-Djosm.home=/tmp/.josm/"/>
863 </java>
864 </target>
865 <!--
866 ** Compile build script for generating projection list.
867 -->
868 <target name="epsg-compile" depends="init-properties">
869 <property name="proj-classpath" location="${build.dir}"/>
870 <mkdir dir="${proj-build.dir}"/>
871 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true"
872 destdir="${proj-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
873 includeantruntime="false" createMissingPackageInfoClass="false"
874 encoding="UTF-8" classpath="${proj-classpath}">
875 </javac>
876 </target>
877 <!--
878 ** generate projection list.
879 -->
880 <target name="epsg" depends="epsg-compile">
881 <touch file="${epsg.output}"/>
882 <java classname="BuildProjectionDefinitions" failonerror="true" fork="true">
883 <sysproperty key="java.awt.headless" value="true"/>
884 <classpath>
885 <pathelement path="${base.dir}"/>
886 <pathelement path="${proj-classpath}"/>
887 <pathelement path="${proj-build.dir}"/>
888 </classpath>
889 <arg value="${base.dir}"/>
890 </java>
891 </target>
892</project>
Note: See TracBrowser for help on using the repository browser.