<?xml version="1.0" encoding="utf-8"?>
<project name="comfort0" default="dist" basedir=".">

    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="9229"/>
    <property name="plugin.canloadatruntime" value="true"/>

    <property name="plugin.author" value="simon04"/>
    <property name="plugin.class" value="net.simon04.comfort0.Comfort0Plugin"/>
    <property name="plugin.description" value="Allows editing data in Level0L format"/>
    <property name="plugin.icon" value="images/theta.svg"/>
    <property name="plugin.link" value="http://josm.openstreetmap.de/wiki/Help/Plugin/Comfort0"/>

    <!-- ** include targets that all plugins have in common ** -->
    <import file="../build-common.xml"/>

    <property name="javacc.home" location="../../core/tools"/>
    <property name="parser.dir" location="src/net/simon04/comfort0/level0l"/>
    <target name="pre-compile" depends="javacc"/>
    <target name="javacc" depends="init" unless="javacc.notRequired">
        <mkdir dir="${parser.dir}/parsergen"/>
        <exec append="false" executable="java" failifexecutionfails="true">
            <arg value="-cp"/>
            <arg value="${javacc.home}/javacc.jar"/>
            <arg value="javacc"/>
            <arg value="-DEBUG_PARSER=false"/>
            <arg value="-DEBUG_TOKEN_MANAGER=false"/>
            <arg value="-JDK_VERSION=1.7"/>
            <arg value="-GRAMMAR_ENCODING=UTF-8"/>
            <arg value="-OUTPUT_DIRECTORY=${parser.dir}/parsergen"/>
            <arg value="${parser.dir}/Level0LParser.jj"/>
        </exec>
    </target>

</project>
