Changeset 3410 in osm
- Timestamp:
- 2007-06-29T18:40:54+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/build.xml
r3352 r3410 1 1 <project name="livegps" default="dist" basedir="."> 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../JOSM"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="plugin.build.dir" value="build"/> 6 <property name="plugin.name" value="${ant.project.name}"/> 7 <property name="plugin.jar" value="${plugin.name}.jar"/> 8 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/> 9 10 <!-- plugin meta data (enter new version number if anything changed!) --> 11 <property name="plugin.version" value="1.0.1"/> 12 <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/> 13 <property name="plugin.stage" value="50"/> 14 <property name="plugin.class" value="livegps.LiveGpsPlugin"/> 15 16 <!-- update site meta data --> 17 <property name="plugin.site.file" value="josm-site.xml"/> 18 <property name="plugin.site.description" value="Josm's LiveGps Update Site"/> 19 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/> 20 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/> 21 2 22 3 <property name="josm.build.dir" value="../JOSM"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="plugin.build.dir" value="build"/> 6 7 8 9 <target name="dist" depends="compile"> 23 <target name="dist" depends="compile,site"> 10 24 <!-- images --> 11 25 <copy todir="${plugin.build.dir}/images"> 12 26 <fileset dir="images" /> 13 27 </copy> 14 <!-- copy configuration xml files --> 15 <!-- 16 <copy todir="${plugin.build.dir}"> 17 <fileset dir="src"> 18 <include name="*.xml"/> 19 </fileset> 20 </copy> 21 --> 22 23 <!-- create plugin jar --> 24 <jar destfile="${ant.project.name}.jar" basedir="${plugin.build.dir}"> 28 29 <!-- create jar file --> 30 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 25 31 <manifest> 26 <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin" /> 27 <attribute name="Plugin-Description" value="Allow live GPS feed from a gpsd server" /> 28 <attribute name="Plugin-Version" value="1.0" /> 29 <attribute name="Plugin-Stage" value="50" /> 32 <attribute name="Plugin-Class" value="${plugin.class}" /> 33 <attribute name="Plugin-Description" value="${plugin.description}" /> 34 <attribute name="Plugin-Version" value="${plugin.version}" /> 35 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 36 <attribute name="Plugin-Stage" value="${plugin.stage}" /> 30 37 </manifest> 31 38 </jar> … … 40 47 <include name="**/*.jar"/> 41 48 </fileset> 49 <pathelement location="${livegpsplugin.jar}"/> 42 50 </classpath> 43 51 </javac> … … 45 53 46 54 <target name="install" depends="dist"> 47 <copy file="${ ant.project.name}.jar" todir="${josm.home.dir}/plugins" />55 <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" /> 48 56 </target> 49 57 50 58 <target name="init"> 51 <mkdir dir="${plugin.build.dir}" />52 </target>59 <echo>java version: ${java.version}</echo> 60 </target> 53 61 54 62 <target name="clean"> 55 63 <delete dir="${plugin.build.dir}" /> 64 <delete dir="${plugin.site.file}" /> 65 <delete dir="${plugin.jar}" /> 66 </target> 67 68 <!-- write site description for the given plugin --> 69 <target name="site"> 70 <echo message="creating site description in ${plugin.site.file}"/> 71 <echo file="${plugin.site.file}"><?xml version="1.0"?> 72 <site version="1.0"> 73 <!-- meta data of site --> 74 <site-info> 75 <site-name>${plugin.site.description}</site-name> 76 <site-url>${plugin.site.url}</site-url> 77 </site-info> 78 79 <!-- plugins available on this site --> 80 <plugins> 81 <plugin id="${ant.project.name}" version="${plugin.version}"> 82 <name>${ant.project.name}</name> 83 <description>${plugin.description}</description> 84 <resources> 85 <resource src="${plugin.site.url}/${plugin.jar}" 86 target="$${josm.user.dir}/plugins/${plugin.jar}"/> 87 </resources> 88 </plugin> 89 </plugins> 90 </site> 91 </echo> 92 </target> 93 94 <!-- upload the site description and the jar file via ssh --> 95 <target name="upload" depends="dist,site"> 96 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 97 <exec executable="scp"> 98 <arg value="${plugin.jar}"/> 99 <arg value="${plugin.site.file}"/> 100 <arg value="${plugin.site.upload.target}"/> 101 </exec> 56 102 </target> 57 103
Note:
See TracChangeset
for help on using the changeset viewer.