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

see #josm16860 - Resolve JavaCC using Apache Ivy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OpeningHoursEditor/build.xml

    r34535 r35378  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <project name="OpeningHoursEditor" default="dist" basedir=".">
     2<project name="OpeningHoursEditor" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
    33    <!-- enter the SVN commit message -->
    44    <property name="commit.message" value="fixed main version"/>
     
    1616    <import file="../build-common.xml"/>
    1717       
    18     <property name="javacc.home" location="../00_core_tools"/>
    1918        <property name="parser.dir" location="${plugin.src.dir}/org/openstreetmap/josm/plugins/ohe/parser"/>
    2019       
    2120    <target name="javacc" depends="init" unless="javacc.notRequired">
    22         <exec append="false" executable="java" failifexecutionfails="true">
    23             <arg value="-cp"/>
    24             <arg value="${javacc.home}/javacc.jar"/>
    25             <arg value="javacc"/>
     21        <ivy:cachepath file="${core.tools.ivy}" pathid="javacc.classpath" conf="javacc"/>
     22        <java classname="javacc" fork="true" failonerror="true">
     23            <classpath refid="javacc.classpath"/>
    2624            <arg value="-JDK_VERSION=1.8"/>
    2725            <arg value="-GRAMMAR_ENCODING=UTF-8"/>
     
    2927            <arg value="-OUTPUT_DIRECTORY=${parser.dir}"/>
    3028            <arg value="${parser.dir}/OpeningTimeCompiler.jj"/>
    31         </exec>
     29        </java>
    3230    </target>
    3331
Note: See TracChangeset for help on using the changeset viewer.