[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 | -->
|
---|
[6133] | 11 | <project xmlns:as="antlib:org.codehaus.mojo.animal_sniffer" name="josm" default="dist" basedir="." xmlns:jacoco="antlib:org.jacoco.ant">
|
---|
[4252] | 12 | <property name="test.dir" location="test"/>
|
---|
| 13 | <property name="src.dir" location="src"/>
|
---|
| 14 | <property name="build.dir" location="build"/>
|
---|
| 15 | <property name="javacc.home" location="tools"/>
|
---|
| 16 | <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/>
|
---|
[9133] | 17 | <property name="epsg.output" location="data/projection/custom-epsg"/>
|
---|
[9330] | 18 | <property name="groovy.jar" location="tools/groovy-all-2.4.6-SNAPSHOT.jar"/>
|
---|
[4166] | 19 | <!-- build parameter: compression level (ant -Dclevel=N)
|
---|
| 20 | N ranges from 0 (no compression) to 9 (maximum compression)
|
---|
| 21 | default: 9 -->
|
---|
| 22 | <condition property="clevel" value="${clevel}" else="9">
|
---|
| 23 | <isset property="clevel"/>
|
---|
| 24 | </condition>
|
---|
[8778] | 25 | <!-- For Java9-specific stuff -->
|
---|
| 26 | <condition property="isJava9">
|
---|
| 27 | <equals arg1="${ant.java.version}" arg2="1.9" />
|
---|
| 28 | </condition>
|
---|
[4252] | 29 |
|
---|
[4166] | 30 | <!--
|
---|
[6133] | 31 | ** Used by Eclipse ant builder for updating
|
---|
| 32 | ** the REVISION file used by JOSM
|
---|
| 33 | -->
|
---|
[4166] | 34 | <target name="create-revision-eclipse">
|
---|
| 35 | <property name="revision.dir" value="bin"/>
|
---|
| 36 | <antcall target="create-revision"/>
|
---|
| 37 | </target>
|
---|
| 38 | <!--
|
---|
[6540] | 39 | ** Initializes the REVISION.XML file from SVN information
|
---|
[6133] | 40 | -->
|
---|
[6545] | 41 | <target name="init-svn-revision-xml">
|
---|
[6585] | 42 | <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false" resultproperty="svn.info.result">
|
---|
[4166] | 43 | <env key="LANG" value="C"/>
|
---|
| 44 | <arg value="info"/>
|
---|
| 45 | <arg value="--xml"/>
|
---|
| 46 | <arg value="."/>
|
---|
| 47 | </exec>
|
---|
[6585] | 48 | <condition property="svn.info.success">
|
---|
| 49 | <equals arg1="${svn.info.result}" arg2="0" />
|
---|
| 50 | </condition>
|
---|
[6540] | 51 | </target>
|
---|
| 52 | <!--
|
---|
| 53 | ** Initializes the REVISION.XML file from git information
|
---|
| 54 | -->
|
---|
[6585] | 55 | <target name="init-git-revision-xml" unless="svn.info.success">
|
---|
[6545] | 56 | <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false">
|
---|
[6540] | 57 | <arg value="log"/>
|
---|
| 58 | <arg value="-1"/>
|
---|
| 59 | <arg value="--grep=git-svn-id"/>
|
---|
[6545] | 60 | <!--
|
---|
| 61 | %B: raw body (unwrapped subject and body)
|
---|
| 62 | %n: new line
|
---|
| 63 | %ai: author date, ISO 8601 format
|
---|
| 64 | -->
|
---|
| 65 | <arg value="--pretty=format:%B%n%ai"/>
|
---|
[6540] | 66 | <arg value="HEAD"/>
|
---|
| 67 | </exec>
|
---|
[6545] | 68 | <replaceregexp file="REVISION.XML" flags="s"
|
---|
| 69 | match=".*git-svn-id: [^@]*@([0-9]+).*(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
|
---|
| 70 | replace="<info><entry><commit revision="\1"><date>\2</date></commit></entry></info>"/>
|
---|
[6540] | 71 | </target>
|
---|
| 72 | <!--
|
---|
| 73 | ** Creates the REVISION file to be included in the distribution
|
---|
| 74 | -->
|
---|
| 75 | <target name="create-revision" depends="init-svn-revision-xml, init-git-revision-xml">
|
---|
| 76 | <property name="revision.dir" value="${build.dir}"/>
|
---|
[4166] | 77 | <xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
|
---|
| 78 | <delete file="REVISION.XML"/>
|
---|
| 79 | <tstamp>
|
---|
| 80 | <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
|
---|
| 81 | </tstamp>
|
---|
| 82 | <property name="version.entry.commit.revision" value="UNKNOWN"/>
|
---|
[6540] | 83 | <property name="version.entry.commit.date" value="UNKNOWN"/>
|
---|
[4166] | 84 | <mkdir dir="${revision.dir}"/>
|
---|
[5362] | 85 | <!-- add Build-Name: ... when making special builds, e.g. DEBIAN -->
|
---|
[4166] | 86 | <echo file="${revision.dir}/REVISION">
|
---|
| 87 | # automatically generated by JOSM build.xml - do not edit
|
---|
| 88 | Revision: ${version.entry.commit.revision}
|
---|
| 89 | Is-Local-Build: true
|
---|
| 90 | Build-Date: ${build.tstamp}
|
---|
| 91 | </echo>
|
---|
| 92 | </target>
|
---|
[6540] | 93 | <!--
|
---|
| 94 | ** Check internal XML files against their XSD
|
---|
| 95 | -->
|
---|
[7209] | 96 | <target name="check-schemas" unless="check-schemas.notRequired">
|
---|
[6208] | 97 | <schemavalidate file="data/defaultpresets.xml" >
|
---|
| 98 | <schema namespace="http://josm.openstreetmap.de/tagging-preset-1.0" file="data/tagging-preset.xsd" />
|
---|
| 99 | </schemavalidate>
|
---|
| 100 | </target>
|
---|
[6540] | 101 | <!--
|
---|
| 102 | ** Main target that builds JOSM and checks XML against schemas
|
---|
| 103 | -->
|
---|
[9133] | 104 | <target name="dist" depends="compile,create-revision,check-schemas,epsg">
|
---|
[4166] | 105 | <echo>Revision ${version.entry.commit.revision}</echo>
|
---|
| 106 | <copy file="CONTRIBUTION" todir="build"/>
|
---|
| 107 | <copy file="README" todir="build"/>
|
---|
| 108 | <copy file="LICENSE" todir="build"/>
|
---|
| 109 | <!-- create josm-custom.jar -->
|
---|
| 110 | <delete file="dist/josm-custom.jar"/>
|
---|
| 111 | <jar destfile="dist/josm-custom.jar" basedir="build" level="${clevel}">
|
---|
| 112 | <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar -->
|
---|
| 113 | <manifest>
|
---|
| 114 | <attribute name="Main-class" value="JOSM"/>
|
---|
| 115 | <attribute name="Main-Version" value="${version.entry.commit.revision} SVN"/>
|
---|
| 116 | <attribute name="Main-Date" value="${version.entry.commit.date}"/>
|
---|
[6341] | 117 | <attribute name="Permissions" value="all-permissions"/>
|
---|
| 118 | <attribute name="Codebase" value="josm.openstreetmap.de"/>
|
---|
| 119 | <attribute name="Application-Name" value="JOSM - Java OpenStreetMap Editor"/>
|
---|
[4166] | 120 | </manifest>
|
---|
| 121 | <zipfileset dir="images" prefix="images"/>
|
---|
| 122 | <zipfileset dir="data" prefix="data"/>
|
---|
| 123 | <zipfileset dir="styles" prefix="styles"/>
|
---|
[7133] | 124 | <zipfileset dir="${src.dir}/org/openstreetmap/gui/jmapviewer/images" prefix="org/openstreetmap/gui/jmapviewer/images"/>
|
---|
[4166] | 125 | </jar>
|
---|
| 126 | </target>
|
---|
[7001] | 127 | <!-- Mac OS X target -->
|
---|
| 128 | <target name="mac">
|
---|
[6217] | 129 | <!-- Using https://bitbucket.org/infinitekind/appbundler to create mac application bundle -->
|
---|
| 130 | <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="tools/appbundler-1.0ea.jar"/>
|
---|
| 131 | <!-- create MacOS X application bundle -->
|
---|
[6945] | 132 | <bundleapp outputdirectory="${bundle.outdir}" name="JOSM" displayname="JOSM" executablename="JOSM" identifier="org.openstreetmap.josm"
|
---|
[6216] | 133 | mainclassname="org.openstreetmap.josm.gui.MainApplication"
|
---|
[6217] | 134 | copyright="JOSM, and all its integral parts, are released under the GNU General Public License v2 or later"
|
---|
[6216] | 135 | applicationCategory="public.app-category.utilities"
|
---|
| 136 | shortversion="${version.entry.commit.revision} SVN"
|
---|
| 137 | version="${version.entry.commit.revision} SVN"
|
---|
| 138 | icon="macosx/JOSM.app/Contents/Resources/JOSM.icns"
|
---|
[6217] | 139 | highResolutionCapable="true">
|
---|
[6216] | 140 |
|
---|
| 141 | <arch name="x86_64"/>
|
---|
| 142 | <arch name="i386"/>
|
---|
| 143 |
|
---|
[6945] | 144 | <classpath file="${bundle.jar}"/>
|
---|
[6216] | 145 |
|
---|
[7287] | 146 | <option value="-Xmx1024m"/>
|
---|
[6216] | 147 |
|
---|
| 148 | <option value="-Xdock:icon=Contents/Resources/JOSM.icns"/>
|
---|
| 149 | <option value="-Xdock:name=JOSM"/>
|
---|
| 150 |
|
---|
| 151 | <!-- OSX specific options, optional -->
|
---|
| 152 | <option value="-Dapple.laf.useScreenMenuBar=true"/>
|
---|
| 153 | <option value="-Dcom.apple.macos.use-file-dialog-packages=true"/>
|
---|
| 154 | <option value="-Dcom.apple.macos.useScreenMenuBar=true"/>
|
---|
| 155 | <option value="-Dcom.apple.mrj.application.apple.menu.about.name=JOSM"/>
|
---|
| 156 | <option value="-Dcom.apple.smallTabs=true"/>
|
---|
| 157 | </bundleapp>
|
---|
[6217] | 158 |
|
---|
| 159 | <!-- appbundler lacks the possibility of defining our own keys or using a template, so update the .plist manually -->
|
---|
| 160 | <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath="tools/xmltask.jar"/>
|
---|
| 161 |
|
---|
[6945] | 162 | <xmltask source="${bundle.outdir}/JOSM.app/Contents/Info.plist" dest="${bundle.outdir}/JOSM.app/Contents/Info.plist" indent="false">
|
---|
[7367] | 163 | <!-- remove empty CFBundleDocumentTypes definition -->
|
---|
| 164 | <remove path="/plist/dict/key[text()='CFBundleDocumentTypes']|/plist/dict/key[text()='CFBundleDocumentTypes']/following-sibling::array[1]"/>
|
---|
[7287] | 165 | <!-- insert our own keys -->
|
---|
| 166 | <insert position="before" path="/plist/dict/key[1]" file="macosx/JOSM.app/Contents/Info.plist_template.xml" />
|
---|
[6217] | 167 | </xmltask>
|
---|
| 168 |
|
---|
[6216] | 169 | <!-- create ZIP file with MacOS X application bundle -->
|
---|
[7001] | 170 | <zip destfile="${bundle.outdir}/josm-custom-macosx.zip" update="true">
|
---|
[6945] | 171 | <zipfileset dir="." includes="CONTRIBUTION README LICENSE"/>
|
---|
| 172 | <zipfileset dir="${bundle.outdir}" includes="JOSM.app/**/*" filemode="755" />
|
---|
[6216] | 173 | </zip>
|
---|
[6217] | 174 | </target>
|
---|
[7001] | 175 | <target name="distmac" depends="dist">
|
---|
| 176 | <antcall target="mac">
|
---|
[6945] | 177 | <param name="bundle.outdir" value="dist"/>
|
---|
| 178 | <param name="bundle.jar" value="dist/josm-custom.jar"/>
|
---|
| 179 | </antcall>
|
---|
| 180 | </target>
|
---|
[7839] | 181 | <!-- Windows target -->
|
---|
| 182 | <target name="distwin" depends="dist">
|
---|
[7842] | 183 | <exec dir="windows" executable="./josm-setup-unix.sh">
|
---|
[7839] | 184 | <arg value="${version.entry.commit.revision}"/>
|
---|
| 185 | <arg value="../dist/josm-custom.jar"/>
|
---|
| 186 | </exec>
|
---|
| 187 | </target>
|
---|
[5392] | 188 | <target name="javacc" depends="init" unless="javacc.notRequired">
|
---|
[4252] | 189 | <mkdir dir="${mapcss.dir}/parsergen"/>
|
---|
[4257] | 190 | <exec append="false" executable="java" failifexecutionfails="true">
|
---|
| 191 | <arg value="-cp"/>
|
---|
| 192 | <arg value="${javacc.home}/javacc.jar"/>
|
---|
| 193 | <arg value="javacc"/>
|
---|
[7043] | 194 | <arg value="-DEBUG_PARSER=false"/>
|
---|
| 195 | <arg value="-DEBUG_TOKEN_MANAGER=false"/>
|
---|
[7001] | 196 | <arg value="-JDK_VERSION=1.7"/>
|
---|
[6446] | 197 | <arg value="-GRAMMAR_ENCODING=UTF-8"/>
|
---|
[4257] | 198 | <arg value="-OUTPUT_DIRECTORY=${mapcss.dir}/parsergen"/>
|
---|
| 199 | <arg value="${mapcss.dir}/MapCSSParser.jj"/>
|
---|
| 200 | </exec>
|
---|
[4252] | 201 | </target>
|
---|
[8526] | 202 | <target name="compile" depends="init,javacc">
|
---|
[7068] | 203 | <!-- COTS -->
|
---|
[8173] | 204 | <javac srcdir="${src.dir}" includes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**" nowarn="on" encoding="iso-8859-1"
|
---|
| 205 | destdir="build" target="1.7" source="1.7" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false">
|
---|
[7019] | 206 | <!-- get rid of "internal proprietary API" warning -->
|
---|
[7068] | 207 | <compilerarg value="-XDignore.symbol.file"/>
|
---|
[8173] | 208 | <exclude name="org/apache/commons/compress/compressors/lzma/**"/>
|
---|
| 209 | <exclude name="org/apache/commons/compress/compressors/xz/**"/>
|
---|
| 210 | <exclude name="org/apache/commons/compress/compressors/CompressorStreamFactory.java"/>
|
---|
| 211 | <exclude name="org/apache/commons/compress/compressors/deflate/**"/>
|
---|
| 212 | <exclude name="org/apache/commons/compress/compressors/gzip/**"/>
|
---|
| 213 | <exclude name="org/apache/commons/compress/compressors/lzw/**"/>
|
---|
| 214 | <exclude name="org/apache/commons/compress/compressors/pack200/**"/>
|
---|
| 215 | <exclude name="org/apache/commons/compress/compressors/snappy/**"/>
|
---|
| 216 | <exclude name="org/apache/commons/compress/compressors/z/**"/>
|
---|
| 217 | <exclude name="org/apache/commons/jcs/admin/**"/>
|
---|
| 218 | <exclude name="org/apache/commons/jcs/auxiliary/disk/jdbc/**"/>
|
---|
| 219 | <exclude name="org/apache/commons/jcs/auxiliary/remote/**"/>
|
---|
| 220 | <exclude name="org/apache/commons/jcs/utils/servlet/**"/>
|
---|
| 221 | <exclude name="org/apache/commons/logging/impl/AvalonLogger.java"/>
|
---|
| 222 | <exclude name="org/apache/commons/logging/impl/Jdk13LumberjackLogger.java"/>
|
---|
| 223 | <exclude name="org/apache/commons/logging/impl/Log4JLogger.java"/>
|
---|
| 224 | <exclude name="org/apache/commons/logging/impl/LogKitLogger.java"/>
|
---|
| 225 | <exclude name="org/apache/commons/logging/impl/ServletContextCleaner.java"/>
|
---|
[7019] | 226 | </javac>
|
---|
[8526] | 227 | <!-- JMapViewer -->
|
---|
| 228 | <javac sourcepath="" srcdir="${src.dir}" excludes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/josm/**,JOSM.java,gnu/**"
|
---|
[7068] | 229 | destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
|
---|
[7021] | 230 | <compilerarg value="-Xlint:cast"/>
|
---|
[4166] | 231 | <compilerarg value="-Xlint:deprecation"/>
|
---|
[7022] | 232 | <compilerarg value="-Xlint:dep-ann"/>
|
---|
| 233 | <compilerarg value="-Xlint:divzero"/>
|
---|
| 234 | <compilerarg value="-Xlint:empty"/>
|
---|
| 235 | <compilerarg value="-Xlint:finally"/>
|
---|
| 236 | <compilerarg value="-Xlint:overrides"/>
|
---|
| 237 | <!--<compilerarg value="-Xlint:rawtypes"/>-->
|
---|
| 238 | <compilerarg value="-Xlint:static"/>
|
---|
| 239 | <compilerarg value="-Xlint:try"/>
|
---|
[4166] | 240 | <compilerarg value="-Xlint:unchecked"/>
|
---|
[7367] | 241 | <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
|
---|
[7351] | 242 | <compilerarg value="-XDignore.symbol.file"/>
|
---|
[4166] | 243 | </javac>
|
---|
[8526] | 244 | <!-- JOSM -->
|
---|
| 245 | <javac sourcepath="" srcdir="${src.dir}" excludes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java"
|
---|
| 246 | destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">
|
---|
| 247 | <compilerarg value="-Xlint:cast"/>
|
---|
| 248 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 249 | <compilerarg value="-Xlint:dep-ann"/>
|
---|
| 250 | <compilerarg value="-Xlint:divzero"/>
|
---|
| 251 | <compilerarg value="-Xlint:empty"/>
|
---|
| 252 | <compilerarg value="-Xlint:finally"/>
|
---|
| 253 | <compilerarg value="-Xlint:overrides"/>
|
---|
| 254 | <!--<compilerarg value="-Xlint:rawtypes"/>-->
|
---|
| 255 | <compilerarg value="-Xlint:static"/>
|
---|
| 256 | <compilerarg value="-Xlint:try"/>
|
---|
| 257 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 258 | <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
|
---|
| 259 | <compilerarg value="-XDignore.symbol.file"/>
|
---|
| 260 | </javac>
|
---|
| 261 |
|
---|
[6756] | 262 | <copy todir="build" failonerror="no" includeemptydirs="no">
|
---|
| 263 | <fileset dir="resources"/>
|
---|
| 264 | </copy>
|
---|
[4166] | 265 | </target>
|
---|
| 266 | <target name="init">
|
---|
[5392] | 267 | <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
|
---|
| 268 | <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
|
---|
| 269 | </uptodate>
|
---|
[4166] | 270 | <mkdir dir="build"/>
|
---|
| 271 | <mkdir dir="dist"/>
|
---|
| 272 | </target>
|
---|
[5263] | 273 | <target name="javadoc">
|
---|
| 274 | <javadoc destdir="javadoc"
|
---|
[7133] | 275 | sourcepath="${src.dir}"
|
---|
[6830] | 276 | encoding="UTF-8"
|
---|
[5263] | 277 | packagenames="org.openstreetmap.josm.*,org.openstreetmap.gui.jmapviewer.*"
|
---|
[9250] | 278 | excludepackagenames="org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.*"
|
---|
[5263] | 279 | windowtitle="JOSM"
|
---|
| 280 | use="true"
|
---|
[5481] | 281 | private="true"
|
---|
[5263] | 282 | linksource="true"
|
---|
| 283 | author="false">
|
---|
[7001] | 284 | <link href="http://docs.oracle.com/javase/7/docs/api"/>
|
---|
[5263] | 285 | <doctitle><![CDATA[<h2>JOSM - Javadoc</h2>]]></doctitle>
|
---|
[6955] | 286 | <bottom><![CDATA[<a href="https://josm.openstreetmap.de/">JOSM</a>]]></bottom>
|
---|
[5263] | 287 | </javadoc>
|
---|
| 288 | </target>
|
---|
[4166] | 289 | <target name="clean">
|
---|
| 290 | <delete dir="build"/>
|
---|
[9133] | 291 | <delete dir="build2"/>
|
---|
[4166] | 292 | <delete dir="dist"/>
|
---|
[4252] | 293 | <delete dir="${mapcss.dir}/parsergen"/>
|
---|
[8535] | 294 | <delete file="${src.dir}/org/w3/_2001/xmlschema/Adapter1.java"/>
|
---|
| 295 | <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/>
|
---|
[9133] | 296 | <delete file="${epsg.output}"/>
|
---|
[4166] | 297 | </target>
|
---|
| 298 | <path id="test.classpath">
|
---|
| 299 | <fileset dir="${test.dir}/lib">
|
---|
| 300 | <include name="**/*.jar"/>
|
---|
| 301 | </fileset>
|
---|
| 302 | <pathelement path="dist/josm-custom.jar"/>
|
---|
[8687] | 303 | <pathelement path="${groovy.jar}"/>
|
---|
[9205] | 304 | <pathelement path="tools/findbugs/annotations.jar"/>
|
---|
[4166] | 305 | </path>
|
---|
[7068] | 306 | <macrodef name="init-test-preferences">
|
---|
| 307 | <attribute name="testfamily"/>
|
---|
| 308 | <sequential>
|
---|
| 309 | <copy file="${test.dir}/config/preferences.template.xml" tofile="${test.dir}/config/@{testfamily}-josm.home/preferences.xml"/>
|
---|
| 310 | <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_USERNAME@" value="${osm.username}"/>
|
---|
| 311 | <replace file="${test.dir}/config/@{testfamily}-josm.home/preferences.xml" encoding="UTF-8" token="@OSM_PASSWORD@" value="${osm.password}"/>
|
---|
| 312 | </sequential>
|
---|
| 313 | </macrodef>
|
---|
[4166] | 314 | <target name="test-init">
|
---|
[6121] | 315 | <mkdir dir="${test.dir}/build"/>
|
---|
[7068] | 316 | <mkdir dir="${test.dir}/build/unit"/>
|
---|
| 317 | <mkdir dir="${test.dir}/build/functional"/>
|
---|
| 318 | <mkdir dir="${test.dir}/build/performance"/>
|
---|
[4166] | 319 | <mkdir dir="${test.dir}/report"/>
|
---|
[7068] | 320 | <init-test-preferences testfamily="unit"/>
|
---|
| 321 | <init-test-preferences testfamily="functional"/>
|
---|
| 322 | <init-test-preferences testfamily="performance"/>
|
---|
[9501] | 323 | <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" />
|
---|
[4166] | 324 | </target>
|
---|
| 325 | <target name="test-clean">
|
---|
[6121] | 326 | <delete dir="${test.dir}/build"/>
|
---|
[4166] | 327 | <delete dir="${test.dir}/report"/>
|
---|
[6133] | 328 | <delete file="${test.dir}/jacoco.exec" />
|
---|
[9501] | 329 | <delete file="${test.dir}/jacocoIT.exec" />
|
---|
[7068] | 330 | <delete file="${test.dir}/config/unit-josm.home/preferences.xml" />
|
---|
| 331 | <delete file="${test.dir}/config/functional-josm.home/preferences.xml" />
|
---|
| 332 | <delete file="${test.dir}/config/performance-josm.home/preferences.xml" />
|
---|
| 333 | <delete dir="${test.dir}/config/unit-josm.home/cache" failonerror="false"/>
|
---|
| 334 | <delete dir="${test.dir}/config/functional-josm.home/cache" failonerror="false"/>
|
---|
| 335 | <delete dir="${test.dir}/config/performance-josm.home/cache" failonerror="false"/>
|
---|
[4166] | 336 | </target>
|
---|
[7068] | 337 | <macrodef name="call-groovyc">
|
---|
| 338 | <attribute name="testfamily"/>
|
---|
| 339 | <element name="cp-elements"/>
|
---|
| 340 | <sequential>
|
---|
| 341 | <groovyc srcdir="${test.dir}/@{testfamily}" destdir="${test.dir}/build/@{testfamily}" encoding="UTF-8">
|
---|
| 342 | <classpath>
|
---|
| 343 | <cp-elements/>
|
---|
| 344 | </classpath>
|
---|
[7367] | 345 | <javac target="1.7" source="1.7" debug="on" encoding="UTF-8">
|
---|
[7068] | 346 | <compilerarg value="-Xlint:all"/>
|
---|
| 347 | <compilerarg value="-Xlint:-serial"/>
|
---|
| 348 | </javac>
|
---|
| 349 | </groovyc>
|
---|
| 350 | </sequential>
|
---|
| 351 | </macrodef>
|
---|
[4166] | 352 | <target name="test-compile" depends="test-init,dist">
|
---|
[8687] | 353 | <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpath="${groovy.jar}"/>
|
---|
[7068] | 354 | <call-groovyc testfamily="unit">
|
---|
| 355 | <cp-elements>
|
---|
| 356 | <path refid="test.classpath"/>
|
---|
| 357 | </cp-elements>
|
---|
| 358 | </call-groovyc>
|
---|
| 359 | <call-groovyc testfamily="functional">
|
---|
| 360 | <cp-elements>
|
---|
| 361 | <path refid="test.classpath"/>
|
---|
| 362 | <pathelement path="${test.dir}/build/unit"/>
|
---|
| 363 | </cp-elements>
|
---|
| 364 | </call-groovyc>
|
---|
| 365 | <call-groovyc testfamily="performance">
|
---|
| 366 | <cp-elements>
|
---|
| 367 | <path refid="test.classpath"/>
|
---|
| 368 | <pathelement path="${test.dir}/build/unit"/>
|
---|
| 369 | </cp-elements>
|
---|
| 370 | </call-groovyc>
|
---|
[4166] | 371 | </target>
|
---|
[7068] | 372 | <macrodef name="call-junit">
|
---|
| 373 | <attribute name="testfamily"/>
|
---|
[9501] | 374 | <attribute name="testITsuffix" default=""/>
|
---|
[7068] | 375 | <sequential>
|
---|
[9501] | 376 | <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/>
|
---|
| 377 | <jacoco:coverage destfile="${test.dir}/jacoco@{testITsuffix}.exec">
|
---|
[7068] | 378 | <junit printsummary="yes" fork="true" forkmode="once">
|
---|
[7367] | 379 | <jvmarg value="-Dfile.encoding=UTF-8"/>
|
---|
[7068] | 380 | <sysproperty key="josm.home" value="${test.dir}/config/@{testfamily}-josm.home"/>
|
---|
| 381 | <sysproperty key="josm.test.data" value="${test.dir}/data"/>
|
---|
| 382 | <sysproperty key="java.awt.headless" value="true"/>
|
---|
| 383 | <sysproperty key="suppressPermanentFailure" value="${suppressPermanentFailure}"/>
|
---|
| 384 | <classpath>
|
---|
| 385 | <path refid="test.classpath"/>
|
---|
| 386 | <pathelement path="${test.dir}/build/unit"/>
|
---|
| 387 | <pathelement path="${test.dir}/build/@{testfamily}"/>
|
---|
| 388 | <pathelement path="${test.dir}/config"/>
|
---|
| 389 | </classpath>
|
---|
| 390 | <formatter type="plain"/>
|
---|
| 391 | <formatter type="xml"/>
|
---|
| 392 | <batchtest fork="yes" todir="${test.dir}/report">
|
---|
[9501] | 393 | <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/>
|
---|
[7068] | 394 | </batchtest>
|
---|
| 395 | </junit>
|
---|
| 396 | </jacoco:coverage>
|
---|
| 397 | </sequential>
|
---|
| 398 | </macrodef>
|
---|
[9501] | 399 | <target name="test" depends="test-compile" unless="test.notRequired"
|
---|
[7133] | 400 | description="Run unit, functional and performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
|
---|
[7068] | 401 | <call-junit testfamily="unit"/>
|
---|
| 402 | <call-junit testfamily="functional"/>
|
---|
| 403 | <call-junit testfamily="performance"/>
|
---|
[4166] | 404 | </target>
|
---|
[9501] | 405 | <target name="test-it" depends="test-compile" unless="test-it.notRequired"
|
---|
| 406 | description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password">
|
---|
| 407 | <call-junit testfamily="unit" testITsuffix="IT"/>
|
---|
| 408 | <call-junit testfamily="functional" testITsuffix="IT"/>
|
---|
| 409 | <call-junit testfamily="performance" testITsuffix="IT"/>
|
---|
| 410 | </target>
|
---|
| 411 | <target name="test-html" depends="test, test-it" description="Generate HTML test reports">
|
---|
[4166] | 412 | <!-- May require additional ant dependencies like ant-trax package -->
|
---|
| 413 | <junitreport todir="${test.dir}/report">
|
---|
| 414 | <fileset dir="${test.dir}/report">
|
---|
| 415 | <include name="TEST-*.xml"/>
|
---|
| 416 | </fileset>
|
---|
| 417 | <report todir="${test.dir}/report/html"/>
|
---|
| 418 | </junitreport>
|
---|
[6133] | 419 | <jacoco:report>
|
---|
| 420 | <executiondata>
|
---|
| 421 | <file file="${test.dir}/jacoco.exec"/>
|
---|
[9501] | 422 | <file file="${test.dir}/jacocoIT.exec"/>
|
---|
[6133] | 423 | </executiondata>
|
---|
| 424 | <structure name="JOSM Test Coverage">
|
---|
| 425 | <classfiles>
|
---|
| 426 | <fileset dir="${build.dir}" includes="org/openstreetmap/"/>
|
---|
| 427 | </classfiles>
|
---|
| 428 | <sourcefiles encoding="UTF-8">
|
---|
| 429 | <fileset dir="${src.dir}" includes="org/openstreetmap/"/>
|
---|
| 430 | </sourcefiles>
|
---|
| 431 | </structure>
|
---|
[6134] | 432 | <html destdir="${test.dir}/report/jacoco"/>
|
---|
[6133] | 433 | </jacoco:report>
|
---|
[4166] | 434 | </target>
|
---|
[8778] | 435 | <!-- Proguard does not support Java 9 : http://sourceforge.net/p/proguard/bugs/551/ -->
|
---|
| 436 | <target name="dist-optimized" depends="dist" unless="isJava9">
|
---|
[4166] | 437 | <taskdef resource="proguard/ant/task.properties" classpath="tools/proguard.jar"/>
|
---|
| 438 | <proguard>
|
---|
[7367] | 439 | -injars dist/josm-custom.jar
|
---|
| 440 | -outjars dist/josm-custom-optimized.jar
|
---|
[4166] | 441 |
|
---|
[7367] | 442 | -libraryjars ${java.home}/lib/rt.jar
|
---|
| 443 | -libraryjars ${java.home}/lib/jce.jar
|
---|
[4166] | 444 |
|
---|
[7367] | 445 | -dontoptimize
|
---|
| 446 | -dontobfuscate
|
---|
[4166] | 447 |
|
---|
[7367] | 448 | # These options probably are not necessary (and make processing a bit slower)
|
---|
| 449 | -dontskipnonpubliclibraryclasses
|
---|
| 450 | -dontskipnonpubliclibraryclassmembers
|
---|
[4166] | 451 |
|
---|
[7367] | 452 | -keepclasseswithmembers public class org.openstreetmap.josm.gui.MainApplication {
|
---|
| 453 | public static void main(java.lang.String[]);
|
---|
| 454 | }
|
---|
[4166] | 455 |
|
---|
[7367] | 456 | -keep class JOSM
|
---|
| 457 | -keep class * extends org.openstreetmap.josm.io.FileImporter
|
---|
| 458 | -keep class * extends org.openstreetmap.josm.io.FileExporter
|
---|
| 459 | -keep class org.openstreetmap.josm.actions.search.SearchCompiler$Never
|
---|
[8532] | 460 | -keep class org.openstreetmap.josm.gui.mappaint.mapcss.Condition$PseudoClasses {
|
---|
| 461 | static boolean *(org.openstreetmap.josm.gui.mappaint.Environment);
|
---|
| 462 | }
|
---|
[8172] | 463 | -keep class org.apache.commons.logging.impl.*
|
---|
[4166] | 464 |
|
---|
[7367] | 465 | -keepclassmembers enum * {
|
---|
| 466 | public static **[] values();
|
---|
| 467 | public static ** valueOf(java.lang.String);
|
---|
| 468 | }
|
---|
[4166] | 469 |
|
---|
[7367] | 470 | # Keep unused public methods (can be useful for plugins)
|
---|
| 471 | -keepclassmembers class * {
|
---|
| 472 | public protected *;
|
---|
| 473 | }
|
---|
[4838] | 474 |
|
---|
[7367] | 475 | # Disable annoying [proguard] Note: the configuration keeps the entry point '...', but not the descriptor class '...'.
|
---|
| 476 | # This note should not be a problem as we don't use obfuscation
|
---|
| 477 | -dontnote
|
---|
[6133] | 478 | </proguard>
|
---|
[4166] | 479 | </target>
|
---|
| 480 | <target name="check-plugins" depends="dist-optimized">
|
---|
| 481 | <echo message="Check of plugins binary compatibility (needs ant 1.8)"/>
|
---|
| 482 | <local name="dir"/>
|
---|
| 483 | <local name="plugins"/>
|
---|
| 484 | <property name="dir" value="plugin-check"/>
|
---|
| 485 | <typedef uri="antlib:org.codehaus.mojo.animal_sniffer">
|
---|
[8156] | 486 | <classpath path="tools/animal-sniffer-ant-tasks-1.14.jar"/>
|
---|
[4166] | 487 | </typedef>
|
---|
| 488 | <mkdir dir="${dir}"/>
|
---|
| 489 | <!-- List of deprecated plugins -->
|
---|
[7133] | 490 | <loadfile property="deprecated-plugins" srcFile="${src.dir}/org/openstreetmap/josm/plugins/PluginHandler.java">
|
---|
[4166] | 491 | <filterchain>
|
---|
| 492 | <linecontains>
|
---|
| 493 | <contains value="new DeprecatedPlugin("/>
|
---|
| 494 | </linecontains>
|
---|
| 495 | <tokenfilter>
|
---|
| 496 | <replaceregex pattern=".*new DeprecatedPlugin\("(.+?)".*" replace="\1|" flags="gi"/>
|
---|
| 497 | </tokenfilter>
|
---|
| 498 | <striplinebreaks/>
|
---|
| 499 | <tokenfilter>
|
---|
| 500 | <replaceregex pattern="\|$" replace="" flags="gi"/>
|
---|
| 501 | </tokenfilter>
|
---|
| 502 | </filterchain>
|
---|
| 503 | </loadfile>
|
---|
[5498] | 504 | <!-- Download list of plugins -->
|
---|
[4166] | 505 | <loadresource property="plugins">
|
---|
[6955] | 506 | <url url="https://josm.openstreetmap.de/plugin"/>
|
---|
[4166] | 507 | <filterchain>
|
---|
| 508 | <linecontainsregexp negate="true">
|
---|
| 509 | <regexp pattern="^\t.*"/>
|
---|
| 510 | </linecontainsregexp>
|
---|
| 511 | <linecontainsregexp negate="true">
|
---|
| 512 | <regexp pattern="${deprecated-plugins}"/>
|
---|
| 513 | </linecontainsregexp>
|
---|
| 514 | <tokenfilter>
|
---|
| 515 | <replaceregex pattern="^.*;" replace="" flags="gi"/>
|
---|
| 516 | </tokenfilter>
|
---|
| 517 | </filterchain>
|
---|
[6133] | 518 | </loadresource>
|
---|
| 519 | <!-- Delete files that are not in plugin list (like old plugins) -->
|
---|
| 520 | <loadresource property="file-list">
|
---|
| 521 | <propertyresource name="plugins"/>
|
---|
| 522 | <filterchain>
|
---|
| 523 | <tokenfilter>
|
---|
| 524 | <replaceregex pattern="^.*/(.*)$" replace="\1\|" flags=""/>
|
---|
| 525 | </tokenfilter>
|
---|
| 526 | <striplinebreaks/>
|
---|
| 527 | <tokenfilter>
|
---|
| 528 | <replaceregex pattern="\|$" replace="" flags="gi"/>
|
---|
| 529 | </tokenfilter>
|
---|
| 530 | </filterchain>
|
---|
| 531 | </loadresource>
|
---|
| 532 | <delete>
|
---|
| 533 | <restrict>
|
---|
| 534 | <fileset dir="${dir}"/>
|
---|
| 535 | <not>
|
---|
| 536 | <name regex="${file-list}"/>
|
---|
| 537 | </not>
|
---|
| 538 | </restrict>
|
---|
| 539 | </delete>
|
---|
| 540 | <!-- Download plugins -->
|
---|
[4166] | 541 | <copy todir="${dir}" flatten="true">
|
---|
| 542 | <resourcelist>
|
---|
| 543 | <string value="${plugins}"/>
|
---|
| 544 | </resourcelist>
|
---|
| 545 | </copy>
|
---|
| 546 | <!-- Check plugins -->
|
---|
[5498] | 547 | <as:build-signatures destfile="${dir}/api.sig">
|
---|
| 548 | <path>
|
---|
| 549 | <fileset file="dist/josm-custom-optimized.jar"/>
|
---|
| 550 | <fileset file="${java.home}/lib/rt.jar"/>
|
---|
| 551 | <fileset file="${java.home}/lib/jce.jar"/>
|
---|
| 552 | </path>
|
---|
[6133] | 553 | </as:build-signatures>
|
---|
[4166] | 554 | <as:check-signature signature="${dir}/api.sig">
|
---|
[7367] | 555 | <ignore classname="au.edu.*"/>
|
---|
| 556 | <ignore classname="au.com.*"/>
|
---|
| 557 | <ignore classname="com.*"/>
|
---|
[7934] | 558 | <ignore classname="de.miethxml.*"/>
|
---|
[8090] | 559 | <ignore classname="javafx.*"/>
|
---|
[7367] | 560 | <ignore classname="javax.*"/>
|
---|
| 561 | <ignore classname="jogamp.*"/>
|
---|
| 562 | <ignore classname="junit.*"/>
|
---|
| 563 | <ignore classname="net.sf.*"/>
|
---|
| 564 | <ignore classname="nu.xom.*"/>
|
---|
| 565 | <ignore classname="org.apache.*"/>
|
---|
| 566 | <ignore classname="org.codehaus.*"/>
|
---|
| 567 | <ignore classname="org.dom4j.*"/>
|
---|
| 568 | <ignore classname="org.hsqldb.*"/>
|
---|
| 569 | <ignore classname="org.ibex.*"/>
|
---|
[7934] | 570 | <ignore classname="org.iso_relax.*"/>
|
---|
[7367] | 571 | <ignore classname="org.jaitools.*"/>
|
---|
| 572 | <ignore classname="org.jaxen.*"/>
|
---|
| 573 | <ignore classname="org.jdom2.*"/>
|
---|
[4166] | 574 | <ignore classname="org.jgraph.*"/>
|
---|
[7367] | 575 | <ignore classname="org.joda.time.*"/>
|
---|
[4166] | 576 | <ignore classname="org.jvnet.staxex.*"/>
|
---|
[7367] | 577 | <ignore classname="org.kxml2.*"/>
|
---|
[8090] | 578 | <ignore classname="org.objectweb.*"/>
|
---|
[7367] | 579 | <ignore classname="org.python.*"/>
|
---|
| 580 | <ignore classname="org.slf4j.*"/>
|
---|
[8173] | 581 | <!-- plugins used by another ones -->
|
---|
[7494] | 582 | <ignore classname="org.openstreetmap.josm.plugins.geotools.*"/>
|
---|
[7934] | 583 | <ignore classname="org.openstreetmap.josm.plugins.jna.*"/>
|
---|
[7494] | 584 | <ignore classname="org.openstreetmap.josm.plugins.jts.*"/>
|
---|
| 585 | <ignore classname="org.openstreetmap.josm.plugins.log4j.*"/>
|
---|
| 586 | <ignore classname="org.openstreetmap.josm.plugins.utilsplugin2.*"/>
|
---|
[4166] | 587 | <path path="${dir}"/>
|
---|
| 588 | </as:check-signature>
|
---|
| 589 | </target>
|
---|
[4838] | 590 |
|
---|
[8687] | 591 | <macrodef name="_taginfo">
|
---|
| 592 | <attribute name="type"/>
|
---|
| 593 | <attribute name="output"/>
|
---|
| 594 | <sequential>
|
---|
| 595 | <echo message="Generating Taginfo for type @{type} to @{output}"/>
|
---|
| 596 | <groovy src="${taginfoextract}" classpath="dist/josm-custom.jar">
|
---|
| 597 | <arg value="-t"/>
|
---|
| 598 | <arg value="@{type}"/>
|
---|
| 599 | <arg value="--noexit"/>
|
---|
| 600 | <arg value="--svnweb"/>
|
---|
| 601 | <arg value="--imgurlprefix"/>
|
---|
| 602 | <arg value="${imgurlprefix}"/>
|
---|
| 603 | <arg value="-o"/>
|
---|
| 604 | <arg value="@{output}"/>
|
---|
| 605 | </groovy>
|
---|
| 606 | </sequential>
|
---|
| 607 | </macrodef>
|
---|
| 608 |
|
---|
| 609 | <target name="taginfo" depends="dist">
|
---|
| 610 | <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
|
---|
| 611 | <property name="taginfoextract" value="scripts/taginfoextract.groovy"/>
|
---|
| 612 | <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/>
|
---|
[9250] | 613 | <_taginfo type="mappaint" output="taginfo_style.json"/>
|
---|
| 614 | <_taginfo type="presets" output="taginfo_presets.json"/>
|
---|
| 615 | <_taginfo type="external_presets" output="taginfo_external_presets.json"/>
|
---|
[8687] | 616 | </target>
|
---|
| 617 |
|
---|
[9505] | 618 | <target name="imageryindex">
|
---|
| 619 | <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/>
|
---|
| 620 | <echo message="Checking editor imagery difference"/>
|
---|
| 621 | <groovy src="scripts/sync_editor_imagery_index.groovy" classpath="dist/josm-custom.jar">
|
---|
| 622 | <arg value="-nomissingeii"/>
|
---|
| 623 | </groovy>
|
---|
| 624 | </target>
|
---|
| 625 |
|
---|
| 626 | <target name="imageryindexdownload">
|
---|
| 627 | <exec append="false" executable="wget" failifexecutionfails="true">
|
---|
| 628 | <arg value="https://josm.openstreetmap.de/maps"/>
|
---|
| 629 | <arg value="-O"/>
|
---|
| 630 | <arg value="maps.xml"/>
|
---|
| 631 | <arg value="--unlink"/>
|
---|
| 632 | </exec>
|
---|
| 633 | <exec append="false" executable="wget" failifexecutionfails="true">
|
---|
| 634 | <arg value="https://raw.githubusercontent.com/osmlab/editor-imagery-index/gh-pages/imagery.json"/>
|
---|
| 635 | <arg value="-O"/>
|
---|
| 636 | <arg value="imagery.json"/>
|
---|
| 637 | <arg value="--unlink"/>
|
---|
| 638 | </exec>
|
---|
| 639 | <antcall target="imageryindex"/>
|
---|
| 640 | </target>
|
---|
| 641 |
|
---|
[8508] | 642 | <target name="checkstyle">
|
---|
[8632] | 643 | <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
|
---|
[9252] | 644 | classpath="tools/checkstyle/checkstyle-6.14.1-all.jar"/>
|
---|
[8508] | 645 | <checkstyle config="tools/checkstyle/josm_checks.xml">
|
---|
[8510] | 646 | <fileset dir="${basedir}/src/org/openstreetmap/josm" includes="**/*.java"
|
---|
[9250] | 647 | excludes="gui/mappaint/mapcss/parsergen/*.java"/>
|
---|
[8508] | 648 | <fileset dir="${basedir}/test" includes="**/*.java"/>
|
---|
| 649 | <formatter type="xml" toFile="checkstyle-josm.xml"/>
|
---|
| 650 | </checkstyle>
|
---|
| 651 | </target>
|
---|
| 652 |
|
---|
[4838] | 653 | <target name="findbugs" depends="dist">
|
---|
[6133] | 654 | <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="tools/findbugs/findbugs-ant.jar"/>
|
---|
[4838] | 655 | <path id="findbugs-classpath">
|
---|
| 656 | <fileset dir="tools/findbugs/">
|
---|
| 657 | <include name="*.jar"/>
|
---|
| 658 | </fileset>
|
---|
| 659 | </path>
|
---|
[6133] | 660 | <property name="findbugs-classpath" refid="findbugs-classpath"/>
|
---|
| 661 | <findbugs output="xml"
|
---|
[4838] | 662 | outputFile="findbugs-josm.xml"
|
---|
[6133] | 663 | classpath="${findbugs-classpath}"
|
---|
| 664 | pluginList=""
|
---|
| 665 | excludeFilter="tools/findbugs/josm-filter.xml"
|
---|
| 666 | effort="max"
|
---|
| 667 | >
|
---|
| 668 | <sourcePath path="${basedir}/src" />
|
---|
| 669 | <class location="${basedir}/dist/josm-custom.jar" />
|
---|
| 670 | </findbugs>
|
---|
[4838] | 671 | </target>
|
---|
[5323] | 672 | <target name="run" depends="dist">
|
---|
| 673 | <java jar="dist/josm-custom.jar" fork="true">
|
---|
| 674 | <arg value="--set=expert=true"/>
|
---|
| 675 | <arg value="--set=remotecontrol.enabled=true"/>
|
---|
| 676 | <arg value="--set=debug.edt-checker.enable=false"/>
|
---|
| 677 | <jvmarg value="-Djosm.home=/tmp/.josm/"/>
|
---|
| 678 | </java>
|
---|
| 679 | </target>
|
---|
[9133] | 680 | <!-- compile build script for generating projection list -->
|
---|
| 681 | <target name="epsg-compile" depends="compile">
|
---|
| 682 | <mkdir dir="build2"/>
|
---|
[9357] | 683 | <javac sourcepath="" srcdir="scripts" failonerror="true"
|
---|
[9133] | 684 | destdir="build2" target="1.7" source="1.7" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8" classpath="build">
|
---|
| 685 | </javac>
|
---|
| 686 | </target>
|
---|
| 687 | <!-- generate projection list -->
|
---|
| 688 | <target name="epsg" depends="epsg-compile">
|
---|
| 689 | <touch file="${epsg.output}"/>
|
---|
[9357] | 690 | <java classname="BuildProjectionDefinitions" failonerror="true">
|
---|
[9133] | 691 | <classpath>
|
---|
| 692 | <pathelement path="."/>
|
---|
| 693 | <pathelement path="build"/>
|
---|
| 694 | <pathelement path="build2"/>
|
---|
| 695 | </classpath>
|
---|
[9357] | 696 | <arg value="${basedir}"/>
|
---|
[9133] | 697 | </java>
|
---|
| 698 | </target>
|
---|
[4166] | 699 | </project>
|
---|