Ticket #7922: 7922-javacc.notRequired.diff

File 7922-javacc.notRequired.diff, 1.7 KB (added by AlfonZ, 12 years ago)
  • build.xml

     
    108108            <zipfileset dir="macosx" includes="JOSM.app/Contents/MacOS/JOSM" filemode="755"/>
    109109        </zip>
    110110    </target>
    111     <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
    112         <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
    113     </uptodate>
    114     <target name="javacc" unless="javacc.notRequired">
     111    <target name="javacc" depends="init" unless="javacc.notRequired">
    115112        <mkdir dir="${mapcss.dir}/parsergen"/>
    116113        <exec append="false" executable="java" failifexecutionfails="true">
    117114            <arg value="-cp"/>
     
    122119        </exec>
    123120<!--        <javacc target="${mapcss.dir}/MapCSSParser.jj" javacchome="${javacc.home}" outputdirectory="${mapcss.dir}/parsergen"/>-->
    124121    </target>
    125     <target name="compile" depends="javacc,init">
     122    <target name="compile" depends="init,javacc">
    126123        <javac srcdir="src" includes="com/**,oauth/**,org/apache/commons/codec/**" destdir="build" target="1.5" source="1.5" debug="on" encoding="iso-8859-1"/>
    127124        <javac srcdir="src" excludes="com/**,oauth/**,org/apache/commons/codec/**" destdir="build" target="1.5" source="1.5" debug="on" encoding="UTF-8">
    128125            <compilerarg value="-Xlint:deprecation"/>
     
    130127        </javac>
    131128    </target>
    132129    <target name="init">
     130        <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
     131            <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
     132        </uptodate>
    133133        <mkdir dir="build"/>
    134134        <mkdir dir="dist"/>
    135135    </target>