source: osm/applications/editors/josm/plugins/duplicateway/build.xml@ 12398

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

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

File size: 2.0 KB
Line 
1<project name="Duplicate-Way" 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
19 <target name="compile" depends="init">
20 <echo message="creating ${plugin.jar}"/>
21 <mkdir dir="build"></mkdir>
22 <mkdir dir="${plugin.build.dir}/images"></mkdir>
23 <copy todir="build">
24 <fileset dir="${plugin.build.dir}" casesensitive="yes">
25 <filename name="**/*.class"/>
26 </fileset>
27 </copy>
28 <copy todir="${plugin.build.dir}/images">
29 <fileset dir="images" casesensitive="yes">
30 <filename name="**/*.png"/>
31 </fileset>
32 </copy>
33 <!-- the code still uses no longer existing Segments, disable compile!
34 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
35 <include name="**/*.java" />
36 </javac>-->
37 </target>
38
39 <target name="dist" depends="compile">
40 <jar destfile="${plugin.jar}" basedir="build">
41 <manifest>
42 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" />
43 <attribute name="Plugin-Description" value="Duplicate Ways with an offset" />
44 <attribute name="Plugin-Version" value="0.1"/>
45 <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>"/>
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</project>
Note: See TracBrowser for help on using the repository browser.