| Rev | Line | |
|---|
| [5076] | 1 | <project name="utilsplugin" default="build" basedir=".">
|
|---|
| 2 | <property name="josm" location="../../core/dist/josm-custom.jar" />
|
|---|
| 3 |
|
|---|
| 4 | <target name="init">
|
|---|
| 5 | <mkdir dir="build"/>
|
|---|
| 6 | </target>
|
|---|
| 7 |
|
|---|
| 8 | <target name="compile" depends="init">
|
|---|
| 9 | <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"/>
|
|---|
| 10 | </target>
|
|---|
| 11 |
|
|---|
| 12 | <target name="build" depends="clean, compile">
|
|---|
| 13 | <copy todir="build/images">
|
|---|
| 14 | <fileset dir="images"/>
|
|---|
| 15 | </copy>
|
|---|
| 16 | <jar destfile="utilsplugin.jar" basedir="build">
|
|---|
| 17 | <manifest>
|
|---|
| 18 | <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
|
|---|
| 19 | <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
|
|---|
| 20 | <attribute name="Plugin-Version" value="0.5"/>
|
|---|
| 21 | <attribute name="Author"
|
|---|
| 22 | value="(originally) Martijn van Oosterhout >kleptog@svana.org>"/>
|
|---|
| 23 | </manifest>
|
|---|
| 24 | </jar>
|
|---|
| 25 | </target>
|
|---|
| 26 |
|
|---|
| 27 | <target name="clean">
|
|---|
| 28 | <delete dir="build" />
|
|---|
| 29 | </target>
|
|---|
| 30 |
|
|---|
| 31 | <target name="install" depends="build">
|
|---|
| 32 | <copy file="utilsplugin.jar" todir="${user.home}/.josm/plugins"/>
|
|---|
| 33 | </target>
|
|---|
| 34 | </project>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.