source: osm/applications/editors/josm/plugins/validator/build.xml@ 6899

Last change on this file since 6899 was 6100, checked in by joerg, 17 years ago

josm: move plugins/dist directory one level up

File size: 2.2 KB
Line 
1<project name="validator" default="dist" basedir=".">
2
3 <!-- compilation properties -->
4 <property name="josm.build.dir" value="../../core"/>
5 <property name="josm.home.dir" value="${user.home}/.josm"/>
6 <property name="josm" location="../../core/dist/josm-custom.jar" />
7 <property name="plugin.build.dir" value="build"/>
8 <property name="plugin.dist.dir" value="../../dist"/>
9 <property name="plugin.name" value="${ant.project.name}"/>
10 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
11
12 <!-- point to your JOSM directory -->
13 <property name="josm" location="../../core/dist/josm-custom.jar" />
14
15 <property name="ant.build.javac.target" value="1.5"/>
16
17 <target name="init">
18 <mkdir dir="${plugin.build.dir}"/>
19 </target>
20
21 <target name="compile" depends="init">
22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
23 <include name="**/*.java" />
24 </javac>
25 </target>
26
27 <target name="dist" depends="clean, compile">
28 <copy todir="build/images">
29 <fileset dir="images"/>
30 </copy>
31 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
32 <env key="LANG" value="C"/>
33 <arg value="info"/>
34 <arg value="--xml"/>
35 <arg value="."/>
36 </exec>
37 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
38 <delete file="REVISION"/>
39 <jar destfile="${plugin.jar}" basedir="build">
40 <manifest>
41 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
42 <attribute name="Plugin-Description" value="A OSM data validator"/>
43 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
44 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
45 <attribute name="Author" value="Francisco R. Santos &lt;frsantos@gmail.com>"/>
46 </manifest>
47 </jar>
48 </target>
49
50 <!-- clean target -->
51 <target name="clean">
52 <delete dir="${plugin.build.dir}" />
53 <delete file="${plugin.jar}" />
54 </target>
55
56 <target name="install" depends="dist">
57 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
58 </target>
59
60 <target name="test" depends="install">
61 <java jar="${josm}" fork="true">
62 </java>
63 </target>
64
65</project>
Note: See TracBrowser for help on using the repository browser.