Last change
on this file since 2283 was 2121, checked in by frederik, 18 years ago |
initial commit to SVN
|
-
Property svn:executable
set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | <project name="wmsplugin" default="build" basedir=".">
|
---|
2 |
|
---|
3 | <!-- point to your JOSM directory -->
|
---|
4 | <property name="josm" location="C:\Documents and Settings\tim\java\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/wmsplugin.jar" basedir="build">
|
---|
24 | <manifest>
|
---|
25 | <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
|
---|
26 | <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed,<br> i.e from Metacarta's Map Rectifier, Landsat, NPE.<br>
|
---|
27 | Change url via menu item, or wmsplugin.url in advanced prefs. v2.1" />
|
---|
28 | </manifest>
|
---|
29 | </jar>
|
---|
30 | </target>
|
---|
31 |
|
---|
32 | <target name="clean">
|
---|
33 | <delete dir="build" />
|
---|
34 | <delete dir="dist" />
|
---|
35 | </target>
|
---|
36 |
|
---|
37 | <target name="install" depends="build">
|
---|
38 | <copy file="dist/wmsplugin.jar" todir="${user.home}/.josm/plugins"/>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.