Changeset 16168 in josm for trunk/build.xml


Ignore:
Timestamp:
2020-03-17T22:26:12+01:00 (6 years ago)
Author:
simon04
Message:

see #16860 - Resolve JavaCC using Apache Ivy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16167 r16168  
    2020        <property name="lib.dir"   location="${base.dir}/lib"/>
    2121        <property name="tools.dir" location="${base.dir}/tools"/>
     22        <property name="tools.ivy" location="${tools.dir}/ivy.xml"/>
    2223        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpath="${tools.dir}/ivy/ivy.jar"/>
    2324    </target>
     
    276277    </target>
    277278    <target name="javacc" depends="init" unless="javacc.notRequired">
     279        <ivy:cachepath file="${tools.ivy}" pathid="javacc.classpath" conf="javacc"/>
    278280        <mkdir dir="${mapcss.dir}/parsergen"/>
    279281        <java classname="javacc" fork="true" failonerror="true">
    280             <classpath path="${javacc.home}/javacc.jar"/>
     282            <classpath refid="javacc.classpath"/>
    281283            <arg value="-DEBUG_PARSER=false"/>
    282284            <arg value="-DEBUG_TOKEN_MANAGER=false"/>
     
    366368            <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 -->
    367369            <compilerarg value="-XDignore.symbol.file"/>
    368             <compilerarg value="-Xplugin:ErrorProne -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF -Xep:UnnecessaryParentheses:OFF -Xep:EqualsGetClass:OFF -Xep:ThreadPriorityCheck:OFF -Xep:UndefinedEquals:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:OverrideThrowableToString:OFF -Xep:JavaTimeDefaultTimeZone:OFF -Xep:UnusedVariable:OFF -Xep:EqualsUsingHashCode:OFF -Xep:BadImport:OFF -Xep:UnnecessaryLambda:OFF -Xep:AnnotateFormatMethod:OFF -Xep:MutablePublicArray:OFF"/>
     370            <compilerarg value="-Xplugin:ErrorProne -XepExcludedPaths:.*/parsergen/.* -Xep:ReferenceEquality:OFF -Xep:ImmutableEnumChecker:OFF -Xep:FutureReturnValueIgnored:OFF -Xep:FloatingPointLiteralPrecision:OFF -Xep:ShortCircuitBoolean:OFF -Xep:StringSplitter:OFF -Xep:JdkObsolete:OFF -Xep:UnnecessaryParentheses:OFF -Xep:EqualsGetClass:OFF -Xep:ThreadPriorityCheck:OFF -Xep:UndefinedEquals:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:OverrideThrowableToString:OFF -Xep:JavaTimeDefaultTimeZone:OFF -Xep:UnusedVariable:OFF -Xep:EqualsUsingHashCode:OFF -Xep:BadImport:OFF -Xep:UnnecessaryLambda:OFF -Xep:AnnotateFormatMethod:OFF -Xep:MutablePublicArray:OFF"/>
    369371            <compilerarg line="-Xmaxwarns 1000"/>
    370372            <classpath>
     
    948950
    949951    <target name="spotbugs" depends="dist">
    950         <ivy:cachepath file="${tools.dir}/ivy.xml" pathid="spotbugs.classpath" conf="spotbugs"/>
     952        <ivy:cachepath file="${tools.ivy}" pathid="spotbugs.classpath" conf="spotbugs"/>
    951953        <taskdef name="spotbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${toString:spotbugs.classpath}"/>
    952954        <spotbugs output="xml"
     
    964966
    965967    <target name="pmd" depends="init-properties">
    966         <ivy:cachepath file="${tools.dir}/ivy.xml" pathid="pmd.classpath" conf="pmd"/>
     968        <ivy:cachepath file="${tools.ivy}" pathid="pmd.classpath" conf="pmd"/>
    967969        <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpath="${toString:pmd.classpath}"/>
    968970        <pmd shortFilenames="true" cacheLocation="${pmd.dir}/cache" encoding="UTF-8">
     
    11751177        <ivy:retrieve pattern="${lib.dir}/runtime/[artifact]-[type].[ext]" conf="runtime"/>
    11761178        <ivy:retrieve pattern="${lib.dir}/sources/[artifact]-[type].[ext]" conf="sources"/>
     1179        <ivy:retrieve pattern="${lib.dir}/tools/[artifact]-[type].[ext]" conf="javacc" file="${tools.ivy}"/>
    11771180    </target>
    11781181</project>
Note: See TracChangeset for help on using the changeset viewer.