[26174] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[22753] | 2 | <project name="OpeningHoursEditor" default="dist" basedir=".">
|
---|
| 3 | <!-- enter the SVN commit message -->
|
---|
[26174] | 4 | <property name="commit.message" value="fixed main version"/>
|
---|
[22753] | 5 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
[34535] | 6 | <property name="plugin.main.version" value="14153"/>
|
---|
[30112] | 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"/>
|
---|
[31923] | 12 | <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/>
|
---|
[30962] | 13 | <property name="plugin.canloadatruntime" value="true"/>
|
---|
[30112] | 14 |
|
---|
| 15 | <!-- ** include targets that all plugins have in common ** -->
|
---|
| 16 | <import file="../build-common.xml"/>
|
---|
| 17 |
|
---|
[30122] | 18 | <property name="javacc.home" location="../00_core_tools"/>
|
---|
[30112] | 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"/>
|
---|
[32680] | 26 | <arg value="-JDK_VERSION=1.8"/>
|
---|
[30112] | 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"/>
|
---|
[26174] | 31 | </exec>
|
---|
| 32 | </target>
|
---|
[30112] | 33 |
|
---|
| 34 | <!--
|
---|
[22753] | 35 | **********************************************************
|
---|
[30112] | 36 | ** compile - compiles the source tree
|
---|
[22753] | 37 | **********************************************************
|
---|
| 38 | -->
|
---|
[30112] | 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>
|
---|
[22753] | 46 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 47 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 48 | </javac>
|
---|
| 49 | </target>
|
---|
[30112] | 50 |
|
---|
[22753] | 51 | </project>
|
---|