source: osm/applications/editors/josm/plugins/nearclick/build.xml@ 8751

Last change on this file since 8751 was 7287, checked in by joerg, 17 years ago

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

File size: 2.8 KB
RevLine 
[5153]1<project name="nearclick" default="dist" basedir=".">
[3789]2
[5153]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"/>
[6100]8 <property name="plugin.dist.dir" value="../../dist"/>
[5153]9 <property name="plugin.name" value="${ant.project.name}"/>
[6100]10 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
[5153]11
[5147]12 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
13 <property name="josm" location="../../core/dist/josm-custom.jar" />
14 <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
15
16 <!-- target directory to place the plugin in -->
17 <!-- Windows has a different home directory scheme then unix/linux -->
18 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
19 <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
20 <property name="plugins" location="${user.home}/Application Data/JOSM/plugins" ></property>
[3789]21
[5147]22 <!-- you should not need to modify anything below this! -->
[3789]23
[5197]24 <property name="ant.build.javac.target" value="1.5"/>
[3789]25
[5197]26
[5147]27 <target name="init">
28 <mkdir dir="build"></mkdir>
29 <mkdir dir="dist"></mkdir>
30 </target>
[3789]31
[5147]32 <target name="compile" depends="init">
[7287]33 <echo message="creating ${plugin.jar}"/>
[5147]34 <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
35 <include name="**/*.java" />
36 </javac>
37 </target>
[3789]38
[5153]39 <target name="dist" depends="compile">
[6032]40 <!-- define the version of the jar file -->
41 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
42 <env key="LANG" value="C"/>
43 <arg value="info"/>
44 <arg value="--xml"/>
45 <arg value="."/>
46 </exec>
47 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
48 <!-- delete intermediate file -->
49 <delete file="REVISION"/>
[5153]50 <jar destfile="${plugin.jar}" basedir="build">
[5147]51 <manifest>
52 <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
53 <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is usefull for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)." />
[6032]54 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
[5147]55 </manifest>
56 </jar>
57 </target>
[3789]58
[5147]59 <target name="clean">
[5153]60 <delete dir="${plugin.build.dir}" />
61 <delete file="${plugin.jar}" />
[5147]62 </target>
[5153]63
[5147]64 <target name="clean_install">
65 <delete file="${plugins}/nearclick.jar" />
66 </target>
[3789]67
[5153]68 <target name="install" depends="dist">
69 <copy file="${plugin.jar}" todir="${plugins}"/>
[5147]70 </target>
[3789]71
72</project>
Note: See TracBrowser for help on using the repository browser.