Changeset 12780 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-01-01T18:55:45+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/build.xml
r12777 r12780 1 1 <project name="validator" 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="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../../dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 10 11 <!-- point to your JOSM directory --> 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> 13 14 <property name="ant.build.javac.target" value="1.5"/> 15 16 <target name="init"> 17 <mkdir dir="${plugin.build.dir}"/> 18 </target> 19 20 <target name="compile" depends="init"> 21 <echo message="creating ${plugin.jar}"/> 22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8"> 23 <include name="**/*.java" /> 24 </javac> 25 </target> 26 27 <target name="dist" depends="clean, compile"> 28 <copy todir="build/images"> 29 <fileset dir="images"/> 30 </copy> 31 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 32 <env key="LANG" value="C"/> 33 <arg value="info"/> 34 <arg value="--xml"/> 35 <arg value="."/> 36 </exec> 37 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 38 <delete file="REVISION"/> 39 <jar destfile="${plugin.jar}" basedir="build"> 40 <manifest> 41 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/> 42 <attribute name="Plugin-Description" value="A OSM data validator"/> 43 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 44 <attribute name="Plugin-Mainversion" value="1200"/> 45 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 46 <attribute name="Author" value="Francisco R. Santos"/> 47 </manifest> 48 </jar> 49 </target> 50 51 <!-- clean target --> 52 <target name="clean"> 53 <delete dir="${plugin.build.dir}" /> 54 <delete file="${plugin.jar}" /> 55 </target> 56 57 <target name="install" depends="dist"> 58 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 59 </target> 60 61 <target name="test" depends="install"> 62 <java jar="${josm}" fork="true"> 63 </java> 64 </target> 65 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="plugin.build.dir" value="build"/> 6 <property name="plugin.dist.dir" value="../../dist"/> 7 <property name="plugin.name" value="${ant.project.name}"/> 8 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 9 <!-- point to your JOSM directory --> 10 <property name="josm" location="../../core/dist/josm-custom.jar" /> 11 <property name="ant.build.javac.target" value="1.5"/> 12 <target name="init"> 13 <mkdir dir="${plugin.build.dir}"/> 14 </target> 15 <target name="compile" depends="init"> 16 <echo message="creating ${plugin.jar}"/> 17 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8"> 18 <include name="**/*.java" /> 19 </javac> 20 </target> 21 <target name="dist" depends="clean, compile"> 22 <copy todir="build/images"> 23 <fileset dir="images"/> 24 </copy> 25 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 26 <env key="LANG" value="C"/> 27 <arg value="info"/> 28 <arg value="--xml"/> 29 <arg value="."/> 30 </exec> 31 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 32 <delete file="REVISION"/> 33 <jar destfile="${plugin.jar}" basedir="build"> 34 <manifest> 35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/> 36 <attribute name="Plugin-Description" value="A OSM data validator"/> 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 <attribute name="Plugin-Mainversion" value="1200"/> 39 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 40 <attribute name="Author" value="Francisco R. Santos"/> 41 </manifest> 42 </jar> 43 </target> 44 <!-- clean target --> 45 <target name="clean"> 46 <delete dir="${plugin.build.dir}" /> 47 <delete file="${plugin.jar}" /> 48 </target> 49 <target name="install" depends="dist"> 50 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 51 </target> 52 <target name="test" depends="install"> 53 <java jar="${josm}" fork="true"></java> 54 </target> 66 55 </project>
Note:
See TracChangeset
for help on using the changeset viewer.