Last change
on this file since 5017 was 5017, checked in by joerg, 18 years ago |
josm/plugins: add clean target to some plugins, reactivate compiling plugins
|
File size:
1.3 KB
|
Line | |
---|
1 | <project name="grid" default="build" 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="plugin.build.dir" value="bin"/>
|
---|
7 | <property name="plugin.name" value="${ant.project.name}"/>
|
---|
8 | <property name="plugin.jar" value="${plugin.name}.jar"/>
|
---|
9 |
|
---|
10 | <!-- point to your JOSM directory -->
|
---|
11 | <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" />
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | <target name="init">
|
---|
16 | <mkdir dir="build"></mkdir>
|
---|
17 | <mkdir dir="dist"></mkdir>
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="compile" depends="init">
|
---|
21 | <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
|
---|
22 | <include name="**/*.java" />
|
---|
23 | </javac>
|
---|
24 | </target>
|
---|
25 |
|
---|
26 | <target name="build" depends="compile">
|
---|
27 | <copy todir="build/images" >
|
---|
28 | <fileset dir="images" />
|
---|
29 | </copy>
|
---|
30 | <jar destfile="${plugin.jar}" basedir="build">
|
---|
31 | <manifest>
|
---|
32 | <attribute name="Plugin-Class" value="grid.GridPlugin" />
|
---|
33 | <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
|
---|
34 | </manifest>
|
---|
35 | </jar>
|
---|
36 | </target>
|
---|
37 |
|
---|
38 | <target name="clean">
|
---|
39 | <delete dir="build" />
|
---|
40 | <delete dir="dist" />
|
---|
41 | <delete dir="${plugin.jar}" />
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="install" depends="build">
|
---|
45 | <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 |
|
---|
49 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.