-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml.testing
69 lines (62 loc) · 3.5 KB
/
build.xml.testing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="utf-8"?>
<project name="Tracer-testing" default="dist" basedir=".">
<!-- enter the SVN commit message -->
<property name="commit.message" value="Tracer-testing - replace javax.json with jakarta.json"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="15386"/>
<property name="plugin.canloadatruntime" value="true"/>
<property name="plugin.author" value="Jan Bilak, Petr Dlouhý, Marián Kyral, Martin Švec"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.tracer.TracerPlugin"/>
<property name="plugin.description" value="This is an testing version of the improved original Tracer plugin developed at /~https://github.com/mkyral/josm-tracer"/>
<property name="plugin.icon" value="images/mapmode/tracer-sml.png"/>
<property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tracer"/>
<!-- ** include targets that all plugins have in common ** -->
<import file="./build-common.xml.testing"/>
<property name="plugin.requires" value="jts;geotools;ejml;jaxb"/>
<property name="jts" location="${plugin.dist.dir}/jts.jar"/>
<property name="ejml" location="${plugin.dist.dir}/ejml.jar"/>
<property name="jaxb" location="${plugin.dist.dir}/jaxb.jar"/>
<property name="geotools" location="${plugin.dist.dir}/geotools.jar"/>
<property name="plugin.minimum.java.version" value="11"/>
<target name="my-init-git-revision-xml" unless="skip-revision">
<exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false" resultproperty="git.info.result">
<arg value="log"/>
<arg value="-1"/>
<arg value="--pretty=format:%at%n%ai"/>
<arg value="."/>
</exec>
<replaceregexp file="REVISION.XML" flags="s"
match="\s*(\d*)\s+(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$"
replace="<info><entry><commit revision="\1"><date>\2</date></commit></entry></info>"/>
<condition property="git.fail">
<not>
<and>
<equals arg1="${git.info.result}" arg2="0" />
<length file="REVISION.XML" when="greater" length="1" />
</and>
</not>
</condition>
</target>
<target name="my-revision" depends="my-init-git-revision-xml,init-revision-fallback" unless="skip-revision">
<xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
<!-- <delete file="REVISION.XML"/> -->
</target>
<!--
**********************************************************
** compile - compiles the source tree
**********************************************************
-->
<target name="compile" depends="init,my-revision">
<echo message="compiling sources for ${plugin.jar} ... "/>
<javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
<classpath>
<pathelement path="${plugin.build.dir}"/>
<pathelement location="${josm}"/>
<pathelement location="${jts}"/>
<pathelement location="${geotools}"/>
</classpath>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
</project>