[5153] | 1 | <project name="Duplicate-Way" default="dist" basedir=".">
|
---|
[4245] | 2 |
|
---|
[5153] | 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"/>
|
---|
[6100] | 8 | <property name="plugin.dist.dir" value="../../dist"/>
|
---|
[5153] | 9 | <property name="plugin.name" value="${ant.project.name}"/>
|
---|
[6100] | 10 | <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
|
---|
[5197] | 11 |
|
---|
| 12 | <property name="ant.build.javac.target" value="1.5"/>
|
---|
[5153] | 13 |
|
---|
| 14 | <target name="init">
|
---|
| 15 | <mkdir dir="${plugin.build.dir}"/>
|
---|
| 16 | </target>
|
---|
[4245] | 17 |
|
---|
[5153] | 18 |
|
---|
| 19 | <target name="compile" depends="init">
|
---|
[7287] | 20 | <echo message="creating ${plugin.jar}"/>
|
---|
[4245] | 21 | <mkdir dir="build"></mkdir>
|
---|
[5153] | 22 | <mkdir dir="${plugin.build.dir}/images"></mkdir>
|
---|
[4245] | 23 | <copy todir="build">
|
---|
[5153] | 24 | <fileset dir="${plugin.build.dir}" casesensitive="yes">
|
---|
[5147] | 25 | <filename name="**/*.class"/>
|
---|
| 26 | </fileset>
|
---|
[4245] | 27 | </copy>
|
---|
[5153] | 28 | <copy todir="${plugin.build.dir}/images">
|
---|
[5147] | 29 | <fileset dir="images" casesensitive="yes">
|
---|
| 30 | <filename name="**/*.png"/>
|
---|
| 31 | </fileset>
|
---|
| 32 | </copy>
|
---|
[5435] | 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>-->
|
---|
[4245] | 37 | </target>
|
---|
| 38 |
|
---|
[5153] | 39 | <target name="dist" depends="compile">
|
---|
| 40 | <jar destfile="${plugin.jar}" basedir="build">
|
---|
[4245] | 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 <b.easton@uws.edu.au>"/>
|
---|
| 46 | </manifest>
|
---|
| 47 | </jar>
|
---|
| 48 | </target>
|
---|
| 49 |
|
---|
| 50 | <target name="clean">
|
---|
[5153] | 51 | <delete dir="${plugin.build.dir}" />
|
---|
| 52 | <delete file="${plugin.jar}" />
|
---|
[4245] | 53 | </target>
|
---|
| 54 |
|
---|
[5153] | 55 | <target name="install" depends="dist">
|
---|
| 56 | <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
|
---|
[4245] | 57 | </target>
|
---|
| 58 |
|
---|
| 59 | </project>
|
---|