Changeset 26174 in osm for applications/editors/josm/plugins/globalsat
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/globalsat
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/build.xml
r25192 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is the build file for the globalsat plugin. … … 29 29 --> 30 30 <project name="globalsat" default="dist" basedir="."> 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="Changed constructor signature of plugin main class"/> 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="3835"/> 35 <property name="josm" location="../../core/dist/josm-custom.jar"/> 36 <property name="plugin.dist.dir" value="../../dist"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 39 <property name="ant.build.javac.target" value="1.5"/> 40 <property name="RXTX" location="./libs/RXTXcomm.jar"/> 41 <target name="init"> 42 <mkdir dir="${plugin.build.dir}"/> 43 </target> 44 <target name="compile" depends="init"> 45 <echo message="creating ${plugin.jar}"/> 46 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}"> 47 <compilerarg value="-Xlint:deprecation"/> 48 <compilerarg value="-Xlint:unchecked"/> 49 <classpath> 50 <pathelement location="${josm}"/> 51 <pathelement location="${RXTX}"/> 52 </classpath> 53 </javac> 54 </target> 55 <target name="dist" depends="compile,revision"> 56 <unjar dest="${plugin.build.dir}" src="${RXTX}"/> 57 <copy todir="${plugin.build.dir}/images"> 58 <fileset dir="images"/> 59 </copy> 60 <copy todir="${plugin.build.dir}/data"> 61 <fileset dir="data"/> 62 </copy> 63 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 64 <manifest> 65 <attribute name="Author" value="Raphael Mack"/> 66 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin"/> 67 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 68 <attribute name="Plugin-Description" value="Download GPS points from Globalsat dg100 data logger directly in JOSM."/> 69 <attribute name="Plugin-Icon" value="images/globalsatImport.png"/> 70 <attribute name="Plugin-Link" value="http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"/> 71 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 72 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 73 </manifest> 74 </jar> 75 </target> 76 <target name="revision"> 77 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 78 <env key="LANG" value="C"/> 79 <arg value="info"/> 80 <arg value="--xml"/> 81 <arg value="."/> 82 </exec> 83 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 84 <delete file="REVISION"/> 85 </target> 86 <target name="clean"> 87 <delete dir="${plugin.build.dir}"/> 88 <delete file="${plugin.jar}"/> 89 </target> 90 <target name="install" depends="dist"> 91 <property environment="env"/> 92 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 93 <and> 94 <os family="windows"/> 95 </and> 96 </condition> 97 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 98 </target> 99 <!-- 100 ************************** Publishing the plugin *********************************** 101 --> 102 <!-- 103 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 104 ** property ${coreversion.info.entry.revision} 105 ** 106 --> 107 <target name="core-info"> 108 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 109 <env key="LANG" value="C"/> 110 <arg value="info"/> 111 <arg value="--xml"/> 112 <arg value="../../core"/> 113 </exec> 114 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 115 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 116 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 117 <delete file="core.info.xml"/> 118 </target> 119 <!-- 120 ** commits the source tree for this plugin 121 --> 122 <target name="commit-current"> 123 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 124 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 125 <env key="LANG" value="C"/> 126 <arg value="commit"/> 127 <arg value="-m '${commit.message}'"/> 128 <arg value="."/> 129 </exec> 130 </target> 131 <!-- 132 ** updates (svn up) the source tree for this plugin 133 --> 134 <target name="update-current"> 135 <echo>Updating plugin source ...</echo> 136 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 137 <env key="LANG" value="C"/> 138 <arg value="up"/> 139 <arg value="."/> 140 </exec> 141 <echo>Updating ${plugin.jar} ...</echo> 142 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 143 <env key="LANG" value="C"/> 144 <arg value="up"/> 145 <arg value="../dist/${plugin.jar}"/> 146 </exec> 147 </target> 148 <!-- 149 ** commits the plugin.jar 150 --> 151 <target name="commit-dist"> 152 <echo> 153 ***** Properties of published ${plugin.jar} ***** 154 Commit message : '${commit.message}' 155 Plugin-Mainversion: ${plugin.main.version} 156 JOSM build version: ${coreversion.info.entry.revision} 157 Plugin-Version : ${version.entry.commit.revision} 158 ***** / Properties of published ${plugin.jar} ***** 31 159 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="Changed constructor signature of plugin main class" /> 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3835" /> 36 37 <property name="josm" location="../../core/dist/josm-custom.jar"/> 38 <property name="plugin.dist.dir" value="../../dist"/> 39 <property name="plugin.build.dir" value="build"/> 40 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 41 <property name="ant.build.javac.target" value="1.5"/> 42 <property name="RXTX" location="./libs/RXTXcomm.jar"/> 43 <target name="init"> 44 <mkdir dir="${plugin.build.dir}"/> 45 </target> 46 <target name="compile" depends="init"> 47 <echo message="creating ${plugin.jar}"/> 48 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}"> 49 <compilerarg value="-Xlint:deprecation"/> 50 <compilerarg value="-Xlint:unchecked"/> 51 <classpath> 52 <pathelement location="${josm}"/> 53 <pathelement location="${RXTX}"/> 54 </classpath> 55 </javac> 56 </target> 57 <target name="dist" depends="compile,revision"> 58 <unjar dest="${plugin.build.dir}" src="${RXTX}"/> 59 <copy todir="${plugin.build.dir}/images"> 60 <fileset dir="images"/> 61 </copy> 62 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 63 <manifest> 64 <attribute name="Author" value="Raphael Mack"/> 65 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin"/> 66 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 67 <attribute name="Plugin-Description" value="Download GPS points from Globalsat dg100 data logger directly in JOSM."/> 68 <attribute name="Plugin-Icon" value="images/globalsatImport.png"/> 69 <attribute name="Plugin-Link" value="http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"/> 70 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 71 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 72 </manifest> 73 </jar> 74 </target> 75 <target name="revision"> 76 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 77 <env key="LANG" value="C"/> 78 <arg value="info"/> 79 <arg value="--xml"/> 80 <arg value="."/> 81 </exec> 82 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 83 <delete file="REVISION"/> 84 </target> 85 <target name="clean"> 86 <delete dir="${plugin.build.dir}"/> 87 <delete file="${plugin.jar}"/> 88 </target> 89 <target name="install" depends="dist"> 90 <property environment="env"/> 91 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 92 <and> 93 <os family="windows"/> 94 </and> 95 </condition> 96 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 97 </target> 98 99 <!-- 100 ************************** Publishing the plugin *********************************** 101 --> 102 <!-- 103 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 104 ** property ${coreversion.info.entry.revision} 105 ** 106 --> 107 <target name="core-info"> 108 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 109 <env key="LANG" value="C"/> 110 <arg value="info"/> 111 <arg value="--xml"/> 112 <arg value="../../core"/> 113 </exec> 114 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 115 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 116 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 117 <delete file="core.info.xml" /> 118 </target> 119 120 <!-- 121 ** commits the source tree for this plugin 122 --> 123 <target name="commit-current"> 124 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 125 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 126 <env key="LANG" value="C"/> 127 <arg value="commit"/> 128 <arg value="-m '${commit.message}'"/> 129 <arg value="."/> 130 </exec> 131 </target> 132 133 <!-- 134 ** updates (svn up) the source tree for this plugin 135 --> 136 <target name="update-current"> 137 <echo>Updating plugin source ...</echo> 138 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 139 <env key="LANG" value="C"/> 140 <arg value="up"/> 141 <arg value="."/> 142 </exec> 143 <echo>Updating ${plugin.jar} ...</echo> 144 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 145 <env key="LANG" value="C"/> 146 <arg value="up"/> 147 <arg value="../dist/${plugin.jar}"/> 148 </exec> 149 </target> 150 151 <!-- 152 ** commits the plugin.jar 153 --> 154 <target name="commit-dist"> 155 <echo> 156 ***** Properties of published ${plugin.jar} ***** 157 Commit message : '${commit.message}' 158 Plugin-Mainversion: ${plugin.main.version} 159 JOSM build version: ${coreversion.info.entry.revision} 160 Plugin-Version : ${version.entry.commit.revision} 161 ***** / Properties of published ${plugin.jar} ***** 162 163 Now commiting ${plugin.jar} ... 164 </echo> 165 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 166 <env key="LANG" value="C"/> 167 <arg value="-m '${commit.message}'"/> 168 <arg value="commit"/> 169 <arg value="${plugin.jar}"/> 170 </exec> 171 </target> 172 173 <!-- ** make sure svn is present as a command line tool ** --> 174 <target name="ensure-svn-present"> 175 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 176 <env key="LANG" value="C" /> 177 <arg value="--version" /> 178 </exec> 179 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 180 <!-- return code not set at all? Most likely svn isn't installed --> 181 <condition> 182 <not> 183 <isset property="svn.exit.code" /> 184 </not> 185 </condition> 186 </fail> 187 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 188 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 189 <condition> 190 <isfailure code="${svn.exit.code}" /> 191 </condition> 192 </fail> 193 </target> 194 195 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 196 </target> 160 Now commiting ${plugin.jar} ... 161 </echo> 162 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 163 <env key="LANG" value="C"/> 164 <arg value="-m '${commit.message}'"/> 165 <arg value="commit"/> 166 <arg value="${plugin.jar}"/> 167 </exec> 168 </target> 169 <!-- ** make sure svn is present as a command line tool ** --> 170 <target name="ensure-svn-present"> 171 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 172 <env key="LANG" value="C"/> 173 <arg value="--version"/> 174 </exec> 175 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 176 <!-- return code not set at all? Most likely svn isn't installed --> 177 <condition> 178 <not> 179 <isset property="svn.exit.code"/> 180 </not> 181 </condition> 182 </fail> 183 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 184 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 185 <condition> 186 <isfailure code="${svn.exit.code}"/> 187 </condition> 188 </fail> 189 </target> 190 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 191 </target> 197 192 </project>
Note:
See TracChangeset
for help on using the changeset viewer.