|
Last change
on this file since 5154 was 5153, checked in by joerg, 18 years ago |
|
josm/plugins/*build.xml: now we use the unique target dist for creating .jar files. Use a lot more variables to be able to move the build directory. destination directory for .jar files is now plugins/dist/*.jar. correcteed clean targets
|
|
File size:
1.3 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 |
|
|---|
| 14 | <target name="dist" depends="compile">
|
|---|
| 15 | <!-- images -->
|
|---|
| 16 | <copy todir="build/images">
|
|---|
| 17 | <fileset dir="images" />
|
|---|
| 18 | </copy>
|
|---|
| 19 |
|
|---|
| 20 | <!-- create josm-custom.jar -->
|
|---|
| 21 | <jar destfile="${plugin.jar}" basedir="build">
|
|---|
| 22 | <manifest>
|
|---|
| 23 | <attribute name="Plugin-Class" value="slippymap.SlippyMapPlugin" />
|
|---|
| 24 | <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" />
|
|---|
| 25 | </manifest>
|
|---|
| 26 | </jar>
|
|---|
| 27 | </target>
|
|---|
| 28 |
|
|---|
| 29 | <target name="compile" depends="init">
|
|---|
| 30 | <javac srcdir="slippymap" classpath="../../core/dist/josm-custom.jar" destdir="build" />
|
|---|
| 31 | </target>
|
|---|
| 32 |
|
|---|
| 33 | <target name="init">
|
|---|
| 34 | <mkdir dir="${plugin.build.dir}" />
|
|---|
| 35 | </target>
|
|---|
| 36 |
|
|---|
| 37 | <target name="clean">
|
|---|
| 38 | <delete dir="${plugin.build.dir}" />
|
|---|
| 39 | <delete file="${plugin.jar}" />
|
|---|
| 40 | </target>
|
|---|
| 41 |
|
|---|
| 42 | </project>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.