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

Last change on this file since 8665 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
RevLine 
[5153]1<project name="Lakewalker" default="dist" basedir=".">
[4061]2
[5693]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
[5153]11 <!-- compilation properties -->
12 <property name="josm.build.dir" value="../../core"/>
[5693]13 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
[5153]14 <property name="josm" location="../../core/dist/josm-custom.jar" />
15 <property name="plugin.build.dir" value="build"/>
[6100]16 <property name="plugin.dist.dir" value="../../dist"/>
[5153]17 <property name="plugin.name" value="${ant.project.name}"/>
[6100]18 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
[5153]19
[4061]20 <property name="josm" location="../../core/dist/josm-custom.jar" />
21
[5197]22 <property name="ant.build.javac.target" value="1.5"/>
23
[5153]24 <target name="init">
25 <mkdir dir="${plugin.build.dir}"/>
26 </target>
27
28 <target name="compile" depends="init">
[7287]29 <echo message="creating ${plugin.jar}"/>
[4061]30 <mkdir dir="build"></mkdir>
[6127]31 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
32 <include name="**/*.java" />
33 </javac>
[5147]34 <mkdir dir="build/images"></mkdir>
[4061]35 <copy todir="build">
[5153]36 <fileset dir="${plugin.build.dir}" casesensitive="yes">
[5147]37 <filename name="**/*.class"/>
38 </fileset>
[4061]39 </copy>
[5147]40 <copy todir="build/images">
41 <fileset dir="images" casesensitive="yes">
42 <filename name="**/*.png"/>
43 </fileset>
44 </copy>
[4061]45 </target>
46
[5153]47 <target name="dist" depends="compile">
48 <jar destfile="${plugin.jar}" basedir="build">
[4061]49 <manifest>
50 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
51 <attribute name="Plugin-Description" value="Interface to Lakewalker module" />
[6910]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"/>
[4061]55 </manifest>
56 </jar>
57 </target>
58
59 <target name="clean">
[5153]60 <delete dir="${plugin.build.dir}" />
61 <delete file="${plugin.jar}" />
[4061]62 </target>
63
[5153]64 <target name="install" depends="dist">
[5693]65 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
[5696]66 <copy todir="${josm.plugins.dir}/Lakewalker">
[5147]67 <fileset dir="Lakewalker">
[6789]68 <filename name = "*.py"/>
[5147]69 </fileset>
70 </copy>
[6789]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>
[4061]74 </target>
75
76</project>
Note: See TracBrowser for help on using the repository browser.