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

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

josm/plugins/*build.xml: now we use the unique target dist for creating .jar files. Use a lot more variables to be able to move the build directory. destination directory for .jar files is now plugins/dist/*.jar. correcteed clean targets

File size: 2.1 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 <target name="init">
13 <mkdir dir="${plugin.build.dir}"/>
14 </target>
15
16 <target name="compile" depends="init">
17 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
18 <include name="**/*.java" />
19 </javac>
20 </target>
21
22 <target name="dist" depends="compile">
23 <copy todir="${plugin.build.dir}/resources">
24 <fileset dir="resources"/>
25 </copy>
26 <copy todir="${plugin.build.dir}/images">
27 <fileset dir="images"/>
28 </copy>
29 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
30 <env key="LANG" value="C"/>
31 <arg value="info"/>
32 <arg value="--xml"/>
33 <arg value="."/>
34 </exec>
35 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
36 <delete file="REVISION"/>
37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
38 <manifest>
39 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/>
40 <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/>
41 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
42 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
43 <attribute name="Author" value="Francisco R. Santos &lt;frsantos@gmail.com>"/>
44 </manifest>
45 </jar>
46 </target>
47
48 <target name="clean">
49 <delete dir="${plugin.build.dir}" />
50 <delete file="${plugin.jar}" />
51 </target>
52
53 <target name="install" depends="dist">
54 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
55 </target>
56
57 <target name="test" depends="install">
58 <java jar="${josm}" fork="true"/>
59 </target>
60
61</project>
Note: See TracBrowser for help on using the repository browser.