source: osm/applications/editors/josm/plugins/grid/build.xml@ 6166

Last change on this file since 6166 was 6100, checked in by joerg, 17 years ago

josm: move plugins/dist directory one level up

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