source: josm/trunk/build.xml@ 13170

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

ignore org.w3c package in check-plugins target

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