Line | |
---|
1 | <project name="validator" default="build" basedir=".">
|
---|
2 |
|
---|
3 | <!-- point to your JOSM directory -->
|
---|
4 | <property name="josm" location="../josm/dist/josm-custom.jar" />
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 | <target name="init">
|
---|
9 | <mkdir dir="build"/>
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <target name="compile" depends="init">
|
---|
13 | <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
|
---|
14 | <include name="**/*.java" />
|
---|
15 | </javac>
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <target name="build" depends="clean, compile">
|
---|
19 | <copy todir="build/resources">
|
---|
20 | <fileset dir="resources"/>
|
---|
21 | </copy>
|
---|
22 | <copy todir="build/images">
|
---|
23 | <fileset dir="images"/>
|
---|
24 | </copy>
|
---|
25 | <jar destfile="validator.jar" basedir="build">
|
---|
26 | <manifest>
|
---|
27 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
|
---|
28 | <attribute name="Plugin-Description" value="A OSM data validator"/>
|
---|
29 | <attribute name="Author" value="Francisco R. Santos <frsantos@gmail.com>"/>
|
---|
30 | </manifest>
|
---|
31 | </jar>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <target name="clean">
|
---|
35 | <delete dir="build" />
|
---|
36 | </target>
|
---|
37 |
|
---|
38 | <target name="install" depends="build">
|
---|
39 | <copy file="validator.jar" todir="${user.home}/.josm/plugins"/>
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <target name="test" depends="install">
|
---|
43 | <java jar="${josm}" fork="true">
|
---|
44 | <arg value="/home/frsantos/Desktop/JOSM/Tracks/Auto_1007_13.gpx"/>
|
---|
45 | </java>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.