source: josm/trunk/build.xml@ 16150

Last change on this file since 16150 was 16150, checked in by simon04, 4 years ago

see #16860 - build.xml: ant sources: remove REVISION

  • Property svn:eol-style set to native
File size: 65.0 KB
RevLine 
[4166]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
[7133]7** This will create 'josm-custom.jar' in directory 'dist'. See also
[7183]8** https://josm.openstreetmap.de/wiki/DevelopersGuide/CreateBuild
[4166]9**
10-->
[15977]11<project name="josm" default="dist"
12 xmlns:as="antlib:org.codehaus.mojo.animal_sniffer"
13 xmlns:if="ant:if"
14 xmlns:ivy="antlib:org.apache.ivy.ant"
15 xmlns:jacoco="antlib:org.jacoco.ant"
16 xmlns:unless="ant:unless"
17>
18 <target name="init-ivy">
19 <dirname property="base.dir" file="${ant.file.josm}"/>
20 <property name="lib.dir" location="${base.dir}/lib"/>
21 <property name="tools.dir" location="${base.dir}/tools"/>
22 <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${tools.dir}/ivy/ivy.jar"/>
23 </target>
24 <target name="init-properties" depends="resolve">
[13641]25 <property environment="env"/>
[9765]26 <!-- Load properties in a target and not at top level, so this build file can be
27 imported from an IDE ant file (Netbeans) without messing up IDE properties.
28 When imported from another file, ${basedir} will point to the parent directory
29 of the importing ant file. Use ${base.dir} instead, which is always the parent
30 directory of this file. -->
31 <property name="test.dir" location="${base.dir}/test"/>
32 <property name="src.dir" location="${base.dir}/src"/>
[13819]33 <condition property="noJavaFX">
34 <or>
[13642]35 <isset property="env.JOSM_NOJAVAFX"/>
[13819]36 <not>
37 <available classname="javafx.scene.media.Media"/>
38 </not>
39 </or>
[13641]40 </condition>
[9765]41 <property name="build.dir" location="${base.dir}/build"/>
42 <property name="dist.dir" location="${base.dir}/dist"/>
[16140]43 <property name="resources.dir" location="${base.dir}/resources"/>
[14136]44 <property name="modules.dir" location="${dist.dir}/modules"/>
[13209]45 <property name="tools.dir" location="${base.dir}/tools"/>
46 <property name="pmd.dir" location="${tools.dir}/pmd"/>
47 <property name="checkstyle.dir" location="${tools.dir}/checkstyle"/>
48 <property name="spotbugs.dir" location="${tools.dir}/spotbugs"/>
49 <property name="javacc.home" location="${tools.dir}"/>
[9765]50 <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/>
51 <property name="proj-build.dir" location="${base.dir}/build2"/>
[15033]52 <property name="script-build.dir" location="${base.dir}/build2"/>
[12582]53 <property name="checkstyle-build.dir" location="${base.dir}/build2"/>
[16140]54 <property name="epsg.output" location="${resources.dir}/data/projection/custom-epsg"/>
[14222]55 <property name="error_prone_core.jar" location="${tools.dir}/error_prone_core.jar"/>
56 <property name="error_prone_javac.jar" location="${tools.dir}/error_prone_javac.jar"/>
[15963]57 <property name="auto-value-annotations.jar" location="${tools.dir}/auto-value-annotations.jar"/>
[15974]58 <property name="dataflow.jar" location="${tools.dir}/dataflow-shaded.jar"/>
[14785]59 <property name="javacutil.jar" location="${tools.dir}/javacutil.jar"/>
[14782]60 <property name="failureaccess.jar" location="${tools.dir}/failureaccess.jar"/>
61 <property name="guava.jar" location="${tools.dir}/guava.jar"/>
[15034]62 <property name="commons-lang3.jar" location="${pmd.dir}/commons-lang3-3.8.1.jar"/>
[14222]63 <property name="jformatstring.jar" location="${spotbugs.dir}/jFormatString-3.0.0.jar"/>
[12628]64 <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/>
65 <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/>
[16141]66 <property name="dist-sources.jar" location="${dist.dir}/josm-custom-sources.jar"/>
[12628]67 <property name="java.lang.version" value="1.8" />
[14052]68 <property name="test.headless" value="true" />
[13103]69 <property name="jacoco.includes" value="org.openstreetmap.josm.*" />
[13097]70 <property name="jacoco.inclbootstrapclasses" value="false" />
71 <property name="jacoco.inclnolocationclasses" value="false" />
[14309]72 <property name="junit.printsummary" value="on" />
[15032]73 <property name="default-junit-includes" value="**/*Test.class"/>
74 <property name="default-junitIT-includes" value="**/*TestIT.class"/>
[9765]75 <!-- build parameter: compression level (ant -Dclevel=N)
76 N ranges from 0 (no compression) to 9 (maximum compression)
77 default: 9 -->
78 <condition property="clevel" value="${clevel}" else="9">
79 <isset property="clevel"/>
80 </condition>
[14172]81 <!-- For Java specific stuff by version -->
82 <condition property="isJava9"><matches string="${ant.java.version}" pattern="(1.)?(9|1[0-9])" /></condition>
83 <condition property="isJava10"><matches string="${ant.java.version}" pattern="1[0-9]" /></condition>
84 <condition property="isJava11"><matches string="${ant.java.version}" pattern="1[1-9]" /></condition>
85 <condition property="isJava12"><matches string="${ant.java.version}" pattern="1[2-9]" /></condition>
86 <condition property="isJava13"><matches string="${ant.java.version}" pattern="1[3-9]" /></condition>
87 <!-- Disable jacoco on Java 13+, see https://github.com/jacoco/jacoco/pull/738 -->
[13523]88 <condition property="coverageByDefault">
89 <not>
[14172]90 <isset property="isJava13"/>
[13523]91 </not>
92 </condition>
[14244]93 <condition property="java.library.dir" value="jmods" else="lib">
94 <isset property="isJava9"/>
95 </condition>
[9766]96 <path id="test.classpath">
97 <fileset dir="${test.dir}/lib">
98 <include name="**/*.jar"/>
99 </fileset>
[16001]100 <pathelement path="${build.dir}"/>
[16140]101 <pathelement path="${resources.dir}"/>
[14783]102 <pathelement path="${failureaccess.jar}"/>
103 <pathelement path="${guava.jar}"/>
[15033]104 <pathelement path="${commons-lang3.jar}"/>
[13209]105 <pathelement path="${spotbugs.dir}/spotbugs-annotations.jar"/>
[9766]106 </path>
[11713]107 <path id="pmd.classpath">
[13209]108 <fileset dir="${pmd.dir}">
[11713]109 <include name="*.jar"/>
110 </fileset>
111 </path>
[14222]112 <path id="processor.path">
113 <pathelement location="${error_prone_core.jar}"/>
[14785]114 <pathelement location="${dataflow.jar}"/>
115 <pathelement location="${javacutil.jar}"/>
[14782]116 <pathelement location="${failureaccess.jar}"/>
117 <pathelement location="${guava.jar}"/>
[14222]118 <pathelement location="${jformatstring.jar}"/>
[15963]119 <pathelement location="${auto-value-annotations.jar}"/>
[14222]120 </path>
[9765]121 </target>
[4252]122
[4166]123 <!--
[6133]124 ** Used by Eclipse ant builder for updating
125 ** the REVISION file used by JOSM
126 -->
[4166]127 <target name="create-revision-eclipse">
128 <property name="revision.dir" value="bin"/>
129 <antcall target="create-revision"/>
[12931]130 <mkdir dir="bin/META-INF/services"/>
131 <echo encoding="UTF-8" file="bin/META-INF/services/java.text.spi.DecimalFormatSymbolsProvider">org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider</echo>
[4166]132 </target>
133 <!--
[6540]134 ** Initializes the REVISION.XML file from SVN information
[6133]135 -->
[9765]136 <target name="init-svn-revision-xml" depends="init-properties">
137 <exec append="false" output="${base.dir}/REVISION.XML" executable="svn" dir="${base.dir}" failifexecutionfails="false" resultproperty="svn.info.result">
[4166]138 <env key="LANG" value="C"/>
139 <arg value="info"/>
140 <arg value="--xml"/>
141 <arg value="."/>
142 </exec>
[6585]143 <condition property="svn.info.success">
144 <equals arg1="${svn.info.result}" arg2="0" />
145 </condition>
[6540]146 </target>
147 <!--
148 ** Initializes the REVISION.XML file from git information
149 -->
[9765]150 <target name="init-git-revision-xml" unless="svn.info.success" depends="init-properties">
151 <exec append="false" output="${base.dir}/REVISION.XML" executable="git" dir="${base.dir}" failifexecutionfails="false">
[6540]152 <arg value="log"/>
153 <arg value="-1"/>
154 <arg value="--grep=git-svn-id"/>
[6545]155 <!--
156 %B: raw body (unwrapped subject and body)
157 %n: new line
158 %ai: author date, ISO 8601 format
159 -->
160 <arg value="--pretty=format:%B%n%ai"/>
[6540]161 <arg value="HEAD"/>
162 </exec>
[9765]163 <replaceregexp file="${base.dir}/REVISION.XML" flags="s"
[6545]164 match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
165 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;"/>
[6540]166 </target>
167 <!--
168 ** Creates the REVISION file to be included in the distribution
169 -->
[9765]170 <target name="create-revision" depends="init-properties,init-svn-revision-xml,init-git-revision-xml">
[6540]171 <property name="revision.dir" value="${build.dir}"/>
[9765]172 <xmlproperty file="${base.dir}/REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
173 <delete file="${base.dir}/REVISION.XML"/>
[4166]174 <tstamp>
175 <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
176 </tstamp>
177 <property name="version.entry.commit.revision" value="UNKNOWN"/>
[6540]178 <property name="version.entry.commit.date" value="UNKNOWN"/>
[4166]179 <mkdir dir="${revision.dir}"/>
[5362]180 <!-- add Build-Name: ... when making special builds, e.g. DEBIAN -->
[4166]181 <echo file="${revision.dir}/REVISION">
182# automatically generated by JOSM build.xml - do not edit
183Revision: ${version.entry.commit.revision}
184Is-Local-Build: true
185Build-Date: ${build.tstamp}
186</echo>
187 </target>
[6540]188 <!--
189 ** Check internal XML files against their XSD
190 -->
[9765]191 <target name="check-schemas" unless="check-schemas.notRequired" depends="init-properties">
[16140]192 <schemavalidate file="${resources.dir}/data/defaultpresets.xml" >
193 <schema namespace="http://josm.openstreetmap.de/tagging-preset-1.0" file="${resources.dir}/data/tagging-preset.xsd" />
[6208]194 </schemavalidate>
195 </target>
[6540]196 <!--
197 ** Main target that builds JOSM and checks XML against schemas
198 -->
[16036]199 <target name="dist" depends="compile,extract-libraries,epsg,copy-resources,create-revision,check-schemas">
[4166]200 <echo>Revision ${version.entry.commit.revision}</echo>
[12648]201 <copy file="CONTRIBUTION" todir="${build.dir}"/>
202 <copy file="README" todir="${build.dir}"/>
203 <copy file="LICENSE" todir="${build.dir}"/>
[4166]204 <!-- create josm-custom.jar -->
[12628]205 <delete file="${dist.jar}"/>
206 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
[4166]207 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
208 <manifest>
[11926]209 <attribute name="Main-class" value="org.openstreetmap.josm.gui.MainApplication"/>
[4166]210 <attribute name="Main-Version" value="${version.entry.commit.revision} SVN"/>
211 <attribute name="Main-Date" value="${version.entry.commit.date}"/>
[6341]212 <attribute name="Permissions" value="all-permissions"/>
213 <attribute name="Codebase" value="josm.openstreetmap.de"/>
214 <attribute name="Application-Name" value="JOSM - Java OpenStreetMap Editor"/>
[12205]215 <!-- Java 9 stuff. Entries are safely ignored by Java 8 -->
[15469]216 <attribute name="Add-Exports" value="java.desktop/com.apple.eawt java.desktop/com.sun.imageio.spi java.desktop/com.sun.imageio.plugins.jpeg javafx.graphics/com.sun.javafx.application jdk.deploy/com.sun.deploy.config" />
[12932]217 <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" />
[4166]218 </manifest>
[12931]219 <service type="java.text.spi.DecimalFormatSymbolsProvider" provider="org.openstreetmap.josm.tools.JosmDecimalFormatSymbolsProvider" />
[7133]220 <zipfileset dir="${src.dir}/org/openstreetmap/gui/jmapviewer/images" prefix="org/openstreetmap/gui/jmapviewer/images"/>
[4166]221 </jar>
222 </target>
[7001]223 <!-- Mac OS X target -->
[9765]224 <target name="mac" depends="init-properties">
[6217]225 <!-- Using https://bitbucket.org/infinitekind/appbundler to create mac application bundle -->
[14793]226 <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="${tools.dir}/appbundler.jar"/>
[6217]227 <!-- create MacOS X application bundle -->
[6945]228 <bundleapp outputdirectory="${bundle.outdir}" name="JOSM" displayname="JOSM" executablename="JOSM" identifier="org.openstreetmap.josm"
[6216]229 mainclassname="org.openstreetmap.josm.gui.MainApplication"
[6217]230 copyright="JOSM, and all its integral parts, are released under the GNU General Public License v2 or later"
[6216]231 applicationCategory="public.app-category.utilities"
232 shortversion="${version.entry.commit.revision} SVN"
233 version="${version.entry.commit.revision} SVN"
[16007]234 icon="native/macosx/JOSM.app/Contents/Resources/JOSM.icns"
[6217]235 highResolutionCapable="true">
[6216]236
237 <arch name="x86_64"/>
238 <arch name="i386"/>
239
[6945]240 <classpath file="${bundle.jar}"/>
[6216]241
[13722]242 <option value="-Xmx2048m"/>
[6216]243
244 <option value="-Xdock:icon=Contents/Resources/JOSM.icns"/>
245 <option value="-Xdock:name=JOSM"/>
246
247 <!-- OSX specific options, optional -->
248 <option value="-Dapple.laf.useScreenMenuBar=true"/>
249 <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
250 <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
251 <option value="-Dcom.apple.mrj.application.apple.menu.about.name=JOSM"/>
252 <option value="-Dcom.apple.smallTabs=true"/>
253 </bundleapp>
[9765]254
[6217]255 <!-- appbundler lacks the possibility of defining our own keys or using a template, so update the .plist manually -->
[13209]256 <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath="${tools.dir}/xmltask.jar"/>
[9765]257
[6945]258 <xmltask source="${bundle.outdir}/JOSM.app/Contents/Info.plist" dest="${bundle.outdir}/JOSM.app/Contents/Info.plist" indent="false">
[7367]259 <!-- remove empty CFBundleDocumentTypes definition -->
260 <remove path="/plist/dict/key[text()='CFBundleDocumentTypes']|/plist/dict/key[text()='CFBundleDocumentTypes']/following-sibling::array[1]"/>
[7287]261 <!-- insert our own keys -->
[16007]262 <insert position="before" path="/plist/dict/key[1]" file="native/macosx/JOSM.app/Contents/Info.plist_template.xml" />
[6217]263 </xmltask>
[9765]264
[6216]265 <!-- create ZIP file with MacOS X application bundle -->
[7001]266 <zip destfile="${bundle.outdir}/josm-custom-macosx.zip" update="true">
[6945]267 <zipfileset dir="." includes="CONTRIBUTION README LICENSE"/>
268 <zipfileset dir="${bundle.outdir}" includes="JOSM.app/**/*" filemode="755" />
[6216]269 </zip>
[6217]270 </target>
[7001]271 <target name="distmac" depends="dist">
272 <antcall target="mac">
[9765]273 <param name="bundle.outdir" value="${dist.dir}"/>
[12628]274 <param name="bundle.jar" value="${dist.jar}"/>
[6945]275 </antcall>
276 </target>
[7839]277 <!-- Windows target -->
278 <target name="distwin" depends="dist">
[16007]279 <exec dir="native/windows" executable="./josm-setup-unix.sh">
[7839]280 <arg value="${version.entry.commit.revision}"/>
[12628]281 <arg value="${dist.jar}"/>
[7839]282 </exec>
283 </target>
[5392]284 <target name="javacc" depends="init" unless="javacc.notRequired">
[4252]285 <mkdir dir="${mapcss.dir}/parsergen"/>
[11676]286 <java classname="javacc" fork="true" failonerror="true">
287 <classpath path="${javacc.home}/javacc.jar"/>
[7043]288 <arg value="-DEBUG_PARSER=false"/>
289 <arg value="-DEBUG_TOKEN_MANAGER=false"/>
[12628]290 <arg value="-JDK_VERSION=${java.lang.version}"/>
[6446]291 <arg value="-GRAMMAR_ENCODING=UTF-8"/>
[4257]292 <arg value="-OUTPUT_DIRECTORY=${mapcss.dir}/parsergen"/>
293 <arg value="${mapcss.dir}/MapCSSParser.jj"/>
[11676]294 </java>
[4252]295 </target>
[16036]296 <target name="compile-cots" depends="init" description="Compiles third-party dependencies not retrieved with Ivy">
[7068]297 <!-- COTS -->
[16025]298 <javac srcdir="${src.dir}" includes="com/google/**,com/kitfox/**,oauth/**,org/apache/commons/**" nowarn="on" encoding="iso-8859-1"
[12648]299 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false">
[7019]300 <!-- get rid of "internal proprietary API" warning -->
[7068]301 <compilerarg value="-XDignore.symbol.file"/>
[10833]302 <exclude name="org/apache/commons/jcs/JCS.java"/>
[10866]303 <exclude name="org/apache/commons/jcs/access/GroupCacheAccess.java"/>
[10833]304 <exclude name="org/apache/commons/jcs/access/PartitionedCacheAccess.java"/>
[10866]305 <exclude name="org/apache/commons/jcs/access/behavior/IGroupCacheAccess.java"/>
306 <exclude name="org/apache/commons/jcs/access/exception/InvalidGroupException.java"/>
[10833]307 <exclude name="org/apache/commons/jcs/admin/servlet/**"/>
[10866]308 <exclude name="org/apache/commons/jcs/auxiliary/AbstractAuxiliaryCacheMonitor.java"/>
[8173]309 <exclude name="org/apache/commons/jcs/auxiliary/disk/jdbc/**"/>
[10866]310 <exclude name="org/apache/commons/jcs/auxiliary/lateral/**"/>
[8173]311 <exclude name="org/apache/commons/jcs/auxiliary/remote/**"/>
[10866]312 <exclude name="org/apache/commons/jcs/engine/CacheAdaptor.java"/>
313 <exclude name="org/apache/commons/jcs/engine/CacheGroup.java"/>
314 <exclude name="org/apache/commons/jcs/engine/CacheWatchRepairable.java"/>
[10833]315 <exclude name="org/apache/commons/jcs/engine/Zombie*.java"/>
[10866]316 <exclude name="org/apache/commons/jcs/engine/logging/CacheEventLoggerDebugLogger.java"/>
[10833]317 <exclude name="org/apache/commons/jcs/utils/access/**"/>
318 <exclude name="org/apache/commons/jcs/utils/discovery/**"/>
319 <exclude name="org/apache/commons/jcs/utils/net/**"/>
320 <exclude name="org/apache/commons/jcs/utils/props/**"/>
[8173]321 <exclude name="org/apache/commons/jcs/utils/servlet/**"/>
[16050]322 <classpath>
323 <path refid="runtime.path"/>
324 </classpath>
[7019]325 </javac>
[12648]326 </target>
[16036]327 <target name="compile-jmapviewer" depends="init" description="Compiles JMapViewer">
[8526]328 <!-- JMapViewer -->
[14222]329 <javac sourcepath="" srcdir="${src.dir}" fork="yes"
[16022]330 excludes="com/**,oauth/**,org/apache/commons/**,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/gui/jmapviewer/JMapViewerTree.java,org/openstreetmap/gui/jmapviewer/checkBoxTree/**,org/openstreetmap/josm/**"
[12648]331 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
[14222]332 <compilerarg value="-J-Xbootclasspath/p:${error_prone_javac.jar}" unless:set="isJava9"/>
333 <compilerarg line="-XDcompilePolicy=simple"/>
334 <compilerarg value="-processorpath"/>
335 <compilerarg pathref="processor.path"/>
[7021]336 <compilerarg value="-Xlint:cast"/>
[4166]337 <compilerarg value="-Xlint:deprecation"/>
[7022]338 <compilerarg value="-Xlint:dep-ann"/>
339 <compilerarg value="-Xlint:divzero"/>
340 <compilerarg value="-Xlint:empty"/>
341 <compilerarg value="-Xlint:finally"/>
342 <compilerarg value="-Xlint:overrides"/>
343 <!--<compilerarg value="-Xlint:rawtypes"/>-->
344 <compilerarg value="-Xlint:static"/>
345 <compilerarg value="-Xlint:try"/>
[4166]346 <compilerarg value="-Xlint:unchecked"/>
[7367]347 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
[7351]348 <compilerarg value="-XDignore.symbol.file"/>
[15963]349 <compilerarg value="-Xplugin:ErrorProne -Xep:CatchAndPrintStackTrace:OFF -Xep:ReferenceEquality:OFF -Xep:StringSplitter:OFF -Xep:BadImport:OFF"/>
[10659]350 <compilerarg line="-Xmaxwarns 1000"/>
[4166]351 </javac>
[12648]352 </target>
[16036]353 <target name="compile" depends="init,javacc,compile-cots,compile-jmapviewer" unless="compile.notRequired" description="Compiles JOSM">
[8526]354 <!-- JOSM -->
[14222]355 <javac sourcepath="" srcdir="${src.dir}" fork="yes"
[16022]356 excludes="com/**,oauth/**,org/apache/commons/**,org/openstreetmap/gui/jmapviewer/**"
[12648]357 destdir="${build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
[14222]358 <compilerarg value="-J-Xbootclasspath/p:${error_prone_javac.jar}" unless:set="isJava9"/>
359 <compilerarg line="-XDcompilePolicy=simple"/>
360 <compilerarg value="-processorpath"/>
361 <compilerarg pathref="processor.path"/>
[8526]362 <compilerarg value="-Xlint:cast"/>
363 <compilerarg value="-Xlint:deprecation"/>
364 <compilerarg value="-Xlint:dep-ann"/>
365 <compilerarg value="-Xlint:divzero"/>
366 <compilerarg value="-Xlint:empty"/>
367 <compilerarg value="-Xlint:finally"/>
368 <compilerarg value="-Xlint:overrides"/>
369 <!--<compilerarg value="-Xlint:rawtypes"/>-->
370 <compilerarg value="-Xlint:static"/>
371 <compilerarg value="-Xlint:try"/>
372 <compilerarg value="-Xlint:unchecked"/>
373 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
374 <compilerarg value="-XDignore.symbol.file"/>
[15963]375 <compilerarg value="-Xplugin:ErrorProne -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF -Xep:UnnecessaryParentheses:OFF -Xep:EqualsGetClass:OFF -Xep:ThreadPriorityCheck:OFF -Xep:UndefinedEquals:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:OverrideThrowableToString:OFF -Xep:JavaTimeDefaultTimeZone:OFF -Xep:UnusedVariable:OFF -Xep:EqualsUsingHashCode:OFF -Xep:BadImport:OFF -Xep:UnnecessaryLambda:OFF -Xep:AnnotateFormatMethod:OFF -Xep:MutablePublicArray:OFF"/>
[10659]376 <compilerarg line="-Xmaxwarns 1000"/>
[15977]377 <classpath>
378 <path refid="runtime.path"/>
379 </classpath>
[8526]380 </javac>
[16036]381 </target>
382 <target name="copy-resources" description="Copy resource files to build directory">
[6756]383 <copy todir="build" failonerror="no" includeemptydirs="no">
[16140]384 <fileset dir="${resources.dir}"/>
[6756]385 </copy>
[4166]386 </target>
[9765]387 <target name="init" depends="init-properties">
[5392]388 <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
389 <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
390 </uptodate>
[9765]391 <mkdir dir="${build.dir}"/>
392 <mkdir dir="${dist.dir}"/>
[4166]393 </target>
[9765]394 <target name="javadoc" depends="init-properties">
395 <javadoc destdir="javadoc"
[7133]396 sourcepath="${src.dir}"
[15992]397 classpathref="compile.path"
[9765]398 encoding="UTF-8"
[5263]399 packagenames="org.openstreetmap.josm.*,org.openstreetmap.gui.jmapviewer.*"
[9250]400 excludepackagenames="org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.*"
[5263]401 windowtitle="JOSM"
402 use="true"
[5481]403 private="true"
[5263]404 linksource="true"
405 author="false">
[15106]406 <link href="https://docs.oracle.com/javase/8/docs/api" unless:set="isJava11" />
407 <link href="https://docs.oracle.com/en/java/javase/11/docs/api" if:set="isJava11" />
[5263]408 <doctitle><![CDATA[<h2>JOSM - Javadoc</h2>]]></doctitle>
[6955]409 <bottom><![CDATA[<a href="https://josm.openstreetmap.de/">JOSM</a>]]></bottom>
[15243]410 <!-- Disable HTML checking until we switch to Java13+, see https://bugs.openjdk.java.net/browse/JDK-8223552 -->
411 <arg value="-Xdoclint:-html" if:set="isJava13" />
[13494]412 <arg value="-html5" if:set="isJava9" />
[13820]413 <arg value="--add-exports" if:set="isJava9" unless:set="noJavaFX" />
414 <arg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" unless:set="noJavaFX" />
[5263]415 </javadoc>
416 </target>
[9765]417 <target name="clean" depends="init-properties">
418 <delete dir="${build.dir}"/>
419 <delete dir="${proj-build.dir}"/>
[15033]420 <delete dir="${script-build.dir}"/>
[12582]421 <delete dir="${checkstyle-build.dir}"/>
[9765]422 <delete dir="${dist.dir}"/>
[4252]423 <delete dir="${mapcss.dir}/parsergen"/>
[8535]424 <delete file="${src.dir}/org/w3/_2001/xmlschema/Adapter1.java"/>
425 <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
[9133]426 <delete file="${epsg.output}"/>
[13209]427 <delete file="${pmd.dir}/cache"/>
[4166]428 </target>
[7068]429 <macrodef name="init-test-preferences">
430 <attribute name="testfamily"/>
431 <sequential>
432 <copy file="${test.dir}/config/preferences.template.xml" tofile="${test.dir}/config/@{testfamily}-josm.home/preferences.xml"/>
433 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_USERNAME@" value="${osm.username}"/>
434 <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_PASSWORD@" value="${osm.password}"/>
435 </sequential>
436 </macrodef>
[9765]437 <target name="test-init" depends="init-properties">
[6121]438 <mkdir dir="${test.dir}/build"/>
[7068]439 <mkdir dir="${test.dir}/build/unit"/>
440 <mkdir dir="${test.dir}/build/functional"/>
441 <mkdir dir="${test.dir}/build/performance"/>
[4166]442 <mkdir dir="${test.dir}/report"/>
[7068]443 <init-test-preferences testfamily="unit"/>
444 <init-test-preferences testfamily="functional"/>
445 <init-test-preferences testfamily="performance"/>
[13209]446 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="${tools.dir}/jacocoant.jar" />
[4166]447 </target>
[9765]448 <target name="test-clean" depends="init-properties">
[6121]449 <delete dir="${test.dir}/build"/>
[4166]450 <delete dir="${test.dir}/report"/>
[6133]451 <delete file="${test.dir}/jacoco.exec" />
[9501]452 <delete file="${test.dir}/jacocoIT.exec" />
[10850]453 <delete file="${test.dir}/config/unit-josm.home" failonerror="false"/>
454 <delete file="${test.dir}/config/functional-josm.home" failonerror="false"/>
455 <delete file="${test.dir}/config/performance-josm.home" failonerror="false"/>
[4166]456 </target>
[14065]457 <macrodef name="call-javac">
[7068]458 <attribute name="testfamily"/>
459 <element name="cp-elements"/>
460 <sequential>
[14065]461 <javac srcdir="${test.dir}/@{testfamily}" destdir="${test.dir}/build/@{testfamily}"
462 target="${java.lang.version}" source="${java.lang.version}" debug="on"
463 includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
464 <compilerarg value="-Xlint:all"/>
465 <compilerarg value="-Xlint:-serial"/>
[7068]466 <classpath>
467 <cp-elements/>
468 </classpath>
[14065]469 </javac>
[7068]470 </sequential>
471 </macrodef>
[16036]472 <target name="test-compile" depends="test-init,compile,extract-libraries,epsg,copy-resources" description="Compiles all tests">
[14065]473 <call-javac testfamily="unit">
[7068]474 <cp-elements>
475 <path refid="test.classpath"/>
476 </cp-elements>
[14065]477 </call-javac>
478 <call-javac testfamily="functional">
[7068]479 <cp-elements>
480 <path refid="test.classpath"/>
481 <pathelement path="${test.dir}/build/unit"/>
482 </cp-elements>
[14065]483 </call-javac>
484 <call-javac testfamily="performance">
[7068]485 <cp-elements>
486 <path refid="test.classpath"/>
487 <pathelement path="${test.dir}/build/unit"/>
488 </cp-elements>
[14065]489 </call-javac>
[4166]490 </target>
[7068]491 <macrodef name="call-junit">
492 <attribute name="testfamily"/>
[9501]493 <attribute name="testITsuffix" default=""/>
[13523]494 <attribute name="coverage" default="${coverageByDefault}"/>
[15032]495 <attribute name="includes" default="${default-junit@{testITsuffix}-includes}"/>
496 <attribute name="excludes" default="${default-junit@{testITsuffix}-excludes}"/>
[7068]497 <sequential>
[9501]498 <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/>
[13103]499 <jacoco:coverage destfile="${test.dir}/jacoco@{testITsuffix}.exec" enabled="@{coverage}" includes="${jacoco.includes}"
500 inclbootstrapclasses="${jacoco.inclbootstrapclasses}" inclnolocationclasses="${jacoco.inclnolocationclasses}">
[14309]501 <junit printsummary="${junit.printsummary}" fork="true" forkmode="once" failureproperty="test.@{testfamily}@{testITsuffix}.failed">
[7367]502 <jvmarg value="-Dfile.encoding=UTF-8"/>
[14604]503 <jvmarg value="-javaagent:${test.dir}/lib/jmockit.jar"/>
[13505]504 <jvmarg value="--add-modules" if:set="isJava9" unless:set="isJava11" />
505 <jvmarg value="java.activation,java.se.ee" if:set="isJava9" unless:set="isJava11" />
[13820]506 <jvmarg value="--add-exports" if:set="isJava9" unless:set="noJavaFX" />
507 <jvmarg value="javafx.graphics/com.sun.javafx.application=ALL-UNNAMED" if:set="isJava9" unless:set="noJavaFX" />
508 <jvmarg value="--add-exports" if:set="isJava9" unless:set="isJava11" />
509 <jvmarg value="jdk.deploy/com.sun.deploy.config=ALL-UNNAMED" if:set="isJava9" unless:set="isJava11" />
[12228]510 <jvmarg value="--add-opens" if:set="isJava9" />
[12230]511 <jvmarg value="java.base/java.io=ALL-UNNAMED" if:set="isJava9" />
512 <jvmarg value="--add-opens" if:set="isJava9" />
[12228]513 <jvmarg value="java.base/java.lang=ALL-UNNAMED" if:set="isJava9" />
[12230]514 <jvmarg value="--add-opens" if:set="isJava9" />
[12932]515 <jvmarg value="java.base/java.nio=ALL-UNNAMED" if:set="isJava9" />
516 <jvmarg value="--add-opens" if:set="isJava9" />
[12230]517 <jvmarg value="java.base/java.text=ALL-UNNAMED" if:set="isJava9" />
518 <jvmarg value="--add-opens" if:set="isJava9" />
519 <jvmarg value="java.base/java.util=ALL-UNNAMED" if:set="isJava9" />
520 <jvmarg value="--add-opens" if:set="isJava9" />
[14233]521 <jvmarg value="java.base/jdk.internal.loader=ALL-UNNAMED" if:set="isJava9" />
522 <jvmarg value="--add-opens" if:set="isJava9" />
[12230]523 <jvmarg value="java.desktop/java.awt=ALL-UNNAMED" if:set="isJava9" />
[7068]524 <sysproperty key="josm.home" value="${test.dir}/config/@{testfamily}-josm.home"/>
525 <sysproperty key="josm.test.data" value="${test.dir}/data"/>
[14052]526 <sysproperty key="java.awt.headless" value="${test.headless}"/>
[10529]527 <sysproperty key="glass.platform" value="Monocle"/>
528 <sysproperty key="monocle.platform" value="Headless"/>
529 <sysproperty key="prism.order" value="sw"/>
[7068]530 <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
531 <classpath>
532 <path refid="test.classpath"/>
533 <pathelement path="${test.dir}/build/unit"/>
534 <pathelement path="${test.dir}/build/@{testfamily}"/>
535 <pathelement path="${test.dir}/config"/>
536 </classpath>
537 <formatter type="plain"/>
538 <formatter type="xml"/>
539 <batchtest fork="yes" todir="${test.dir}/report">
[15032]540 <fileset dir="${test.dir}/build/@{testfamily}" includes="@{includes}" excludes="@{excludes}"/>
[7068]541 </batchtest>
542 </junit>
543 </jacoco:coverage>
544 </sequential>
545 </macrodef>
[9501]546 <target name="test" depends="test-compile" unless="test.notRequired"
[12534]547 description="Run unit and functional tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
[7068]548 <call-junit testfamily="unit"/>
549 <call-junit testfamily="functional"/>
[4166]550 </target>
[14141]551 <target name="test-hardfail" depends="test" description="Run 'test' target but abort if tests failed">
552 <fail message="'test' failed">
553 <condition>
554 <or>
555 <isset property="test.unit.failed"/>
556 <isset property="test.functional.failed"/>
557 </or>
558 </condition>
559 </fail>
560 </target>
561 <target name="test-unit" depends="test-compile" unless="test-unit.notRequired"
562 description="Run unit tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
563 <call-junit testfamily="unit"/>
564 </target>
565 <target name="test-unit-hardfail" depends="test-unit" description="Run 'test-unit' target but abort if tests failed">
566 <fail message="'test-unit' failed" if="test.unit.failed"/>
567 </target>
[16051]568 <target name="test-it" depends="test-compile,create-revision" unless="test-it.notRequired"
[9501]569 description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
570 <call-junit testfamily="unit" testITsuffix="IT"/>
571 <call-junit testfamily="functional" testITsuffix="IT"/>
572 </target>
[14141]573 <target name="test-it-hardfail" depends="test-it" description="Run 'test-it' target but abort if tests failed">
574 <fail message="'test-it' failed">
575 <condition>
576 <or>
577 <isset property="test.unitIT.failed"/>
578 <isset property="test.functionalIT.failed"/>
579 </or>
580 </condition>
581 </fail>
582 </target>
[12534]583 <target name="test-perf" depends="test-compile" unless="test-perf.notRequired"
584 description="Run performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
585 <call-junit testfamily="performance" coverage="false"/>
586 </target>
[14141]587 <target name="test-perf-hardfail" depends="test-perf" description="Run 'test-perf' target but abort if tests failed">
588 <fail message="'test-perf' failed" if="test.performance.failed"/>
589 </target>
[15703]590 <target name="test-html" depends="test, test-it, test-perf" description="Generate HTML, CSV and XML test reports">
[4166]591 <!-- May require additional ant dependencies like ant-trax package -->
592 <junitreport todir="${test.dir}/report">
593 <fileset dir="${test.dir}/report">
594 <include name="TEST-*.xml"/>
595 </fileset>
596 <report todir="${test.dir}/report/html"/>
597 </junitreport>
[6133]598 <jacoco:report>
599 <executiondata>
[11963]600 <fileset dir="${test.dir}" includes="*.exec"/>
[6133]601 </executiondata>
602 <structure name="JOSM Test Coverage">
603 <classfiles>
604 <fileset dir="${build.dir}" includes="org/openstreetmap/"/>
605 </classfiles>
606 <sourcefiles encoding="UTF-8">
607 <fileset dir="${src.dir}" includes="org/openstreetmap/"/>
608 </sourcefiles>
609 </structure>
[6134]610 <html destdir="${test.dir}/report/jacoco"/>
[15703]611 <xml destfile="${test.dir}/report/jacoco.xml"/>
612 <csv destfile="${test.dir}/report/jacoco.csv"/>
[6133]613 </jacoco:report>
[4166]614 </target>
[14258]615 <target name="dist-optimized" depends="dist" unless="isJava11">
[13209]616 <taskdef resource="proguard/ant/task.properties" classpath="${tools.dir}/proguard.jar"/>
[4166]617 <proguard>
[12628]618 -injars ${dist.jar}
619 -outjars ${dist-optimized.jar}
[4166]620
[14244]621 -libraryjars ${java.home}/${java.library.dir}
[4166]622
[7367]623 -dontoptimize
624 -dontobfuscate
[16116]625 -dontwarn org.jetbrains.annotations.**
[4166]626
[7367]627 # These options probably are not necessary (and make processing a bit slower)
628 -dontskipnonpubliclibraryclasses
629 -dontskipnonpubliclibraryclassmembers
[4166]630
[7367]631 -keepclasseswithmembers public class org.openstreetmap.josm.gui.MainApplication {
632 public static void main(java.lang.String[]);
633 }
[4166]634
[7367]635 -keep class * extends org.openstreetmap.josm.io.FileImporter
636 -keep class * extends org.openstreetmap.josm.io.FileExporter
637 -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
[10949]638 -keep class org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory$PseudoClasses {
[8532]639 static boolean *(org.openstreetmap.josm.gui.mappaint.Environment);
640 }
[8172]641 -keep class org.apache.commons.logging.impl.*
[4166]642
[7367]643 -keepclassmembers enum * {
644 public static **[] values();
645 public static ** valueOf(java.lang.String);
646 }
[4166]647
[12873]648 # Keep unused public classes and methods (needed for plugins)
649 -keep public class * {
[7367]650 public protected *;
651 }
[4838]652
[12873]653 # Keep serialization code
[10949]654 -keepclassmembers class * implements java.io.Serializable {
[12873]655 static final long serialVersionUID;
656 private static final java.io.ObjectStreamField[] serialPersistentFields;
[10949]657 private void writeObject(java.io.ObjectOutputStream);
658 private void readObject(java.io.ObjectInputStream);
[12873]659 java.lang.Object writeReplace();
660 java.lang.Object readResolve();
[10949]661 }
662
[7367]663 # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'.
664 # This note should not be a problem as we don't use obfuscation
665 -dontnote
[6133]666 </proguard>
[4166]667 </target>
[14244]668 <target name="dist-optimized-report" depends="dist-optimized">
[10845]669 <!-- generate difference report between optimized jar and normal one -->
670 <exec executable="perl" dir="${basedir}">
[13209]671 <arg value="${tools.dir}/japicc/japi-compliance-checker.pl"/>
[10845]672 <arg value="--lib=JOSM"/>
673 <arg value="--keep-internal"/>
674 <arg value="--v1=${version.entry.commit.revision}"/>
675 <arg value="--v2=${version.entry.commit.revision}-optimized"/>
676 <arg value="--report-path=${dist.dir}/compat_report.html"/>
[12628]677 <arg value="${dist.jar}"/>
678 <arg value="${dist-optimized.jar}"/>
[10845]679 </exec>
680 </target>
[14258]681 <target name="check-plugins" depends="dist-optimized" description="Check of plugins binary compatibility" unless="isJava11">
[4166]682 <local name="dir"/>
683 <local name="plugins"/>
684 <property name="dir" value="plugin-check"/>
685 <typedef uri="antlib:org.codehaus.mojo.animal_sniffer">
[13209]686 <classpath path="${tools.dir}/animal-sniffer-ant-tasks.jar"/>
[4166]687 </typedef>
[13574]688 <delete dir="${dir}" failonerror="false"/>
[4166]689 <mkdir dir="${dir}"/>
690 <!-- List of deprecated plugins -->
[7133]691 <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java">
[4166]692 <filterchain>
693 <linecontains>
694 <contains value="new DeprecatedPlugin("/>
695 </linecontains>
696 <tokenfilter>
697 <replaceregex pattern=".*new DeprecatedPlugin\(&quot;(.+?)&quot;.*" replace="\1|" flags="gi"/>
698 </tokenfilter>
699 <striplinebreaks/>
700 <tokenfilter>
701 <replaceregex pattern="\|$" replace="" flags="gi"/>
702 </tokenfilter>
703 </filterchain>
704 </loadfile>
[5498]705 <!-- Download list of plugins -->
[4166]706 <loadresource property="plugins">
[6955]707 <url url="https://josm.openstreetmap.de/plugin"/>
[4166]708 <filterchain>
709 <linecontainsregexp negate="true">
710 <regexp pattern="^\t.*"/>
711 </linecontainsregexp>
712 <linecontainsregexp negate="true">
713 <regexp pattern="${deprecated-plugins}"/>
714 </linecontainsregexp>
[14244]715 <linecontainsregexp negate="true" unless:set="isJava10">
[14383]716 <!-- Skip javafx on Java 8/9, built for Java 10+ only -->
717 <regexp pattern="javafx.*"/>
[14244]718 </linecontainsregexp>
[15234]719 <linecontainsregexp negate="true" unless:set="isJava11">
720 <!-- Skip http2 on Java 8/9/10, built for Java 11+ only -->
721 <regexp pattern="http2.*"/>
722 </linecontainsregexp>
[4166]723 <tokenfilter>
724 <replaceregex pattern="^.*;" replace="" flags="gi"/>
725 </tokenfilter>
726 </filterchain>
[6133]727 </loadresource>
728 <!-- Delete files that are not in plugin list (like old plugins) -->
729 <loadresource property="file-list">
730 <propertyresource name="plugins"/>
731 <filterchain>
732 <tokenfilter>
733 <replaceregex pattern="^.*/(.*)$" replace="\1\|" flags=""/>
734 </tokenfilter>
735 <striplinebreaks/>
736 <tokenfilter>
737 <replaceregex pattern="\|$" replace="" flags="gi"/>
[9765]738 </tokenfilter>
[6133]739 </filterchain>
740 </loadresource>
741 <delete>
742 <restrict>
743 <fileset dir="${dir}"/>
744 <not>
745 <name regex="${file-list}"/>
746 </not>
747 </restrict>
748 </delete>
749 <!-- Download plugins -->
[12874]750 <copy todir="${dir}" flatten="true" verbose="true" failonerror="false">
[4166]751 <resourcelist>
752 <string value="${plugins}"/>
753 </resourcelist>
754 </copy>
755 <!-- Check plugins -->
[5498]756 <as:build-signatures destfile="${dir}/api.sig">
757 <path>
[12628]758 <fileset file="${dist-optimized.jar}"/>
[14244]759 <fileset file="${java.home}/lib/rt.jar" unless:set="isJava9"/>
760 <fileset file="${java.home}/lib/jce.jar" unless:set="isJava9"/>
761 <fileset file="${java.home}/lib/ext/jfxrt.jar" unless:set="isJava9"/>
762 <fileset dir="${java.home}/jmods" if:set="isJava9"/>
[14997]763 <fileset dir="/usr/share/openjfx/lib" unless:set="isJava9"/>
[5498]764 </path>
[6133]765 </as:build-signatures>
[12873]766 <as:check-signature signature="${dir}/api.sig" failonerror="false">
[13711]767 <ignore classname="afu.*"/>
[13921]768 <ignore classname="android.*"/>
[12873]769 <ignore classname="au.*"/>
[7367]770 <ignore classname="com.*"/>
[12873]771 <ignore classname="de.*"/>
772 <ignore classname="edu.*"/>
773 <ignore classname="groovy.*"/>
[13962]774 <ignore classname="io.*"/>
[12873]775 <ignore classname="it.*"/>
[14167]776 <ignore classname="java.lang.invoke.MethodHandle"/>
[15639]777 <ignore classname="java.nio.ByteBuffer"/>
778 <ignore classname="java.nio.FloatBuffer"/>
[15387]779 <ignore classname="java.util.list.kotlin.*"/>
[7367]780 <ignore classname="javax.*"/>
[14245]781 <ignore classname="jdk.swing.interop.*"/>
[7367]782 <ignore classname="jogamp.*"/>
783 <ignore classname="junit.*"/>
[12873]784 <ignore classname="kdu_jni.*"/>
[15387]785 <ignore classname="kotlin.*"/>
[12873]786 <ignore classname="net.*"/>
787 <ignore classname="netscape.*"/>
788 <ignore classname="nu.*"/>
789 <ignore classname="oracle.*"/>
[7367]790 <ignore classname="org.apache.*"/>
[12873]791 <ignore classname="org.bouncycastle.*"/>
[13711]792 <ignore classname="org.checkerframework.*"/>
[7367]793 <ignore classname="org.codehaus.*"/>
[13921]794 <ignore classname="org.conscrypt.*"/>
[7367]795 <ignore classname="org.dom4j.*"/>
[12873]796 <ignore classname="org.eclipse.*"/>
797 <ignore classname="org.ejml.*"/>
[14164]798 <ignore classname="org.fusesource.*"/>
[12873]799 <ignore classname="org.gdal.*"/>
[15377]800 <ignore classname="org.geotools.data.h2.*"/>
801 <ignore classname="org.geotools.gce.imagemosaic.*"/>
[12873]802 <ignore classname="org.hibernate.*"/>
[7367]803 <ignore classname="org.hsqldb.*"/>
804 <ignore classname="org.ibex.*"/>
[7934]805 <ignore classname="org.iso_relax.*"/>
[7367]806 <ignore classname="org.jaitools.*"/>
807 <ignore classname="org.jaxen.*"/>
[12873]808 <ignore classname="org.jboss.*"/>
[14164]809 <ignore classname="org.jctools.*"/>
[13575]810 <ignore classname="org.jdom.*"/>
[7367]811 <ignore classname="org.jdom2.*"/>
[12873]812 <ignore classname="org.jfree.*"/>
[4166]813 <ignore classname="org.jgraph.*"/>
[12873]814 <ignore classname="org.joda.*"/>
[14164]815 <ignore classname="org.json.*"/>
[12873]816 <ignore classname="org.junit.*"/>
817 <ignore classname="org.jvnet.*"/>
[7367]818 <ignore classname="org.kxml2.*"/>
[15639]819 <ignore classname="org.locationtech.*"/>
[15462]820 <ignore classname="org.mozilla.*"/>
[8090]821 <ignore classname="org.objectweb.*"/>
[15387]822 <ignore classname="org.opentest4j.*"/>
[12873]823 <ignore classname="org.osgi.*"/>
824 <ignore classname="org.postgresql.*"/>
[7367]825 <ignore classname="org.python.*"/>
[12875]826 <ignore classname="org.seasar.*"/>
[7367]827 <ignore classname="org.slf4j.*"/>
[12873]828 <ignore classname="org.springframework.*"/>
829 <ignore classname="org.testng.*"/>
[13113]830 <ignore classname="org.w3c.*"/>
[12873]831 <ignore classname="org.zeromq.*"/>
[15540]832 <ignore classname="waffle.*"/>
[8173]833 <!-- plugins used by another ones -->
[7494]834 <ignore classname="org.openstreetmap.josm.plugins.geotools.*"/>
[14244]835 <ignore classname="org.openstreetmap.josm.plugins.jaxb.*"/>
[7934]836 <ignore classname="org.openstreetmap.josm.plugins.jna.*"/>
[7494]837 <ignore classname="org.openstreetmap.josm.plugins.jts.*"/>
838 <ignore classname="org.openstreetmap.josm.plugins.log4j.*"/>
[14244]839 <ignore classname="org.openstreetmap.josm.plugins.openjfx.*"/>
[7494]840 <ignore classname="org.openstreetmap.josm.plugins.utilsplugin2.*"/>
[12875]841 <ignore classname="sun.*"/>
[4166]842 <path path="${dir}"/>
843 </as:check-signature>
844 </target>
[4838]845
[16036]846 <target name="script-compile" depends="test-compile" description="Compiles all scripts">
[15033]847 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true" includes="*.java"
848 destdir="${script-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
849 includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
850 <classpath>
851 <pathelement path="${build.dir}"/>
852 <pathelement path="${test.dir}/build/unit"/>
853 <pathelement path="${guava.jar}"/>
854 <pathelement path="${commons-lang3.jar}"/>
855 </classpath>
[14636]856 </javac>
857 </target>
858
[8687]859 <macrodef name="_taginfo">
860 <attribute name="type"/>
861 <attribute name="output"/>
862 <sequential>
863 <echo message="Generating Taginfo for type @{type} to @{output}"/>
[14636]864 <java classname="TagInfoExtract" failonerror="true" fork="false">
865 <sysproperty key="java.awt.headless" value="true"/>
866 <classpath>
[16126]867 <pathelement path="${build.dir}"/>
[15033]868 <pathelement path="${script-build.dir}"/>
869 <pathelement path="${guava.jar}"/>
870 <pathelement path="${commons-lang3.jar}"/>
[14636]871 </classpath>
872 <arg value="--type"/>
[8687]873 <arg value="@{type}"/>
874 <arg value="--noexit"/>
875 <arg value="--imgurlprefix"/>
[14636]876 <arg value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
877 <arg value="--output"/>
[8687]878 <arg value="@{output}"/>
[14636]879 </java>
[8687]880 </sequential>
881 </macrodef>
882
[15033]883 <target name="taginfo" depends="script-compile">
[9250]884 <_taginfo type="mappaint" output="taginfo_style.json"/>
885 <_taginfo type="presets" output="taginfo_presets.json"/>
886 <_taginfo type="external_presets" output="taginfo_external_presets.json"/>
[8687]887 </target>
888
[15033]889 <target name="imageryindex" depends="init-properties,script-compile">
[9505]890 <echo message="Checking editor imagery difference"/>
[15033]891 <java classname="SyncEditorLayerIndex" failonerror="true" fork="false">
892 <classpath>
[16126]893 <pathelement path="${build.dir}"/>
[15033]894 <pathelement path="${script-build.dir}"/>
895 <pathelement path="${guava.jar}"/>
896 <pathelement path="${commons-lang3.jar}"/>
897 </classpath>
898 <arg value="--noeli"/>
899 <arg value="-p"/>
900 <arg value="imagery_eliout.imagery.xml"/>
901 <arg value="-q"/>
902 <arg value="imagery_josmout.imagery.xml"/>
903 </java>
[9505]904 </target>
905
906 <target name="imageryindexdownload">
907 <exec append="false" executable="wget" failifexecutionfails="true">
908 <arg value="https://josm.openstreetmap.de/maps"/>
909 <arg value="-O"/>
[11965]910 <arg value="imagery_josm.imagery.xml"/>
[9505]911 <arg value="--unlink"/>
912 </exec>
913 <exec append="false" executable="wget" failifexecutionfails="true">
[11238]914 <arg value="https://josm.openstreetmap.de/wiki/ImageryCompareIgnores?format=txt"/>
915 <arg value="-O"/>
[11965]916 <arg value="imagery_josm.ignores.txt"/>
[11238]917 <arg value="--unlink"/>
918 </exec>
919 <exec append="false" executable="wget" failifexecutionfails="true">
[11857]920 <arg value="https://raw.githubusercontent.com/osmlab/editor-layer-index/gh-pages/imagery.geojson"/>
[9505]921 <arg value="-O"/>
[11965]922 <arg value="imagery_eli.geojson"/>
[9505]923 <arg value="--unlink"/>
924 </exec>
925 <antcall target="imageryindex"/>
926 </target>
927
[12582]928 <target name="checkstyle-compile" depends="init-properties">
929 <mkdir dir="${checkstyle-build.dir}"/>
[13209]930 <javac sourcepath="" srcdir="${checkstyle.dir}/src" failonerror="true"
[12628]931 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
[12582]932 includeantruntime="false" createMissingPackageInfoClass="false"
[13209]933 encoding="UTF-8" classpath="${checkstyle.dir}/checkstyle-all.jar">
[12582]934 </javac>
935 </target>
[13303]936 <target name="checkstyle-changed" depends="checkstyle-compile">
937 <exec append="false" osfamily="unix" executable="bash" failifexecutionfails="true">
938 <arg value="-c"/>
[15816]939 <arg value="(git ls-files src test --modified 2>/dev/null || svn status -q --ignore-externals src test) | grep -o '\(src\|test\)/.*' | xargs java -cp '${checkstyle.dir}/checkstyle-all.jar:${checkstyle-build.dir}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml | sed -e 's:\([^ ]*\) [^:]*/\([^:/]*.java\:[^:]*\):(\2)\1:'"/>
[13303]940 </exec>
941 <exec append="false" osfamily="windows" executable="powershell" failifexecutionfails="true">
942 <arg value="/c"/>
943 <arg value="svn status -q --ignore-externals src test | ForEach-Object {java -cp '${checkstyle.dir}/checkstyle-all.jar;${checkstyle-build.dir}' com.puppycrawl.tools.checkstyle.Main -c ${checkstyle.dir}/josm_checks.xml $_.split(' ')[7]}"/>
944 </exec>
945 </target>
[12582]946 <target name="checkstyle" depends="checkstyle-compile">
[9765]947 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
[13209]948 classpath="${checkstyle.dir}/checkstyle-all.jar:${checkstyle-build.dir}"/>
949 <checkstyle config="${checkstyle.dir}/josm_checks.xml">
[9765]950 <fileset dir="${base.dir}/src/org/openstreetmap/josm" includes="**/*.java"
[9250]951 excludes="gui/mappaint/mapcss/parsergen/*.java"/>
[9765]952 <fileset dir="${base.dir}/test" includes="**/*.java"/>
[14637]953 <fileset dir="${base.dir}/scripts" includes="**/*.java"/>
[11681]954 <formatter type="plain"/>
[8508]955 <formatter type="xml" toFile="checkstyle-josm.xml"/>
956 </checkstyle>
957 </target>
958
[16020]959 <target name="spotbugs" depends="dist">
[13209]960 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${spotbugs.dir}/spotbugs-ant.jar"/>
[12801]961 <path id="spotbugs-classpath">
[13209]962 <fileset dir="${spotbugs.dir}">
[4838]963 <include name="*.jar"/>
964 </fileset>
965 </path>
[12801]966 <property name="spotbugs-classpath" refid="spotbugs-classpath"/>
967 <spotbugs output="xml"
968 outputFile="spotbugs-josm.xml"
969 classpath="${spotbugs-classpath}"
[6133]970 pluginList=""
[13209]971 excludeFilter="${spotbugs.dir}/josm-filter.xml"
[16020]972 onlyAnalyze="org.openstreetmap.josm.-"
[6133]973 effort="max"
[10223]974 reportLevel="low"
[6133]975 >
[16020]976 <class location="${dist.jar}" />
[12801]977 </spotbugs>
[4838]978 </target>
[11713]979
980 <target name="pmd" depends="init-properties">
981 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/>
[13209]982 <pmd shortFilenames="true" cacheLocation="${pmd.dir}/cache" encoding="UTF-8">
[12628]983 <sourceLanguage name="java" version="${java.lang.version}" />
[13209]984 <ruleset>${pmd.dir}/josm-ruleset.xml</ruleset>
[11713]985 <formatter type="text" toConsole="true" />
986 <formatter type="xml" toFile="pmd-josm.xml">
987 <param name="encoding" value="UTF-8" />
988 </formatter>
989 <fileset dir="${src.dir}">
990 <include name="org/openstreetmap/josm/**/*.java"/>
991 <exclude name="org/openstreetmap/josm/gui/mappaint/mapcss/parsergen/*.java" />
992 </fileset>
[14638]993 <fileset dir="${base.dir}/scripts" includes="**/*.java"/>
[11713]994 </pmd>
995 </target>
996
[5323]997 <target name="run" depends="dist">
[12628]998 <java jar="${dist.jar}" fork="true">
[5323]999 <arg value="--set=expert=true"/>
[15797]1000 <arg value="--set=iso.dates=true"/>
[5323]1001 <jvmarg value="-Djosm.home=/tmp/.josm/"/>
1002 </java>
1003 </target>
[9765]1004 <!--
1005 ** Compile build script for generating projection list.
1006 -->
[10850]1007 <target name="epsg-compile" depends="init-properties">
[9765]1008 <property name="proj-classpath" location="${build.dir}"/>
1009 <mkdir dir="${proj-build.dir}"/>
[13794]1010 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true" includes="BuildProjectionDefinitions.java"
[12628]1011 destdir="${proj-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on"
[9765]1012 includeantruntime="false" createMissingPackageInfoClass="false"
1013 encoding="UTF-8" classpath="${proj-classpath}">
[9133]1014 </javac>
1015 </target>
[9765]1016 <!--
1017 ** generate projection list.
1018 -->
[9133]1019 <target name="epsg" depends="epsg-compile">
[13236]1020 <touch file="${epsg.output}" mkdirs="true"/>
[10259]1021 <java classname="BuildProjectionDefinitions" failonerror="true" fork="true">
[9735]1022 <sysproperty key="java.awt.headless" value="true"/>
[9133]1023 <classpath>
[16140]1024 <pathelement path="${resources.dir}"/>
[9765]1025 <pathelement path="${proj-classpath}"/>
1026 <pathelement path="${proj-build.dir}"/>
[9133]1027 </classpath>
[9765]1028 <arg value="${base.dir}"/>
[9133]1029 </java>
1030 </target>
[14136]1031 <!--
[14568]1032 ** update projection test files after an update of projection definitions
1033 -->
1034 <target name="update-proj-files" depends="test-compile">
1035 <java classname="org.openstreetmap.josm.data.projection.ProjectionRefTest" failonerror="true" fork="true">
1036 <classpath>
1037 <path refid="test.classpath"/>
1038 <pathelement path="${test.dir}/build/unit"/>
1039 </classpath>
1040 </java>
1041 <java classname="org.openstreetmap.josm.data.projection.ProjectionRegressionTest" failonerror="true" fork="true">
1042 <classpath>
1043 <path refid="test.classpath"/>
1044 <pathelement path="${test.dir}/build/unit"/>
1045 </classpath>
1046 </java>
1047 </target>
1048 <!--
[14136]1049 ** generate jdeps dependency graph
1050 -->
1051 <target name="jdeps" depends="compile">
1052 <delete dir="${modules.dir}"/>
1053 <mkdir dir="${modules.dir}"/>
1054 <!-- JOSM only -->
1055 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-actions.jar" includes="org/openstreetmap/josm/actions/**/*.class"/>
1056 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-cli.jar" includes="org/openstreetmap/josm/cli/**/*.class"/>
1057 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-command.jar" includes="org/openstreetmap/josm/command/**/*.class"/>
1058 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-data.jar" includes="org/openstreetmap/josm/data/**/*.class"/>
1059 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-gui.jar" includes="org/openstreetmap/josm/gui/**/*.class"/>
1060 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-io.jar" includes="org/openstreetmap/josm/io/**/*.class"/>
1061 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-plugins.jar" includes="org/openstreetmap/josm/plugins/**/*.class"/>
1062 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-spi.jar" includes="org/openstreetmap/josm/spi/**/*.class"/>
1063 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/josm-tools.jar" includes="org/openstreetmap/josm/tools/**/*.class"/>
1064 <exec executable="jdeps" dir="${modules.dir}">
[16050]1065 <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.*|oauth.*|org.apache.*|org.glassfish.*|org.openstreetmap.gui.*'"/>
[14136]1066 <arg line="-dotoutput dots *.jar"/>
1067 </exec>
1068 <exec executable="dot" dir="${modules.dir}/dots">
1069 <arg line="-O -Tpng summary.dot"/>
1070 </exec>
1071 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-without-dependencies.png"/>
1072 <!-- Direct dependencies -->
[16050]1073 <copy todir="${modules.dir}" flatten="true">
1074 <fileset refid="runtime.fileset" />
1075 </copy>
[14136]1076 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/svgSalamander.jar" includes="com/kitfox/**/*.class"/>
1077 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/oauth-signpost.jar" includes="oauth/**/*.class"/>
1078 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/commons-jcs.jar" includes="org/apache/commons/jcs/**/*.class"/>
1079 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/jmapviewer.jar" includes="org/openstreetmap/gui/**/*.class"/>
1080 <exec executable="jdeps" dir="${modules.dir}">
1081 <arg line="-f 'java.*|org.xml.*|org.w3c.*|sun.*|com.sun.*|com.google.*|org.tukaani.*|org.apache.commons.logging.*'"/>
1082 <arg line="-dotoutput dots *.jar"/>
1083 </exec>
1084 <exec executable="dot" dir="${modules.dir}/dots">
1085 <arg line="-O -Tpng summary.dot"/>
1086 </exec>
1087 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-direct-dependencies.png"/>
1088 <!-- All dependencies -->
1089 <jar basedir="${build.dir}" level="${clevel}" destfile="${modules.dir}/google-gdata.jar" includes="com/google/**/*.class"/>
1090 <exec executable="jdeps" dir="${modules.dir}">
1091 <arg line="-dotoutput dots *.jar"/>
1092 </exec>
1093 <exec executable="dot" dir="${modules.dir}/dots">
1094 <arg line="-O -Tpng summary.dot"/>
1095 </exec>
1096 <move file="${modules.dir}/dots/summary.dot.png" tofile="${modules.dir}/josm-with-all-dependencies.png"/>
1097 </target>
[16050]1098 <target name="resolve" depends="init-ivy" unless="resolve.notRequired" description="Resolve Ivy dependencies">
[16125]1099 <ivy:settings file="${base.dir}/ivysettings.xml"/>
1100 <ivy:resolve file="${base.dir}/ivy.xml" keep="true"/>
[15977]1101 <ivy:report todir="${tools.dir}/ivy-report" graph="false"/>
1102 <ivy:cachepath pathid="compile.path" conf="compile"/>
1103 <ivy:cachepath pathid="runtime.path" conf="runtime"/>
1104 <ivy:cachefileset setid="runtime.fileset" conf="runtime"/>
1105 <ivy:cachepath pathid="test.path" conf="test"/>
1106 <ivy:retrieve pattern="${tools.dir}/ivy/[artifact]-[type].[ext]" conf="ivy"/>
1107 </target>
[16002]1108 <target name="extract-libraries" depends="resolve" description="extract libraries to build dir">
1109 <unzip dest="${build.dir}">
1110 <fileset refid="runtime.fileset"/>
1111 <patternset>
1112 <exclude name="META-INF/**"/>
1113 <exclude name="*"/>
[16027]1114 <exclude name="com/drew/imaging/FileTypeDetector*"/>
1115 <exclude name="com/drew/imaging/ImageMetadataReader*"/>
[16025]1116 <exclude name="com/drew/imaging/avi/**"/>
1117 <exclude name="com/drew/imaging/bmp/**"/>
1118 <exclude name="com/drew/imaging/eps/**"/>
1119 <exclude name="com/drew/imaging/gif/**"/>
1120 <exclude name="com/drew/imaging/heif/**"/>
1121 <exclude name="com/drew/imaging/ico/**"/>
1122 <exclude name="com/drew/imaging/mp3/**"/>
1123 <exclude name="com/drew/imaging/mp4/**"/>
1124 <exclude name="com/drew/imaging/pcx/**"/>
1125 <exclude name="com/drew/imaging/png/**"/>
1126 <exclude name="com/drew/imaging/psd/**"/>
1127 <exclude name="com/drew/imaging/quicktime/**"/>
1128 <exclude name="com/drew/imaging/raf/**"/>
1129 <exclude name="com/drew/imaging/riff/**"/>
1130 <exclude name="com/drew/imaging/wav/**"/>
1131 <exclude name="com/drew/imaging/webp/**"/>
1132 <exclude name="com/drew/metadata/avi/**"/>
1133 <exclude name="com/drew/metadata/bmp/**"/>
1134 <exclude name="com/drew/metadata/eps/**"/>
1135 <exclude name="com/drew/metadata/gif/**"/>
1136 <exclude name="com/drew/metadata/heif/**"/>
1137 <exclude name="com/drew/metadata/ico/**"/>
1138 <exclude name="com/drew/metadata/mov/**"/>
1139 <exclude name="com/drew/metadata/mp3/**"/>
1140 <exclude name="com/drew/metadata/mp4/**"/>
1141 <exclude name="com/drew/metadata/pcx/**"/>
1142 <exclude name="com/drew/metadata/png/**"/>
1143 <exclude name="com/drew/metadata/wav/**"/>
1144 <exclude name="com/drew/metadata/webp/**"/>
1145 <exclude name="com/drew/tools/**"/>
[16026]1146 <exclude name="org/apache/commons/compress/PasswordRequiredException*"/>
[16023]1147 <exclude name="org/apache/commons/compress/archivers/**"/>
1148 <exclude name="org/apache/commons/compress/changes/**"/>
[16026]1149 <exclude name="org/apache/commons/compress/compressors/bzip2/BZip2Utils*"/>
[16023]1150 <exclude name="org/apache/commons/compress/compressors/brotli/**"/>
[16026]1151 <exclude name="org/apache/commons/compress/compressors/CompressorStreamFactory*"/>
1152 <exclude name="org/apache/commons/compress/compressors/CompressorStreamProvider*"/>
1153 <exclude name="org/apache/commons/compress/compressors/CompressorException*"/>
1154 <exclude name="org/apache/commons/compress/compressors/FileNameUtil*"/>
[16023]1155 <exclude name="org/apache/commons/compress/compressors/deflate/**"/>
1156 <exclude name="org/apache/commons/compress/compressors/gzip/**"/>
1157 <exclude name="org/apache/commons/compress/compressors/lz4/**"/>
1158 <exclude name="org/apache/commons/compress/compressors/lzma/**"/>
1159 <exclude name="org/apache/commons/compress/compressors/lz77support/**"/>
1160 <exclude name="org/apache/commons/compress/compressors/pack200/**"/>
1161 <exclude name="org/apache/commons/compress/compressors/snappy/**"/>
[16026]1162 <exclude name="org/apache/commons/compress/compressors/xz/XZUtils*"/>
[16023]1163 <exclude name="org/apache/commons/compress/compressors/z/**"/>
1164 <exclude name="org/apache/commons/compress/compressors/zstandard/**"/>
1165 <exclude name="org/apache/commons/compress/parallel/**"/>
[16026]1166 <exclude name="org/apache/commons/compress/utils/ArchiveUtils*"/>
1167 <exclude name="org/apache/commons/logging/impl/AvalonLogger*"/>
1168 <exclude name="org/apache/commons/logging/impl/Jdk13LumberjackLogger*"/>
1169 <exclude name="org/apache/commons/logging/impl/Log4JLogger*"/>
1170 <exclude name="org/apache/commons/logging/impl/LogKitLogger*"/>
1171 <exclude name="org/apache/commons/logging/impl/ServletContextCleaner*"/>
[16002]1172 </patternset>
1173 </unzip>
1174 </target>
[16150]1175 <target name="sources" description="Generates jar file of JOSM source files and its dependencies" depends="init,epsg,resolve">
[16141]1176 <ivy:cachefileset setid="sources.fileset" conf="sources"/>
1177 <jar destfile="${dist-sources.jar}" level="${clevel}">
1178 <zipgroupfileset refid="sources.fileset"/>
1179 <fileset dir="${src.dir}"/>
1180 <fileset dir="${resources.dir}"/>
1181 <fileset file="CONTRIBUTION"/>
1182 <fileset file="README"/>
1183 <fileset file="LICENSE"/>
1184 </jar>
1185 </target>
[15977]1186 <target name="bootstrap-workspace" description="Copy libraries from ivy cache to workspace folders for IDE" depends="resolve">
1187 <delete dir="${lib.dir}"/>
1188 <ivy:retrieve pattern="${lib.dir}/compile/[artifact]-[type].[ext]" conf="compile"/>
1189 <ivy:retrieve pattern="${lib.dir}/runtime/[artifact]-[type].[ext]" conf="runtime"/>
[16141]1190 <ivy:retrieve pattern="${lib.dir}/sources/[artifact]-[type].[ext]" conf="sources"/>
[15977]1191 </target>
[4166]1192</project>
Note: See TracBrowser for help on using the repository browser.