| Line | |
|---|
| 1 | <project name="surveyor" default="dist" basedir=".">
|
|---|
| 2 |
|
|---|
| 3 | <property name="josm.build.dir" value="../JOSM"/>
|
|---|
| 4 | <property name="josm.home.dir" value="${user.home}/.josm"/>
|
|---|
| 5 | <property name="plugin.build.dir" value="bin"/>
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | <target name="dist" depends="compile">
|
|---|
| 10 | <!-- images -->
|
|---|
| 11 | <copy todir="${plugin.build.dir}/images">
|
|---|
| 12 | <fileset dir="src/images" />
|
|---|
| 13 | </copy>
|
|---|
| 14 | <!-- copy configuration xml files -->
|
|---|
| 15 | <copy todir="${plugin.build.dir}">
|
|---|
| 16 | <fileset dir="src">
|
|---|
| 17 | <include name="*.xml"/>
|
|---|
| 18 | </fileset>
|
|---|
| 19 | </copy>
|
|---|
| 20 |
|
|---|
| 21 | <!-- create josm-custom.jar -->
|
|---|
| 22 | <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}">
|
|---|
| 23 | <manifest>
|
|---|
| 24 | <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
|
|---|
| 25 | <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
|
|---|
| 26 | </manifest>
|
|---|
| 27 | </jar>
|
|---|
| 28 | </target>
|
|---|
| 29 |
|
|---|
| 30 | <target name="compile" depends="init">
|
|---|
| 31 | <mkdir dir="bin"/>
|
|---|
| 32 | <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
|
|---|
| 33 | <classpath>
|
|---|
| 34 | <pathelement path="${josm.build.dir}/build"/>
|
|---|
| 35 | <fileset dir="${josm.build.dir}/lib">
|
|---|
| 36 | <include name="**/*.jar"/>
|
|---|
| 37 | </fileset>
|
|---|
| 38 | </classpath>
|
|---|
| 39 | </javac>
|
|---|
| 40 | </target>
|
|---|
| 41 |
|
|---|
| 42 | <target name="install" depends="dist">
|
|---|
| 43 | <copy file="${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
|
|---|
| 44 | </target>
|
|---|
| 45 |
|
|---|
| 46 | <target name="init">
|
|---|
| 47 | </target>
|
|---|
| 48 |
|
|---|
| 49 | <target name="clean">
|
|---|
| 50 | <delete dir="${plugin.build.dir}" />
|
|---|
| 51 | </target>
|
|---|
| 52 |
|
|---|
| 53 | </project>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.