source: subversion/applications/editors/josm/plugins/ywms/build.xml @ 8952

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

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

File size: 2.3 KB
Line 
1<project name="ywms" 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  <property name="ant.build.javac.target" value="1.5"/>
13 
14  <target name="init">
15    <mkdir dir="${plugin.build.dir}"/>
16  </target>
17
18  <target name="compile" depends="init">
19    <echo message="creating ${plugin.jar}"/>
20    <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
21      <include name="**/*.java" />
22    </javac>
23  </target>
24
25  <target name="dist" depends="compile">
26    <copy todir="${plugin.build.dir}/resources">
27      <fileset dir="resources"/>
28    </copy>
29    <copy todir="${plugin.build.dir}/images">
30      <fileset dir="images"/>
31    </copy>
32    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
33      <env key="LANG" value="C"/>
34      <arg value="info"/>
35      <arg value="--xml"/>
36      <arg value="."/>
37    </exec>
38    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
39    <delete file="REVISION"/>
40    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
41      <manifest>
42        <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/>
43        <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/>
44        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
45        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
46        <attribute name="Author" value="Francisco R. Santos &lt;frsantos@gmail.com>"/>
47      </manifest>
48    </jar>
49  </target>
50
51  <target name="clean">
52    <delete dir="${plugin.build.dir}" />
53    <delete file="${plugin.jar}" />
54  </target>
55 
56  <target name="install" depends="dist">
57    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
58  </target>
59
60  <target name="test" depends="install">
61    <java jar="${josm}" fork="true"/>
62  </target>
63
64</project>
Note: See TracBrowser for help on using the repository browser.