Changeset 12022 in osm for applications/editors
- Timestamp:
- 2008-11-21T17:45:22+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r11949 r12022 1 <project name="DirectUpload" default=" build" basedir=".">1 <project name="DirectUpload" default="dist" basedir="."> 2 2 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../dist/josm-custom.jar" /> 5 <!-- <property name="josm" location="/home/subhodip/josm-latest.jar"/> --> 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"/> 6 10 7 <path id="classpath"> 8 <fileset file="${josm}"/> 9 </path> 11 <!-- point to your JOSM directory --> 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> 10 13 11 <targetname="init">12 <mkdir dir="build"></mkdir> 13 <mkdir dir="dist"></mkdir>14 </target>15 14 <property name="ant.build.javac.target" value="1.5"/> 15 16 <target name="init"> 17 <mkdir dir="${plugin.build.dir}"/> 18 </target> 16 19 17 <target name="compile" depends="init"> 18 <javac srcdir="src" classpathref="classpath" debug="true" destdir="build" target="1.5"> 19 <include name="**/*.java" /> 20 </javac> 21 </target> 22 <target name="build" depends="compile"> 23 <copy todir="build/images"> 24 <fileset dir ="images"/> 25 </copy> 26 <!--</target> --> 27 28 <!--<target name="build" depends="compile"> --> 29 <jar destfile="dist/DirectUpload.jar" basedir="build"> 30 <manifest> 31 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" /> 32 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" /> 33 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 34 <attribute name="Plugin-Version" value="0.1" /> 35 </manifest> 36 </jar> 37 </target> 38 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> 39 26 40 <target name="clean">41 <delete dir="build" />42 <delete dir="dist" />43 </target>44 27 45 <target name="install" depends="build"> 46 <copy file="dist/DirectUpload.jar" todir="${user.home}/.josm/plugins"/> 47 </target> 28 <target name="dist" depends="clean, compile"> 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"/> 40 <jar destfile="${plugin.jar}" basedir="build"> 41 <manifest> 42 43 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" /> 44 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" /> 45 <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" /> 46 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 47 <attribute name="Plugin-Mainversion" value="1"/> 48 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 49 </manifest> 50 </jar> 51 </target> 52 53 <!-- clean target --> 54 <target name="clean"> 55 <delete dir="${plugin.build.dir}" /> 56 <delete file="${plugin.jar}" /> 57 </target> 58 59 <target name="install" depends="dist"> 60 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 61 </target> 62 63 <target name="test" depends="install"> 64 <java jar="${josm}" fork="true"> 65 </java> 66 </target> 48 67 49 68 </project> -
applications/editors/josm/plugins/build.xml
r11554 r12022 17 17 <ant dir="colorscheme" antfile="build.xml" target="dist"/> 18 18 <ant dir="duplicateway" antfile="build.xml" target="dist"/> 19 <ant dir="DirectUpload" antfile="build.xml" target="dist"/> 19 20 <ant dir="globalsat" antfile="build.xml" target="dist"/> 20 21 <ant dir="lakewalker" antfile="build.xml" target="dist"/>
Note:
See TracChangeset
for help on using the changeset viewer.