source: osm/applications/editors/josm/plugins/OpeningHoursEditor/build.xml@ 30116

Last change on this file since 30116 was 30112, checked in by donvip, 11 years ago

[josm_openinghours] remove generated code from SVN, use JOSM's JavaCC

  • Property svn:mime-type set to text/xml
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="OpeningHoursEditor" default="dist" basedir=".">
3 <!-- enter the SVN commit message -->
4 <property name="commit.message" value="fixed main version"/>
5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
6 <property name="plugin.main.version" value="6162"/>
7
8 <property name="plugin.author" value="Falko Thomale"/>
9 <property name="plugin.class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin"/>
10 <property name="plugin.description" value="extended options for editing opening_hours"/>
11 <property name="plugin.icon" value="images/opening_hours.png"/>
12 <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/>
13
14 <!-- ** include targets that all plugins have in common ** -->
15 <import file="../build-common.xml"/>
16
17 <property name="javacc.home" location="../../core/tools"/>
18 <property name="parser.dir" location="${plugin.src.dir}/org/openstreetmap/josm/plugins/ohe/parser"/>
19
20 <target name="javacc" depends="init" unless="javacc.notRequired">
21 <exec append="false" executable="java" failifexecutionfails="true">
22 <arg value="-cp"/>
23 <arg value="${javacc.home}/javacc.jar"/>
24 <arg value="javacc"/>
25 <arg value="-JDK_VERSION=1.6"/>
26 <arg value="-GRAMMAR_ENCODING=UTF-8"/>
27 <arg value="-UNICODE_INPUT"/>
28 <arg value="-OUTPUT_DIRECTORY=${parser.dir}"/>
29 <arg value="${parser.dir}/OpeningTimeCompiler.jj"/>
30 </exec>
31 </target>
32
33 <!--
34 **********************************************************
35 ** compile - compiles the source tree
36 **********************************************************
37 -->
38 <target name="compile" depends="init, javacc">
39 <echo message="compiling sources for ${plugin.jar} ... "/>
40 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
41 <classpath>
42 <pathelement path="${plugin.build.dir}"/>
43 <pathelement location="${josm}"/>
44 </classpath>
45 <compilerarg value="-Xlint:deprecation"/>
46 <compilerarg value="-Xlint:unchecked"/>
47 </javac>
48 </target>
49
50</project>
Note: See TracBrowser for help on using the repository browser.