Changeset 13209 in josm
- Timestamp:
- 2017-12-17T15:14:29+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r13202 r13209 21 21 <property name="build.dir" location="${base.dir}/build"/> 22 22 <property name="dist.dir" location="${base.dir}/dist"/> 23 <property name="javacc.home" location="${base.dir}/tools"/> 23 <property name="tools.dir" location="${base.dir}/tools"/> 24 <property name="pmd.dir" location="${tools.dir}/pmd"/> 25 <property name="checkstyle.dir" location="${tools.dir}/checkstyle"/> 26 <property name="spotbugs.dir" location="${tools.dir}/spotbugs"/> 27 <property name="javacc.home" location="${tools.dir}"/> 24 28 <property name="mapcss.dir" location="${src.dir}/org/openstreetmap/josm/gui/mappaint/mapcss"/> 25 29 <property name="proj-build.dir" location="${base.dir}/build2"/> 26 30 <property name="checkstyle-build.dir" location="${base.dir}/build2"/> 27 31 <property name="epsg.output" location="${base.dir}/data/projection/custom-epsg"/> 28 <property name="groovy.jar" location="${ base.dir}/tools/groovy-all.jar"/>29 <property name="error_prone_ant.jar" location="${ base.dir}/tools/error_prone_ant.jar"/>32 <property name="groovy.jar" location="${tools.dir}/groovy-all.jar"/> 33 <property name="error_prone_ant.jar" location="${tools.dir}/error_prone_ant.jar"/> 30 34 <property name="dist.jar" location="${dist.dir}/josm-custom.jar"/> 31 35 <property name="dist-optimized.jar" location="${dist.dir}/josm-custom-optimized.jar"/> … … 51 55 <pathelement path="${dist.jar}"/> 52 56 <pathelement path="${groovy.jar}"/> 53 <pathelement path=" tools/spotbugs/spotbugs-annotations.jar"/>57 <pathelement path="${spotbugs.dir}/spotbugs-annotations.jar"/> 54 58 </path> 55 59 <path id="pmd.classpath"> 56 <fileset dir="${ base.dir}/tools/pmd/">60 <fileset dir="${pmd.dir}"> 57 61 <include name="*.jar"/> 58 62 </fileset> … … 166 170 <target name="mac" depends="init-properties"> 167 171 <!-- Using https://bitbucket.org/infinitekind/appbundler to create mac application bundle --> 168 <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath=" tools/appbundler-1.0ea.jar"/>172 <taskdef name="bundleapp" classname="com.oracle.appbundler.AppBundlerTask" classpath="${tools.dir}/appbundler-1.0ea.jar"/> 169 173 <!-- create MacOS X application bundle --> 170 174 <bundleapp outputdirectory="${bundle.outdir}" name="JOSM" displayname="JOSM" executablename="JOSM" identifier="org.openstreetmap.josm" … … 196 200 197 201 <!-- appbundler lacks the possibility of defining our own keys or using a template, so update the .plist manually --> 198 <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath=" tools/xmltask.jar"/>202 <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath="${tools.dir}/xmltask.jar"/> 199 203 200 204 <xmltask source="${bundle.outdir}/JOSM.app/Contents/Info.plist" dest="${bundle.outdir}/JOSM.app/Contents/Info.plist" indent="false"> … … 388 392 <delete dir="${src.dir}/org/openstreetmap/josm/data/imagery/types"/> 389 393 <delete file="${epsg.output}"/> 394 <delete file="${pmd.dir}/cache"/> 390 395 </target> 391 396 <macrodef name="init-test-preferences"> … … 406 411 <init-test-preferences testfamily="functional"/> 407 412 <init-test-preferences testfamily="performance"/> 408 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath=" tools/jacocoant.jar" />413 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="${tools.dir}/jacocoant.jar" /> 409 414 </target> 410 415 <target name="test-clean" depends="init-properties"> … … 544 549 </target> 545 550 <target name="dist-optimized" depends="dist"> 546 <taskdef resource="proguard/ant/task.properties" classpath=" tools/proguard.jar"/>551 <taskdef resource="proguard/ant/task.properties" classpath="${tools.dir}/proguard.jar"/> 547 552 <proguard> 548 553 -injars ${dist.jar} … … 599 604 <!-- generate difference report between optimized jar and normal one --> 600 605 <exec executable="perl" dir="${basedir}"> 601 <arg value=" tools/japicc/japi-compliance-checker.pl"/>606 <arg value="${tools.dir}/japicc/japi-compliance-checker.pl"/> 602 607 <arg value="--lib=JOSM"/> 603 608 <arg value="--keep-internal"/> … … 614 619 <property name="dir" value="plugin-check"/> 615 620 <typedef uri="antlib:org.codehaus.mojo.animal_sniffer"> 616 <classpath path=" tools/animal-sniffer-ant-tasks.jar"/>621 <classpath path="${tools.dir}/animal-sniffer-ant-tasks.jar"/> 617 622 </typedef> 618 623 <mkdir dir="${dir}"/> … … 745 750 <sequential> 746 751 <echo message="Generating Taginfo for type @{type} to @{output}"/> 747 <groovy src="${taginfoextract}" classpath="${dist.jar}: tools/spotbugs/spotbugs-annotations.jar">752 <groovy src="${taginfoextract}" classpath="${dist.jar}:${spotbugs.dir}/spotbugs-annotations.jar"> 748 753 <arg value="-t"/> 749 754 <arg value="@{type}"/> … … 759 764 760 765 <target name="taginfo" depends="dist"> 761 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar}; tools/commons-cli-1.3.1.jar"/>766 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};${tools.dir}/commons-cli-1.3.1.jar"/> 762 767 <property name="taginfoextract" value="scripts/TagInfoExtract.groovy"/> 763 768 <property name="imgurlprefix" value="http://josm.openstreetmap.de/download/taginfo/taginfo-img"/> … … 768 773 769 774 <target name="imageryindex" depends="init-properties"> 770 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar}; tools/commons-cli-1.3.1.jar"/>775 <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="${groovy.jar};${tools.dir}/commons-cli-1.3.1.jar"/> 771 776 <echo message="Checking editor imagery difference"/> 772 777 <groovy src="scripts/SyncEditorLayerIndex.groovy" classpath="${dist.jar}"> … … 803 808 <target name="checkstyle-compile" depends="init-properties"> 804 809 <mkdir dir="${checkstyle-build.dir}"/> 805 <javac sourcepath="" srcdir="${ base.dir}/tools/checkstyle/src" failonerror="true"810 <javac sourcepath="" srcdir="${checkstyle.dir}/src" failonerror="true" 806 811 destdir="${checkstyle-build.dir}" target="${java.lang.version}" source="${java.lang.version}" debug="on" 807 812 includeantruntime="false" createMissingPackageInfoClass="false" 808 encoding="UTF-8" classpath=" tools/checkstyle/checkstyle-all.jar">813 encoding="UTF-8" classpath="${checkstyle.dir}/checkstyle-all.jar"> 809 814 </javac> 810 815 </target> 811 816 <target name="checkstyle" depends="checkstyle-compile"> 812 817 <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties" 813 classpath=" tools/checkstyle/checkstyle-all.jar:${checkstyle-build.dir}"/>814 <checkstyle config=" tools/checkstyle/josm_checks.xml">818 classpath="${checkstyle.dir}/checkstyle-all.jar:${checkstyle-build.dir}"/> 819 <checkstyle config="${checkstyle.dir}/josm_checks.xml"> 815 820 <fileset dir="${base.dir}/src/org/openstreetmap/josm" includes="**/*.java" 816 821 excludes="gui/mappaint/mapcss/parsergen/*.java"/> … … 822 827 823 828 <target name="spotbugs" depends="dist"> 824 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath=" tools/spotbugs/spotbugs-ant.jar"/>829 <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${spotbugs.dir}/spotbugs-ant.jar"/> 825 830 <path id="spotbugs-classpath"> 826 <fileset dir="${ base.dir}/tools/spotbugs/">831 <fileset dir="${spotbugs.dir}"> 827 832 <include name="*.jar"/> 828 833 </fileset> … … 833 838 classpath="${spotbugs-classpath}" 834 839 pluginList="" 835 excludeFilter=" tools/spotbugs/josm-filter.xml"840 excludeFilter="${spotbugs.dir}/josm-filter.xml" 836 841 effort="max" 837 842 reportLevel="low" … … 844 849 <target name="pmd" depends="init-properties"> 845 850 <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/> 846 <pmd shortFilenames="true" cacheLocation=" tools/pmd/cache" encoding="UTF-8">851 <pmd shortFilenames="true" cacheLocation="${pmd.dir}/cache" encoding="UTF-8"> 847 852 <sourceLanguage name="java" version="${java.lang.version}" /> 848 <ruleset>${ base.dir}/tools/pmd/josm-ruleset.xml</ruleset>853 <ruleset>${pmd.dir}/josm-ruleset.xml</ruleset> 849 854 <formatter type="text" toConsole="true" /> 850 855 <formatter type="xml" toFile="pmd-josm.xml">
Note:
See TracChangeset
for help on using the changeset viewer.