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