source: osm/utils/josm/plugins/grid/build.xml@ 1484

Last change on this file since 1484 was 1484, checked in by enxrah, 18 years ago

Add grid plugin

File size: 1.0 KB
Line 
1<project name="grid" default="build" basedir=".">
2
3 <!-- point to your JOSM directory -->
4 <property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" />
5
6
7
8 <target name="init">
9 <mkdir dir="build"></mkdir>
10 <mkdir dir="dist"></mkdir>
11 </target>
12
13 <target name="compile" depends="init">
14 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
15 <include name="**/*.java" />
16 </javac>
17 </target>
18
19 <target name="build" depends="compile">
20 <copy todir="build/images" >
21 <fileset dir="images" />
22 </copy>
23 <jar destfile="dist/grid.jar" basedir="build">
24 <manifest>
25 <attribute name="Plugin-Class" value="grid.GridPlugin" />
26 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
27 </manifest>
28 </jar>
29 </target>
30
31 <target name="clean">
32 <delete dir="build" />
33 <delete dir="dist" />
34 </target>
35
36 <target name="install" depends="build">
37 <copy file="dist/grid.jar" todir="${user.home}/.josm/plugins"/>
38 </target>
39
40</project>
Note: See TracBrowser for help on using the repository browser.