Ticket #7769: 7769.patch

File 7769.patch, 1.0 KB (added by simon04, 10 years ago)
  • build.xml

    diff --git a/build.xml b/build.xml
    index f49d045..5a53b42 100644
    a b Build-Date: ${build.tstamp} 
    107107            <zipfileset dir="macosx" includes="JOSM.app/Contents/MacOS/JOSM" filemode="755"/>
    108108        </zip>
    109109    </target>
    110     <target name="javacc">
     110    <uptodate property="javacc.notRequired" targetfile="${mapcss.dir}/parsergen/MapCSSParser.java" >
     111        <srcfiles dir="${mapcss.dir}" includes="MapCSSParser.jj"/>
     112    </uptodate>
     113    <target name="javacc" unless="javacc.notRequired">
    111114        <mkdir dir="${mapcss.dir}/parsergen"/>
    112115        <exec append="false" executable="java" failifexecutionfails="true">
    113116            <arg value="-cp"/>
    Build-Date: ${build.tstamp} 
    328331        <class location="${basedir}/dist/josm-custom.jar" />
    329332      </findbugs>
    330333    </target>
     334    <target name="run" depends="dist">
     335        <java jar="dist/josm-custom.jar" fork="true">
     336            <jvmarg value="-Djosm.home=/tmp/.josm/"/>
     337        </java>
     338    </target>
    331339
    332340</project>