Last change
on this file since 3744 was 3579, checked in by frsantos, 17 years ago |
Fix JOSM jar location
Add plugin version
|
File size:
1.5 KB
|
Line | |
---|
1 | <project name="ywms" default="build" basedir=".">
|
---|
2 |
|
---|
3 | <!-- point to your JOSM directory -->
|
---|
4 | <property name="josm" location="../../core/dist/josm-custom.jar" />
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 | <target name="init">
|
---|
9 | <mkdir dir="build"/>
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <target name="compile" depends="init">
|
---|
13 | <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
|
---|
14 | <include name="**/*.java" />
|
---|
15 | </javac>
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <target name="build" depends="compile">
|
---|
19 | <copy todir="build/resources">
|
---|
20 | <fileset dir="resources"/>
|
---|
21 | </copy>
|
---|
22 | <copy todir="build/images">
|
---|
23 | <fileset dir="images"/>
|
---|
24 | </copy>
|
---|
25 | <exec append="false" output="build/resources/REVISION" executable="svn" failifexecutionfails="false">
|
---|
26 | <env key="LANG" value="C"/>
|
---|
27 | <arg value="info"/>
|
---|
28 | <arg value="."/>
|
---|
29 | </exec>
|
---|
30 | <property file="build/resources/REVISION" />
|
---|
31 | <jar destfile="ywms.jar" basedir="build">
|
---|
32 | <manifest>
|
---|
33 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/>
|
---|
34 | <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/>
|
---|
35 | <attribute name="Plugin-Version" value="${Revision}"/>
|
---|
36 | <attribute name="Author" value="Francisco R. Santos <frsantos@gmail.com>"/>
|
---|
37 | </manifest>
|
---|
38 | </jar>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | <target name="clean">
|
---|
42 | <delete dir="build" />
|
---|
43 | </target>
|
---|
44 |
|
---|
45 | <target name="install" depends="build">
|
---|
46 | <copy file="ywms.jar" todir="${user.home}/.josm/plugins"/>
|
---|
47 | </target>
|
---|
48 |
|
---|
49 | <target name="test" depends="install">
|
---|
50 | <java jar="${josm}" fork="true"/>
|
---|
51 | </target>
|
---|
52 |
|
---|
53 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.