source: subversion/applications/editors/josm/plugins/terracer/build.xml @ 13553

Last change on this file since 13553 was 13553, checked in by zere, 11 years ago

Initial commit of the Terracer JOSM plugin.

File size: 1.8 KB
Line 
1<project name="terracer" 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<!-- point to your JOSM directory -->
11    <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" />
12    <property name="ant.build.javac.target" value="1.5"/>
13    <target name="init">
14        <mkdir dir="build"></mkdir>
15        <mkdir dir="dist"></mkdir>
16    </target>
17    <target name="compile" depends="init">
18        <echo message="creating ${plugin.jar}"/>
19        <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
20            <include name="**/*.java" />
21        </javac>
22    </target>
23    <target name="dist" depends="compile">
24        <copy todir="build/images" >
25            <fileset dir="images" />
26        </copy>
27        <jar destfile="${plugin.jar}" basedir="build">
28            <manifest>
29                <attribute name="Plugin-Class" value="terracer.TerracerPlugin" />
30                <attribute name="Plugin-Description" value="Easy creation of individual terraced houses." />
31            </manifest>
32        </jar>
33    </target>
34    <target name="clean">
35        <delete dir="${plugin.build.dir}" />
36        <delete file="${plugin.jar}" />
37    </target>
38    <target name="install" depends="dist">
39        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
40    </target>
41</project>
Note: See TracBrowser for help on using the repository browser.