source: josm/trunk/build.xml@ 13098

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

see #15560 - add jacoco.inclbootstrapclasses and jacoco.inclnolocationclasses optional build parameters to record coverage of classes outside of JOSM (to cover JDK EA classes)

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