source: osm/applications/editors/josm/plugins/ywms/build.xml@ 6034

Last change on this file since 6034 was 5197, checked in by gabriel, 17 years ago

Build all JOSM plugins for 1.5 by default.

File size: 2.2 KB
Line 
1<project name="ywms" 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 <property name="ant.build.javac.target" value="1.5"/>
13
14 <target name="init">
15 <mkdir dir="${plugin.build.dir}"/>
16 </target>
17
18 <target name="compile" depends="init">
19 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
20 <include name="**/*.java" />
21 </javac>
22 </target>
23
24 <target name="dist" depends="compile">
25 <copy todir="${plugin.build.dir}/resources">
26 <fileset dir="resources"/>
27 </copy>
28 <copy todir="${plugin.build.dir}/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="${plugin.build.dir}">
40 <manifest>
41 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/>
42 <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/>
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 <target name="clean">
51 <delete dir="${plugin.build.dir}" />
52 <delete file="${plugin.jar}" />
53 </target>
54
55 <target name="install" depends="dist">
56 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
57 </target>
58
59 <target name="test" depends="install">
60 <java jar="${josm}" fork="true"/>
61 </target>
62
63</project>
Note: See TracBrowser for help on using the repository browser.