source: osm/applications/editors/josm/plugins/lakewalker/build.xml@ 7813

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

josm/plugins/*/build.xml: add echo to identify which compile failes

File size: 2.8 KB
Line 
1<project name="Lakewalker" default="dist" basedir=".">
2
3 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
4 <property environment="env"/>
5 <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
6 <and>
7 <os family="windows"/>
8 </and>
9 </condition>
10
11 <!-- compilation properties -->
12 <property name="josm.build.dir" value="../../core"/>
13 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
14 <property name="josm" location="../../core/dist/josm-custom.jar" />
15 <property name="plugin.build.dir" value="build"/>
16 <property name="plugin.dist.dir" value="../../dist"/>
17 <property name="plugin.name" value="${ant.project.name}"/>
18 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
19
20 <property name="josm" location="../../core/dist/josm-custom.jar" />
21
22 <property name="ant.build.javac.target" value="1.5"/>
23
24 <target name="init">
25 <mkdir dir="${plugin.build.dir}"/>
26 </target>
27
28 <target name="compile" depends="init">
29 <echo message="creating ${plugin.jar}"/>
30 <mkdir dir="build"></mkdir>
31 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
32 <include name="**/*.java" />
33 </javac>
34 <mkdir dir="build/images"></mkdir>
35 <copy todir="build">
36 <fileset dir="${plugin.build.dir}" casesensitive="yes">
37 <filename name="**/*.class"/>
38 </fileset>
39 </copy>
40 <copy todir="build/images">
41 <fileset dir="images" casesensitive="yes">
42 <filename name="**/*.png"/>
43 </fileset>
44 </copy>
45 </target>
46
47 <target name="dist" depends="compile">
48 <jar destfile="${plugin.jar}" basedir="build">
49 <manifest>
50 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
51 <attribute name="Plugin-Description" value="Interface to Lakewalker module" />
52 <attribute name="Plugin-Version" value="0.2"/>
53 <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>, Jason Reid &lt;jrreid@ucalgary.ca>"/>
54 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
55 </manifest>
56 </jar>
57 </target>
58
59 <target name="clean">
60 <delete dir="${plugin.build.dir}" />
61 <delete file="${plugin.jar}" />
62 </target>
63
64 <target name="install" depends="dist">
65 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
66 <copy todir="${josm.plugins.dir}/Lakewalker">
67 <fileset dir="Lakewalker">
68 <filename name = "*.py"/>
69 </fileset>
70 </copy>
71 <mkdir dir="${josm.plugins.dir}/Lakewalker/IR1"></mkdir>
72 <mkdir dir="${josm.plugins.dir}/Lakewalker/IR2"></mkdir>
73 <mkdir dir="${josm.plugins.dir}/Lakewalker/IR3"></mkdir>
74 </target>
75
76</project>
Note: See TracBrowser for help on using the repository browser.