Changeset 14003 in osm for applications/editors/josm/plugins/livegps
- Timestamp:
- 2009-03-08T12:02:49+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/livegps
- Files:
-
- 1 edited
- 1 moved
-
build.xml (modified) (2 diffs)
-
src (moved) (moved from applications/editors/josm/plugins/livegps/livegps )
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/build.xml
r12780 r14003 1 1 <project name="livegps" default="dist" basedir="."> 2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) --> 3 <property environment="env"/> 4 <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm"> 5 <and> 6 <os family="windows"/> 7 </and> 8 </condition> 9 <!-- compilation properties --> 10 <!--<property name="josm.build.dir" value="../../JOSM/"/> --> 11 <property name="josm.build.dir" value="../../core/"/> 12 <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/> 13 <property name="josm" location="../../core/dist/josm-custom.jar" /> 14 <property name="plugin.build.dir" value="build"/> 15 <property name="plugin.dist.dir" value="../../dist"/> 16 <property name="plugin.name" value="${ant.project.name}"/> 17 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 18 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 19 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/> 20 <!-- plugin meta data (enter new version number if anything changed!) --> 21 <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/> 22 <property name="plugin.stage" value="50"/> 23 <property name="plugin.class" value="livegps.LiveGpsPlugin"/> 24 <!-- update site meta data --> 25 <property name="plugin.site.file" value="josm-site.xml"/> 26 <property name="plugin.site.description" value="Josm's LiveGps Update Site"/> 27 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/> 28 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 29 6 <property name="ant.build.javac.target" value="1.5"/> 30 7 <target name="init"> 31 8 <mkdir dir="${plugin.build.dir}"/> 32 9 </target> 33 <target name="dist" depends="compile"> 34 <!-- images --> 10 <target name="compile" depends="init"> 11 <echo message="creating ${plugin.jar}"/> 12 <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 15 </javac> 16 </target> 17 <target name="dist" depends="compile,revision"> 35 18 <copy todir="${plugin.build.dir}/images"> 36 <fileset dir="images" />19 <fileset dir="images"/> 37 20 </copy> 21 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 22 <manifest> 23 <attribute name="Author" value="Frederik Ramm"/> 24 <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin"/> 25 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 26 <attribute name="Plugin-Description" value="Support live GPS input (moving dot) through a connection to gpsd server."/> 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LiveGPS"/> 28 <attribute name="Plugin-Mainversion" value="1465"/> 29 <attribute name="Plugin-Stage" value="50"/> 30 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 31 </manifest> 32 </jar> 33 </target> 34 <target name="revision"> 38 35 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 39 36 <env key="LANG" value="C"/> … … 44 41 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 45 42 <delete file="REVISION"/> 46 <!-- create jar file -->47 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">48 <manifest>49 <attribute name="Plugin-Class" value="${plugin.class}" />50 <attribute name="Plugin-Description" value="${plugin.description}" />51 <attribute name="Plugin-Mainversion" value="1180" />52 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>53 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>54 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /-->55 <attribute name="Plugin-Stage" value="${plugin.stage}" />56 </manifest>57 </jar>58 43 </target> 59 <target name="compile" depends="init"> 60 <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 61 <compilerarg value="-Xlint:deprecation"/> 62 <classpath> 63 <pathelement path="${josm.build.dir}/build"/> 64 <fileset dir="${josm.build.dir}/lib"> 65 <include name="../core/build/josm.jar"/> 66 <include name="**/*.jar"/> 67 </fileset> 68 <pathelement location="${plugin.jar}"/> 69 </classpath> 70 </javac> 44 <target name="clean"> 45 <delete dir="${plugin.build.dir}"/> 46 <delete file="${plugin.jar}"/> 71 47 </target> 72 48 <target name="install" depends="dist"> 49 <property environment="env"/> 50 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 51 <and> 52 <os family="windows"/> 53 </and> 54 </condition> 73 55 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 74 <copy file="liveGPS.conf" todir="${josm.plugins.dir}/livegps/" />75 </target>76 <target name="clean">77 <delete dir="${plugin.build.dir}" />78 <delete file="${plugin.jar}" />79 56 </target> 80 57 </project>
Note:
See TracChangeset
for help on using the changeset viewer.
