Changeset 11936 in osm for applications/editors/josm/plugins/livegps
- Timestamp:
- 2008-11-15T13:35:07+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/livegps/build.xml
r11934 r11936 23 23 24 24 <!-- plugin meta data (enter new version number if anything changed!) --> 25 <property name="plugin.version" value="1.4"/>26 25 <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/> 27 26 <property name="plugin.stage" value="50"/> … … 36 35 <property name="ant.build.javac.target" value="1.5"/> 37 36 38 <target name="dist" depends="compile,site"> 37 <target name="init"> 38 <mkdir dir="${plugin.build.dir}"/> 39 </target> 40 41 <target name="dist" depends="compile"> 39 42 <!-- images --> 40 43 <copy todir="${plugin.build.dir}/images"> 41 44 <fileset dir="images" /> 42 45 </copy> 43 46 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 47 <env key="LANG" value="C"/> 48 <arg value="info"/> 49 <arg value="--xml"/> 50 <arg value="."/> 51 </exec> 52 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 53 <delete file="REVISION"/> 54 44 55 <!-- create jar file --> 45 56 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 47 58 <attribute name="Plugin-Class" value="${plugin.class}" /> 48 59 <attribute name="Plugin-Description" value="${plugin.description}" /> 49 <attribute name="Plugin-Version" value="${plugin.version}" />50 60 <attribute name="Plugin-Mainversion" value="1065" /> 61 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 62 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 51 63 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 52 64 <attribute name="Plugin-Stage" value="${plugin.stage}" /> … … 56 68 57 69 <target name="compile" depends="init"> 58 <echo message="creating ${plugin.jar}"/>59 <mkdir dir="${plugin.build.dir}"/>60 70 <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 61 71 <compilerarg value="-Xlint:deprecation"/> … … 76 86 </target> 77 87 78 <target name="init">79 <echo>java version: ${java.version}</echo>80 </target>81 82 88 <target name="clean"> 83 89 <delete dir="${plugin.build.dir}" /> 84 <delete dir="${plugin.site.file}" />85 90 <delete file="${plugin.jar}" /> 86 91 </target> 87 88 <!-- write site description for the given plugin so josm will accept it -->89 <target name="site">90 <echo message="creating site description in ${plugin.site.file}"/>91 <echo file="${plugin.site.file}"><!-- plugins available on this site -->92 <plugins>93 <plugin id="${ant.project.name}" version="${plugin.version}">94 <name>${ant.project.name}</name>95 <description>${plugin.description}</description>96 <resource>${plugin.site.url}${plugin.jar}</resource>97 </plugin>98 </plugins>99 </echo>100 </target>101 102 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->103 <target name="site-full-donotuse">104 <echo message="creating site description in ${plugin.site.file}"/>105 <echo file="${plugin.site.file}"><?xml version="1.0"?>106 <site version="1.0">107 <!-- meta data of site -->108 <site-info>109 <site-name>${plugin.site.description}</site-name>110 <site-url>${plugin.site.url}</site-url>111 </site-info>112 113 <!-- plugins available on this site -->114 <plugins>115 <plugin id="${ant.project.name}" version="${plugin.version}">116 <name>${ant.project.name}</name>117 <description>${plugin.description}</description>118 <resources>119 <resource src="${plugin.site.url}${plugin.jar}"120 target="${josm.home.dir}/plugins/${plugin.jar}"/>121 </resources>122 </plugin>123 </plugins>124 </site>125 </echo>126 </target>127 128 <!-- upload the site description and the jar file via ssh -->129 <target name="upload" depends="dist,site">130 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>131 <exec executable="scp">132 <arg value="${plugin.jar}"/>133 <arg value="${plugin.site.file}"/>134 <arg value="${plugin.site.upload.target}"/>135 </exec>136 </target>137 138 92 </project>
Note:
See TracChangeset
for help on using the changeset viewer.