Changeset 12780 in osm for applications/editors/josm/plugins/DirectUpload/build.xml
- Timestamp:
- 2009-01-01T18:55:45+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r12588 r12780 1 1 <project name="DirectUpload" 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 <compilerarg value="-Xlint:deprecation"/> 24 <include name="**/*.java" /> 25 </javac> 26 </target> 27 28 29 <target name="dist" depends="clean, compile"> 30 <copy todir="build/images"> 31 <fileset dir="images"/> 32 </copy> 33 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 34 <env key="LANG" value="C"/> 35 <arg value="info"/> 36 <arg value="--xml"/> 37 <arg value="."/> 38 </exec> 39 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 40 <delete file="REVISION"/> 41 <jar destfile="${plugin.jar}" basedir="build"> 42 <manifest> 43 44 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" /> 45 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" /> 46 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 47 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 48 <attribute name="Plugin-Mainversion" value="1180"/> 49 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 50 </manifest> 51 </jar> 52 </target> 53 54 <!-- clean target --> 55 <target name="clean"> 56 <delete dir="${plugin.build.dir}" /> 57 <delete file="${plugin.jar}" /> 58 </target> 59 60 <target name="install" depends="dist"> 61 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 62 </target> 63 64 <target name="test" depends="install"> 65 <java jar="${josm}" fork="true"> 66 </java> 67 </target> 68 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 <compilerarg value="-Xlint:deprecation"/> 19 <include name="**/*.java" /> 20 </javac> 21 </target> 22 <target name="dist" depends="clean, compile"> 23 <copy todir="build/images"> 24 <fileset dir="images"/> 25 </copy> 26 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 27 <env key="LANG" value="C"/> 28 <arg value="info"/> 29 <arg value="--xml"/> 30 <arg value="."/> 31 </exec> 32 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 33 <delete file="REVISION"/> 34 <jar destfile="${plugin.jar}" basedir="build"> 35 <manifest> 36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" /> 37 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" /> 38 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 39 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 40 <attribute name="Plugin-Mainversion" value="1180"/> 41 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 42 </manifest> 43 </jar> 44 </target> 45 <!-- clean target --> 46 <target name="clean"> 47 <delete dir="${plugin.build.dir}" /> 48 <delete file="${plugin.jar}" /> 49 </target> 50 <target name="install" depends="dist"> 51 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 52 </target> 53 <target name="test" depends="install"> 54 <java jar="${josm}" fork="true"></java> 55 </target> 69 56 </project>
Note:
See TracChangeset
for help on using the changeset viewer.