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="12643"/>
|
---|
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="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/>
|
---|
13 | <property name="plugin.canloadatruntime" value="true"/>
|
---|
14 |
|
---|
15 | <!-- ** include targets that all plugins have in common ** -->
|
---|
16 | <import file="../build-common.xml"/>
|
---|
17 |
|
---|
18 | <property name="javacc.home" location="../00_core_tools"/>
|
---|
19 | <property name="parser.dir" location="${plugin.src.dir}/org/openstreetmap/josm/plugins/ohe/parser"/>
|
---|
20 |
|
---|
21 | <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"/>
|
---|
26 | <arg value="-JDK_VERSION=1.8"/>
|
---|
27 | <arg value="-GRAMMAR_ENCODING=UTF-8"/>
|
---|
28 | <arg value="-UNICODE_INPUT"/>
|
---|
29 | <arg value="-OUTPUT_DIRECTORY=${parser.dir}"/>
|
---|
30 | <arg value="${parser.dir}/OpeningTimeCompiler.jj"/>
|
---|
31 | </exec>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <!--
|
---|
35 | **********************************************************
|
---|
36 | ** compile - compiles the source tree
|
---|
37 | **********************************************************
|
---|
38 | -->
|
---|
39 | <target name="compile" depends="init, javacc">
|
---|
40 | <echo message="compiling sources for ${plugin.jar} ... "/>
|
---|
41 | <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
|
---|
42 | <classpath>
|
---|
43 | <pathelement path="${plugin.build.dir}"/>
|
---|
44 | <pathelement location="${josm}"/>
|
---|
45 | </classpath>
|
---|
46 | <compilerarg value="-Xlint:deprecation"/>
|
---|
47 | <compilerarg value="-Xlint:unchecked"/>
|
---|
48 | </javac>
|
---|
49 | </target>
|
---|
50 |
|
---|
51 | </project>
|
---|