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

Last change on this file since 14026 was 12780, checked in by stoecker, 16 years ago

removed tab stop usage

File size: 2.2 KB
Line 
1<project name="Duplicate-Way" default="dist" basedir=".">
2<!-- compilation properties -->
3 <property name="josm.build.dir" value="../../core"/>
4 <property name="josm.home.dir" value="${user.home}/.josm"/>
5 <property name="josm" location="../../core/dist/josm-custom.jar" />
6 <property name="plugin.build.dir" value="build"/>
7 <property name="plugin.dist.dir" value="../../dist"/>
8 <property name="plugin.name" value="${ant.project.name}"/>
9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
10 <property name="ant.build.javac.target" value="1.5"/>
11 <target name="init">
12 <mkdir dir="${plugin.build.dir}"/>
13 </target>
14 <target name="compile" depends="init">
15 <echo message="creating ${plugin.jar}"/>
16 <mkdir dir="build"></mkdir>
17 <mkdir dir="${plugin.build.dir}/images"></mkdir>
18 <copy todir="build">
19 <fileset dir="${plugin.build.dir}" casesensitive="yes">
20 <filename name="**/*.class"/>
21 </fileset>
22 </copy>
23 <copy todir="${plugin.build.dir}/images">
24 <fileset dir="images" casesensitive="yes">
25 <filename name="**/*.png"/>
26 </fileset>
27 </copy>
28 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
29 <include name="**/*.java" />
30 </javac>
31 </target>
32 <target name="dist" depends="compile">
33 <jar destfile="${plugin.jar}" basedir="build">
34 <manifest>
35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" />
36 <attribute name="Plugin-Description" value="Duplicate Ways with an offset" />
37 <attribute name="Plugin-Version" value="0.1"/>
38 <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>"/>
39 </manifest>
40 </jar>
41 </target>
42 <target name="clean">
43 <delete dir="${plugin.build.dir}" />
44 <delete file="${plugin.jar}" />
45 </target>
46 <target name="install" depends="dist">
47 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
48 </target>
49</project>
Note: See TracBrowser for help on using the repository browser.