Last change
on this file since 5179 was 5153, checked in by joerg, 17 years ago |
josm/plugins/*build.xml: now we use the unique target dist for creating .jar files. Use a lot more variables to be able to move the build directory. destination directory for .jar files is now plugins/dist/*.jar. correcteed clean targets
|
File size:
1.4 KB
|
Line | |
---|
1 | <project name="utilsplugin" default="dist" basedir=".">
|
---|
2 |
|
---|
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"/>
|
---|
8 | <property name="plugin.dist.dir" value="../dist"/>
|
---|
9 | <property name="plugin.name" value="${ant.project.name}"/>
|
---|
10 | <property name="plugin.jar" value="../dist/${plugin.name}.jar"/>
|
---|
11 |
|
---|
12 | <target name="init">
|
---|
13 | <mkdir dir="build"/>
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <target name="compile" depends="init">
|
---|
17 | <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"/>
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="dist" depends="clean, compile">
|
---|
21 | <copy todir="build/images">
|
---|
22 | <fileset dir="images"/>
|
---|
23 | </copy>
|
---|
24 | <jar destfile="${plugin.jar}" basedir="build">
|
---|
25 | <manifest>
|
---|
26 | <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
|
---|
27 | <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
|
---|
28 | <attribute name="Plugin-Version" value="0.5"/>
|
---|
29 | <attribute name="Author"
|
---|
30 | value="(originally) Martijn van Oosterhout >kleptog@svana.org>"/>
|
---|
31 | </manifest>
|
---|
32 | </jar>
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <target name="clean">
|
---|
36 | <delete dir="${plugin.build.dir}" />
|
---|
37 | <delete file="${plugin.jar}" />
|
---|
38 | </target>
|
---|
39 |
|
---|
40 | <target name="install" depends="dist">
|
---|
41 | <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
|
---|
42 | </target>
|
---|
43 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.