Last change
on this file since 5207 was 5197, checked in by gabriel, 17 years ago |
Build all JOSM plugins for 1.5 by default.
|
File size:
1.4 KB
|
Line | |
---|
1 | <project name="slippymap" default="dist" basedir=".">
|
---|
2 |
|
---|
3 |
|
---|
4 | <!-- compilation properties -->
|
---|
5 | <property name="josm.build.dir" value="../../core"/>
|
---|
6 | <property name="josm.home.dir" value="${user.home}/.josm"/>
|
---|
7 | <property name="josm" location="../../core/dist/josm-custom.jar" />
|
---|
8 | <property name="plugin.build.dir" value="build"/>
|
---|
9 | <property name="plugin.dist.dir" value="../dist"/>
|
---|
10 | <property name="plugin.name" value="${ant.project.name}"/>
|
---|
11 | <property name="plugin.jar" value="../dist/${plugin.name}.jar"/>
|
---|
12 |
|
---|
13 | <property name="ant.build.javac.target" value="1.5"/>
|
---|
14 |
|
---|
15 |
|
---|
16 | <target name="dist" depends="compile">
|
---|
17 | <!-- images -->
|
---|
18 | <copy todir="build/images">
|
---|
19 | <fileset dir="images" />
|
---|
20 | </copy>
|
---|
21 |
|
---|
22 | <!-- create josm-custom.jar -->
|
---|
23 | <jar destfile="${plugin.jar}" basedir="build">
|
---|
24 | <manifest>
|
---|
25 | <attribute name="Plugin-Class" value="slippymap.SlippyMapPlugin" />
|
---|
26 | <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" />
|
---|
27 | </manifest>
|
---|
28 | </jar>
|
---|
29 | </target>
|
---|
30 |
|
---|
31 | <target name="compile" depends="init">
|
---|
32 | <javac srcdir="slippymap" classpath="../../core/dist/josm-custom.jar" destdir="build" />
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <target name="init">
|
---|
36 | <mkdir dir="${plugin.build.dir}" />
|
---|
37 | </target>
|
---|
38 |
|
---|
39 | <target name="clean">
|
---|
40 | <delete dir="${plugin.build.dir}" />
|
---|
41 | <delete file="${plugin.jar}" />
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.