source: subversion/applications/editors/josm/plugins/remotecontrol/build.xml @ 10111

Last change on this file since 10111 was 9417, checked in by frederik, 12 years ago

very early first version of RemoteControl? plugin for JOSM, allowing other applications to send commands to JOSM

File size: 2.2 KB
Line 
1<project name="remotecontrol" 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}/images">
27      <fileset dir="images"/>
28    </copy>
29    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
30      <env key="LANG" value="C"/>
31      <arg value="info"/>
32      <arg value="--xml"/>
33      <arg value="."/>
34    </exec>
35    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
36    <delete file="REVISION"/>
37    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
38      <manifest>
39        <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin"/>
40        <attribute name="Plugin-Description" value="A plugin allowing other applications to send commands to JOSM." />
41        <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
42        <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
43        <attribute name="Author" value="Frederik Ramm &lt;frederik@remote.org&gt;"/>
44      </manifest>
45    </jar>
46  </target>
47
48  <target name="clean">
49    <delete dir="${plugin.build.dir}" />
50    <delete file="${plugin.jar}" />
51  </target>
52 
53  <target name="install" depends="dist">
54    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
55  </target>
56
57  <target name="test" depends="install">
58    <java jar="${josm}" fork="true"/>
59  </target>
60
61</project>
Note: See TracBrowser for help on using the repository browser.