source: osm/applications/editors/josm/plugins/mappaint/build.xml@ 3592

Last change on this file since 3592 was 3588, checked in by ulf, 17 years ago

add a more verbose comment why and how to change settings for local development.

The install target doesn't work on Windows, as the plugins dir is different, add a setting and a commented example for (german ;-) Windows developers

File size: 1.7 KB
Line 
1<project name="mappaint" default="build" basedir=".">
2
3 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
4 <!-- <property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" /> -->
5 <property name="josm" location="../josm/josm-latest.jar" ></property>
6
7 <!-- target directory to place the plugin in -->
8 <!-- Windows has a different home directory scheme then unix/linux -->
9 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
10 <property name="plugins" location="${user.home}/.josm/plugins" ></property>
11 <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>-->
12
13 <!-- you should not need to modify anything below this! -->
14
15
16 <target name="init">
17 <mkdir dir="build"></mkdir>
18 <mkdir dir="dist"></mkdir>
19 </target>
20
21 <target name="compile" depends="init">
22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
23 <include name="**/*.java" />
24 </javac>
25 </target>
26
27 <target name="build" depends="compile">
28 <copy todir="build/standard">
29 <fileset dir="styles/standard"></fileset>
30 </copy>
31 <jar destfile="dist/mappaint.jar" basedir="build">
32 <manifest>
33 <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" />
34 <attribute name="Plugin-Description" value="An alternative render for the map with colouring, line thickness and icons.&lt;br&gt;You need an elemstyles.xml saved into ~/.josm/plugins/mappaint/" />
35 </manifest>
36 </jar>
37 </target>
38
39 <target name="clean">
40 <delete dir="build" />
41 <delete dir="dist" />
42 </target>
43
44 <target name="install" depends="build">
45 <copy file="dist/mappaint.jar" todir="${plugins}"/>
46 </target>
47
48</project>
Note: See TracBrowser for help on using the repository browser.