source: subversion/applications/editors/josm/plugins/grid/build.xml @ 12093

Last change on this file since 12093 was 7287, checked in by joerg, 12 years ago

josm/plugins/*/build.xml: add echo to identify which compile failes

File size: 1.6 KB
Line 
1<project name="grid" default="dist" basedir=".">
2
3  <!-- compilation properties -->
4  <property name="josm.build.dir"       value="../../core"/>
5  <property name="josm.home.dir"        value="${user.home}/.josm"/>
6  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
7  <property name="plugin.build.dir"     value="build"/>
8  <property name="plugin.dist.dir"      value="../../dist"/>
9  <property name="plugin.name"          value="${ant.project.name}"/>
10  <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
11 
12 
13  <!-- point to your JOSM directory -->
14  <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" />
15
16  <property name="ant.build.javac.target" value="1.5"/>
17
18  <target name="init">
19    <mkdir dir="build"></mkdir>
20    <mkdir dir="dist"></mkdir>
21  </target>
22
23  <target name="compile" depends="init">
24    <echo message="creating ${plugin.jar}"/>
25    <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
26      <include name="**/*.java" />
27    </javac>
28  </target>
29
30  <target name="dist" depends="compile">
31    <copy todir="build/images" >
32      <fileset dir="images" />
33    </copy>
34    <jar destfile="${plugin.jar}" basedir="build">
35      <manifest>
36        <attribute name="Plugin-Class" value="grid.GridPlugin" />
37        <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
38      </manifest>
39    </jar>
40  </target>
41
42  <target name="clean">
43    <delete dir="${plugin.build.dir}" />
44    <delete file="${plugin.jar}" />
45  </target>
46
47  <target name="install" depends="dist">
48    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
49  </target>
50
51
52</project>
Note: See TracBrowser for help on using the repository browser.