source: osm/applications/editors/josm/plugins/validator/build.xml@ 8723

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

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

File size: 2.3 KB
RevLine 
[5153]1<project name="validator" default="dist" basedir=".">
[2453]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 <!-- point to your JOSM directory -->
13 <property name="josm" location="../../core/dist/josm-custom.jar" />
[2453]14
[5197]15 <property name="ant.build.javac.target" value="1.5"/>
[5147]16
17 <target name="init">
[5153]18 <mkdir dir="${plugin.build.dir}"/>
[5147]19 </target>
[2453]20
[5147]21 <target name="compile" depends="init">
[7287]22 <echo message="creating ${plugin.jar}"/>
[5147]23 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
24 <include name="**/*.java" />
25 </javac>
26 </target>
[2453]27
[5153]28 <target name="dist" depends="clean, compile">
[5147]29 <copy todir="build/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"/>
[5153]40 <jar destfile="${plugin.jar}" basedir="build">
[5147]41 <manifest>
42 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
43 <attribute name="Plugin-Description" value="A OSM data validator"/>
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>
[2453]50
[5153]51 <!-- clean target -->
[5147]52 <target name="clean">
[5153]53 <delete dir="${plugin.build.dir}" />
54 <delete file="${plugin.jar}" />
[5147]55 </target>
[2453]56
[5153]57 <target name="install" depends="dist">
58 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
[5147]59 </target>
[2453]60
[5147]61 <target name="test" depends="install">
62 <java jar="${josm}" fork="true">
63 </java>
64 </target>
[5153]65
[2453]66</project>
Note: See TracBrowser for help on using the repository browser.