Changeset 12628 in josm
- Timestamp:
- 2017-08-23T19:30:45+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r12586 r12628 28 28 <property name="groovy.jar" location="${base.dir}/tools/groovy-all.jar"/> 29 29 <property name="error_prone_ant.jar" location="${base.dir}/tools/error_prone_ant.jar"/> 30 <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/> 31 <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/> 30 32 <property name="javac.compiler" value="com.google.errorprone.ErrorProneAntCompilerAdapter" /> 33 <property name="java.lang.version" value="1.8" /> 31 34 <!-- build parameter: compression level (ant -Dclevel=N) 32 35 N ranges from 0 (no compression) to 9 (maximum compression) … … 43 46 <include name="**/*.jar"/> 44 47 </fileset> 45 <pathelement path="${dist. dir}/josm-custom.jar"/>48 <pathelement path="${dist.jar}"/> 46 49 <pathelement path="${groovy.jar}"/> 47 50 <pathelement path="tools/findbugs/annotations.jar"/> … … 134 137 <copy file="LICENSE" todir="build"/> 135 138 <!-- create josm-custom.jar --> 136 <delete file="${dist. dir}/josm-custom.jar"/>137 <jar destfile="${dist. dir}/josm-custom.jar" basedir="${build.dir}" level="${clevel}">139 <delete file="${dist.jar}"/> 140 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}"> 138 141 <!-- add attribute excludes="**/*BZip2*,**/*Bzip2*" to create a non-bzip2 supporting jar --> 139 142 <manifest> … … 205 208 <antcall target="mac"> 206 209 <param name="bundle.outdir" value="${dist.dir}"/> 207 <param name="bundle.jar" value="${dist. dir}/josm-custom.jar"/>210 <param name="bundle.jar" value="${dist.jar}"/> 208 211 </antcall> 209 212 </target> … … 212 215 <exec dir="windows" executable="./josm-setup-unix.sh"> 213 216 <arg value="${version.entry.commit.revision}"/> 214 <arg value=" ../dist/josm-custom.jar"/>217 <arg value="${dist.jar}"/> 215 218 </exec> 216 219 </target> … … 221 224 <arg value="-DEBUG_PARSER=false"/> 222 225 <arg value="-DEBUG_TOKEN_MANAGER=false"/> 223 <arg value="-JDK_VERSION= 1.8"/>226 <arg value="-JDK_VERSION=${java.lang.version}"/> 224 227 <arg value="-GRAMMAR_ENCODING=UTF-8"/> 225 228 <arg value="-OUTPUT_DIRECTORY=${mapcss.dir}/parsergen"/> … … 230 233 <!-- COTS --> 231 234 <javac srcdir="${src.dir}" includes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**" nowarn="on" encoding="iso-8859-1" 232 destdir="build" target=" 1.8" source="1.8" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false">235 destdir="build" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeAntRuntime="false" createMissingPackageInfoClass="false"> 233 236 <!-- get rid of "internal proprietary API" warning --> 234 237 <compilerarg value="-XDignore.symbol.file"/> … … 282 285 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}" 283 286 excludes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/Demo.java,org/openstreetmap/gui/jmapviewer/JMapViewerTree.java,org/openstreetmap/gui/jmapviewer/checkBoxTree/**,org/openstreetmap/josm/**,gnu/**" 284 destdir="build" target=" 1.8" source="1.8" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">287 destdir="build" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> 285 288 <compilerclasspath> 286 289 <pathelement location="${error_prone_ant.jar}"/> … … 305 308 <javac compiler="${javac.compiler}" sourcepath="" srcdir="${src.dir}" 306 309 excludes="com/**,oauth/**,org/apache/commons/**,org/glassfish/**,org/openstreetmap/gui/jmapviewer/**" 307 destdir="build" target=" 1.8" source="1.8" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8">310 destdir="build" target="${java.lang.version}" source="${java.lang.version}" debug="on" includeantruntime="false" createMissingPackageInfoClass="false" encoding="UTF-8"> 308 311 <compilerclasspath> 309 312 <pathelement location="${error_prone_ant.jar}"/> … … 410 413 <cp-elements/> 411 414 </classpath> 412 <javac target=" 1.8" source="1.8" debug="on" encoding="UTF-8">415 <javac target="${java.lang.version}" source="${java.lang.version}" debug="on" encoding="UTF-8"> 413 416 <compilerarg value="-Xlint:all"/> 414 417 <compilerarg value="-Xlint:-serial"/> … … 529 532 <taskdef resource="proguard/ant/task.properties" classpath="tools/proguard.jar"/> 530 533 <proguard> 531 -injars dist/josm-custom.jar532 -outjars dist/josm-custom-optimized.jar534 -injars ${dist.jar} 535 -outjars ${dist-optimized.jar} 533 536 534 537 -libraryjars ${java.home}/lib/rt.jar … … 586 589 <arg value="--v2=${version.entry.commit.revision}-optimized"/> 587 590 <arg value="--report-path=${dist.dir}/compat_report.html"/> 588 <arg value="${dist. dir}/josm-custom.jar"/>589 <arg value="${dist .dir}/josm-custom-optimized.jar"/>591 <arg value="${dist.jar}"/> 592 <arg value="${dist-optimized.jar}"/> 590 593 </exec> 591 594 </target> … … 659 662 <as:build-signatures destfile="${dir}/api.sig"> 660 663 <path> 661 <fileset file="${dist .dir}/josm-custom-optimized.jar"/>664 <fileset file="${dist-optimized.jar}"/> 662 665 <fileset file="${java.home}/lib/rt.jar"/> 663 666 <fileset file="${java.home}/lib/jce.jar"/> … … 706 709 <sequential> 707 710 <echo message="Generating Taginfo for type @{type} to @{output}"/> 708 <groovy src="${taginfoextract}" classpath="${dist. dir}/josm-custom.jar:tools/findbugs/annotations.jar">711 <groovy src="${taginfoextract}" classpath="${dist.jar}:tools/findbugs/annotations.jar"> 709 712 <arg value="-t"/> 710 713 <arg value="@{type}"/> … … 731 734 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};tools/commons-cli-1.3.1.jar"/> 732 735 <echo message="Checking editor imagery difference"/> 733 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist. dir}/josm-custom.jar">736 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}"> 734 737 <arg value="-noeli"/> 735 738 <arg value="-p"/> … … 765 768 <mkdir dir="${checkstyle-build.dir}"/> 766 769 <javac sourcepath="" srcdir="${base.dir}/tools/checkstyle/src" failonerror="true" 767 destdir="${checkstyle-build.dir}" target=" 1.8" source="1.8" debug="on"770 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" 768 771 includeantruntime="false" createMissingPackageInfoClass="false" 769 772 encoding="UTF-8" classpath="tools/checkstyle/checkstyle-all.jar"> … … 799 802 > 800 803 <sourcePath path="${base.dir}/src" /> 801 <class location="${dist. dir}/josm-custom.jar" />804 <class location="${dist.jar}" /> 802 805 </findbugs> 803 806 </target> … … 806 809 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/> 807 810 <pmd shortFilenames="true" encoding="UTF-8"> 808 <sourceLanguage name="java" version=" 1.8" />811 <sourceLanguage name="java" version="${java.lang.version}" /> 809 812 <ruleset>${base.dir}/tools/pmd/josm-ruleset.xml</ruleset> 810 813 <formatter type="text" toConsole="true" /> … … 820 823 821 824 <target name="run" depends="dist"> 822 <java jar="${dist. dir}/josm-custom.jar" fork="true">825 <java jar="${dist.jar}" fork="true"> 823 826 <arg value="--set=expert=true"/> 824 827 <arg value="--set=remotecontrol.enabled=true"/> … … 834 837 <mkdir dir="${proj-build.dir}"/> 835 838 <javac sourcepath="" srcdir="${base.dir}/scripts" failonerror="true" 836 destdir="${proj-build.dir}" target=" 1.8" source="1.8" debug="on"839 destdir="${proj-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" 837 840 includeantruntime="false" createMissingPackageInfoClass="false" 838 841 encoding="UTF-8" classpath="${proj-classpath}">
Note:
See TracChangeset
for help on using the changeset viewer.