Changeset 26174 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed
- Files:
-
- 31 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/build.xml
r25451 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is a template build file for a JOSM plugin. … … 29 29 --> 30 30 <project name="smed" basedir="."> 31 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="some new internationalized messages" /> 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3835" /> 36 37 38 <!-- 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="some new internationalized messages"/> 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="3835"/> 35 <!-- 39 36 ************************************************ 40 37 ** should not be necessary to change the following properties 41 38 --> 42 <property name="josm" location="../../core/dist/josm-custom.jar"/> 43 <property name="plugin.build.dir" value="build/"/> 44 <property name="plugin.src.dir" value="src/"/> 45 <property name="smed.dist.dir" value="dist/"/> 46 <!-- this is the directory where the plugin jar is copied to --> 47 <property name="plugin.dist.dir" value="../../dist/"/> 48 <property name="smed_core.dist.dir" value="core/dist/"/> 49 <property name="ant.build.javac.target" value="1.5"/> 50 <property name="plugin.jar" value="${plugin.dist.dir}${ant.project.name}.jar"/> 51 52 <!-- 39 <property name="josm" location="../../core/dist/josm-custom.jar"/> 40 <property name="plugin.build.dir" value="build/"/> 41 <property name="plugin.src.dir" value="src/"/> 42 <property name="smed.dist.dir" value="dist/"/> 43 <!-- this is the directory where the plugin jar is copied to --> 44 <property name="plugin.dist.dir" value="../../dist/"/> 45 <property name="smed_core.dist.dir" value="core/dist/"/> 46 <property name="ant.build.javac.target" value="1.5"/> 47 <property name="plugin.jar" value="${plugin.dist.dir}${ant.project.name}.jar"/> 48 <!-- 53 49 ********************************************************** 54 50 ** init - initializes the build 55 51 ********************************************************** 56 52 --> 57 <target name="init"> 58 <mkdir dir="${plugin.build.dir}"/> 59 <mkdir dir="${smed_core.dist.dir}"/> 60 <mkdir dir="${smed.dist.dir}"/> 61 </target> 62 63 <!-- 53 <target name="init"> 54 <mkdir dir="${plugin.build.dir}"/> 55 <mkdir dir="${smed_core.dist.dir}"/> 56 <mkdir dir="${smed.dist.dir}"/> 57 </target> 58 <!-- 64 59 ********************************************************** 65 60 ** compile - complies the source tree 66 61 ********************************************************** 67 62 --> 68 <target name="compile" depends="init"> 69 <echo message="compiling sources for ${plugin.jar} ... "/> 70 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 71 <compilerarg value="-Xlint:deprecation"/> 72 <compilerarg value="-Xlint:unchecked"/> 73 </javac> 74 </target> 75 76 <!-- 63 <target name="compile" depends="init"> 64 <echo message="compiling sources for ${plugin.jar} ... "/> 65 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 66 <compilerarg value="-Xlint:deprecation"/> 67 <compilerarg value="-Xlint:unchecked"/> 68 </javac> 69 </target> 70 <!-- 77 71 ********************************************************** 78 72 ** dist - creates the plugin jar 79 73 ********************************************************** 80 74 --> 81 <target name="dist" depends="compile, revision"> 82 <echo message="creating ${ant.project.name}.jar ... "/> 83 75 <target name="dist" depends="compile, revision"> 76 <echo message="creating ${ant.project.name}.jar ... "/> 84 77 <copy todir="${plugin.build.dir}/images"> 85 <fileset dir=" ${plugin.src.dir}/images"/>78 <fileset dir="images"/> 86 79 </copy> 87 88 <copy todir="${plugin.build.dir}/images"> 89 <fileset dir="images"/> 90 </copy> 91 92 <copy todir="${plugin.build.dir}/smed/msg"> 93 <fileset dir="${plugin.src.dir}/smed/msg"/> 94 </copy> 95 96 <copy todir="${plugin.build.dir}"> 97 <fileset dir="${smed.dist.dir}"/> 98 </copy> 99 100 <copy todir="${plugin.build.dir}"> 101 <fileset dir="."> 102 <include name="*.txt" /> 103 </fileset> 104 </copy> 105 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 106 <!-- 80 <copy todir="${plugin.build.dir}/data"> 81 <fileset dir="data"/> 82 </copy> 83 <copy todir="${plugin.build.dir}/smed/msg"> 84 <fileset dir="${plugin.src.dir}/smed/msg"/> 85 </copy> 86 <copy todir="${plugin.build.dir}"> 87 <fileset dir="${smed.dist.dir}"/> 88 </copy> 89 <copy todir="${plugin.build.dir}"> 90 <fileset dir="."> 91 <include name="*.txt"/> 92 </fileset> 93 </copy> 94 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 95 <!-- 107 96 ************************************************ 108 97 ** configure these properties. Most of them will be copied to the plugins … … 112 101 ************************************************ 113 102 --> 114 <manifest> 115 <attribute name="Author" value="Werner, Malcolm"/> 116 <attribute name="Plugin-Class" value="smed.Smed"/> 117 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 118 <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/> 119 <attribute name="Plugin-Icon" value="images/Smed.png"/> 120 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 121 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 122 <!-- 123 <attribute name="Plugin-Version" value="23456"/> 124 --> 125 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 126 127 </manifest> 128 </jar> 129 130 <!-- install interface --> 131 <copy file="${plugin.jar}" todir="${smed_core.dist.dir}"/> 132 </target> 133 134 <!-- 103 <manifest> 104 <attribute name="Author" value="Werner, Malcolm"/> 105 <attribute name="Plugin-Class" value="smed.Smed"/> 106 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 107 <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/> 108 <attribute name="Plugin-Icon" value="images/Smed.png"/> 109 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 110 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 111 <!-- 112 <attribute name="Plugin-Version" value="23456"/> 113 --> 114 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 115 </manifest> 116 </jar> 117 <!-- install interface --> 118 <copy file="${plugin.jar}" todir="${smed_core.dist.dir}"/> 119 </target> 120 <!-- 135 121 ********************************************************** 136 122 ** revision - extracts the current revision number for the … … 139 125 ********************************************************** 140 126 --> 141 <target name="revision"> 142 143 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 144 <env key="LANG" value="C"/> 145 <arg value="info"/> 146 <arg value="--xml"/> 147 <arg value="."/> 148 </exec> 149 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 150 <!-- 151 <delete file="REVISION"/> 152 --> 153 </target> 154 155 156 <!-- 127 <target name="revision"> 128 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 129 <env key="LANG" value="C"/> 130 <arg value="info"/> 131 <arg value="--xml"/> 132 <arg value="."/> 133 </exec> 134 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 135 <!-- 136 <delete file="REVISION"/> 137 --> 138 </target> 139 <!-- 157 140 ********************************************************** 158 141 ** clean - clean up the build environment 159 142 ********************************************************** 160 143 --> 161 <target name="clean"> 162 <delete dir="${plugin.build.dir}"/> 163 <delete file="${plugin.jar}"/> 164 </target> 165 166 <!-- 144 <target name="clean"> 145 <delete dir="${plugin.build.dir}"/> 146 <delete file="${plugin.jar}"/> 147 </target> 148 <!-- 167 149 ********************************************************** 168 150 ** install - install the plugin in your local JOSM installation 169 151 ********************************************************** 170 152 --> 171 <target name="install" depends="dist"> 172 <property environment="env"/> 173 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 174 <and> 175 <os family="windows"/> 176 </and> 177 </condition> 178 <delete dir="${josm.plugins.dir}/splug"/> 179 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 180 </target> 181 182 <!-- 183 ** commits the source tree for this plugin 184 --> 185 <target name="commit-current"> 186 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 187 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 188 <env key="LANG" value="C"/> 189 <arg value="commit"/> 190 <arg value="-m '${commit.message}'"/> 191 <arg value="."/> 192 </exec> 193 </target> 194 195 <!-- 196 ** updates (svn up) the source tree for this plugin 197 --> 198 <target name="update-current"> 199 <echo>Updating plugin source ...</echo> 200 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 201 <env key="LANG" value="C"/> 202 <arg value="up"/> 203 <arg value="."/> 204 </exec> 205 <echo>Updating ${plugin.jar} ...</echo> 206 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 207 <env key="LANG" value="C"/> 208 <arg value="up"/> 209 <arg value="../dist/${plugin.jar}"/> 210 </exec> 211 </target> 212 153 <target name="install" depends="dist"> 154 <property environment="env"/> 155 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 156 <and> 157 <os family="windows"/> 158 </and> 159 </condition> 160 <delete dir="${josm.plugins.dir}/splug"/> 161 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 162 </target> 163 <!-- 164 ** commits the source tree for this plugin 165 --> 166 <target name="commit-current"> 167 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 168 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 169 <env key="LANG" value="C"/> 170 <arg value="commit"/> 171 <arg value="-m '${commit.message}'"/> 172 <arg value="."/> 173 </exec> 174 </target> 175 <!-- 176 ** updates (svn up) the source tree for this plugin 177 --> 178 <target name="update-current"> 179 <echo>Updating plugin source ...</echo> 180 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 181 <env key="LANG" value="C"/> 182 <arg value="up"/> 183 <arg value="."/> 184 </exec> 185 <echo>Updating ${plugin.jar} ...</echo> 186 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 187 <env key="LANG" value="C"/> 188 <arg value="up"/> 189 <arg value="../dist/${plugin.jar}"/> 190 </exec> 191 </target> 213 192 </project> -
applications/editors/josm/plugins/smed/plugs/harbour/build.xml
r24519 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is a template build file for a JOSM plugin. … … 29 29 --> 30 30 <project name="Harbour" default="dist" basedir="."> 31 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="harbour: TristateChekBox added" /> 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3329" /> 36 37 <!-- Declaring time-stamps--> 38 <tstamp/> 39 40 <!-- 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="harbour: TristateChekBox added"/> 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="3329"/> 35 <!-- Declaring time-stamps--> 36 <tstamp/> 37 <!-- 41 38 ************************************************ 42 39 ** should not be necessary to change the following properties 43 40 --> 44 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 45 <property name="smed" location="../../core/dist/smed.jar"/> 46 <property name="plugin.build.dir" value="build"/> 47 <property name="plugin.src.dir" value="src"/> 48 <property name="smed.build.dir" value="../../../smed/build"/> 49 <property name="delete_string" value="*${ant.project.name}.jar"/> 50 <!-- this is the directory where the plugin jar is copied to --> 51 <property name="plugin.dist.dir" value="../../dist"/> 52 <property name="ant.build.javac.target" value="1.5"/> 53 <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 54 55 <!-- 41 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 42 <property name="smed" location="../../core/dist/smed.jar"/> 43 <property name="plugin.build.dir" value="build"/> 44 <property name="plugin.src.dir" value="src"/> 45 <property name="smed.build.dir" value="../../../smed/build"/> 46 <property name="delete_string" value="*${ant.project.name}.jar"/> 47 <!-- this is the directory where the plugin jar is copied to --> 48 <property name="plugin.dist.dir" value="../../dist"/> 49 <property name="ant.build.javac.target" value="1.5"/> 50 <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 51 <!-- 56 52 ********************************************************** 57 53 ** init - initializes the build 58 54 ********************************************************** 59 55 --> 60 <target name="init"> 61 <mkdir dir="${plugin.build.dir}"/> 62 <mkdir dir="${plugin.dist.dir}"/> 63 </target> 64 65 <!-- 56 <target name="init"> 57 <mkdir dir="${plugin.build.dir}"/> 58 <mkdir dir="${plugin.dist.dir}"/> 59 </target> 60 <!-- 66 61 ********************************************************** 67 62 ** compile - complies the source tree 68 63 ********************************************************** 69 64 --> 70 <target name="compile" depends="init"> 71 <echo message="compiling sources for ${plugin.jar} ... "/> 72 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 73 <compilerarg value="-Xlint:deprecation"/> 74 <compilerarg value="-Xlint:unchecked"/> 75 </javac> 76 </target> 77 78 79 <!-- 65 <target name="compile" depends="init"> 66 <echo message="compiling sources for ${plugin.jar} ... "/> 67 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 68 <compilerarg value="-Xlint:deprecation"/> 69 <compilerarg value="-Xlint:unchecked"/> 70 </javac> 71 </target> 72 <!-- 80 73 ********************************************************** 81 74 ** dist - creates the plugin jar 82 75 ********************************************************** 83 76 --> 84 <target name="dist" depends="compile,revision"> 85 <echo message="creating ${ant.project.name}.jar ... "/> 86 77 <target name="dist" depends="compile,revision"> 78 <echo message="creating ${ant.project.name}.jar ... "/> 87 79 <copy todir="${plugin.build.dir}/images"> 88 80 <fileset dir="${plugin.src.dir}/images"/> 89 81 </copy> 90 91 <copy todir="${plugin.build.dir}/images"> 92 <fileset dir="images"/> 93 </copy> 94 <copy todir="${plugin.build.dir}/harbour/msg"> 95 <fileset dir="${plugin.src.dir}/harbour/msg"/> 96 </copy> 97 <copy todir="${plugin.build.dir}"> 98 <fileset dir="."> 99 <include name="copyright.txt" /> 100 <include name="LICENSE.txt" /> 101 </fileset> 102 </copy> 103 104 <delete> 105 <fileset dir="${plugin.dist.dir}"> 106 <include name="${delete_string}"/> 107 </fileset> 108 </delete> 109 110 111 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 112 <!-- 82 <copy todir="${plugin.build.dir}/images"> 83 <fileset dir="images"/> 84 </copy> 85 <copy todir="${plugin.build.dir}/harbour/msg"> 86 <fileset dir="${plugin.src.dir}/harbour/msg"/> 87 </copy> 88 <copy todir="${plugin.build.dir}"> 89 <fileset dir="."> 90 <include name="copyright.txt"/> 91 <include name="LICENSE.txt"/> 92 </fileset> 93 </copy> 94 <delete> 95 <fileset dir="${plugin.dist.dir}"> 96 <include name="${delete_string}"/> 97 </fileset> 98 </delete> 99 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 100 <!-- 113 101 ************************************************ 114 102 ** configure these properties. Most of them will be copied to the plugins … … 118 106 ************************************************ 119 107 --> 120 <manifest> 121 <attribute name="Author" value="Werner, Malcolm"/> 122 <attribute name="Plugin-Class" value="toms.Toms"/> 123 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 124 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 125 <attribute name="Plugin-Icon" value="images/Smp.png"/> 126 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 127 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 128 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 129 </manifest> 130 </jar> 131 </target> 132 133 <!-- 108 <manifest> 109 <attribute name="Author" value="Werner, Malcolm"/> 110 <attribute name="Plugin-Class" value="toms.Toms"/> 111 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 112 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 113 <attribute name="Plugin-Icon" value="images/Smp.png"/> 114 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 115 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 116 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 117 </manifest> 118 </jar> 119 </target> 120 <!-- 134 121 ********************************************************** 135 122 ** revision - extracts the current revision number for the … … 138 125 ********************************************************** 139 126 --> 140 <target name="revision"> 141 142 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 143 <env key="LANG" value="C"/> 144 <arg value="info"/> 145 <arg value="--xml"/> 146 <arg value="."/> 147 </exec> 148 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 149 <delete file="REVISION"/> 150 </target> 151 152 <!-- 127 <target name="revision"> 128 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 129 <env key="LANG" value="C"/> 130 <arg value="info"/> 131 <arg value="--xml"/> 132 <arg value="."/> 133 </exec> 134 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 135 <delete file="REVISION"/> 136 </target> 137 <!-- 153 138 ********************************************************** 154 139 ** clean - clean up the build environment 155 140 ********************************************************** 156 141 --> 157 <target name="clean"> 158 <delete dir="${plugin.build.dir}"/> 159 <delete> 160 <fileset dir="${plugin.dist.dir}"> 161 <include name="${delete_string}"/> 162 </fileset> 163 </delete> 164 </target> 165 166 <!-- 142 <target name="clean"> 143 <delete dir="${plugin.build.dir}"/> 144 <delete> 145 <fileset dir="${plugin.dist.dir}"> 146 <include name="${delete_string}"/> 147 </fileset> 148 </delete> 149 </target> 150 <!-- 167 151 ********************************************************** 168 152 ** install - install the plugin in your local JOSM installation … … 170 154 ********************************************************** 171 155 --> 172 <target name="install-develop" depends="dist"> 173 <property environment="env"/> 174 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 175 <and> 176 <os family="windows"/> 177 </and> 178 </condition> 179 180 <delete> 181 <fileset dir="${josm.plugins.dir}"> 182 <include name="${delete_string}"/> 183 </fileset> 184 </delete> 185 186 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 187 188 <delete file="${plugin.jar}"/> 189 190 </target> 191 192 <!-- 193 ************************** Publishing the plugin *********************************** 194 --> 195 <!-- 196 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 197 ** property ${coreversion.info.entry.revision} 198 ** 199 --> 200 201 <target name="core-info"> 202 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 203 <env key="LANG" value="C"/> 204 <arg value="info"/> 205 <arg value="--xml"/> 206 <arg value="../../core"/> 207 </exec> 208 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 209 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 210 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 211 <delete file="core.info.xml" /> 212 </target> 213 214 <!-- 215 ** commits the source tree for this plugin 216 --> 217 <target name="commit-current"> 218 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 219 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 220 <env key="LANG" value="C"/> 221 <arg value="commit"/> 222 <arg value="-m '${commit.message}'"/> 223 <arg value="."/> 224 </exec> 225 </target> 226 227 <!-- 228 ** updates (svn up) the source tree for this plugin 229 --> 230 <target name="update-current"> 231 <echo>Updating plugin source ...</echo> 232 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 233 <env key="LANG" value="C"/> 234 <arg value="up"/> 235 <arg value="."/> 236 </exec> 237 <echo>Updating ${plugin.jar} ...</echo> 238 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 239 <env key="LANG" value="C"/> 240 <arg value="up"/> 241 <arg value="../dist/${plugin.jar}"/> 242 </exec> 243 </target> 244 245 <!-- 246 ** commits the plugin.jar 247 --> 248 <target name="commit-dist"> 249 <echo> 250 ***** Properties of published ${plugin.jar} ***** 251 Commit message : '${commit.message}' 252 Plugin-Mainversion: ${plugin.main.version} 253 JOSM build version: ${coreversion.info.entry.revision} 254 Plugin-Version : ${version.entry.commit.revision} 255 ***** / Properties of published ${plugin.jar} ***** 256 257 Now commiting ${plugin.jar} ... 258 </echo> 259 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 260 <env key="LANG" value="C"/> 261 <arg value="-m '${commit.message}'"/> 262 <arg value="commit"/> 263 <arg value="${plugin.jar}"/> 264 </exec> 265 </target> 266 267 <!-- ** make sure svn is present as a command line tool ** --> 268 <target name="ensure-svn-present"> 269 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 270 <env key="LANG" value="C" /> 271 <arg value="--version" /> 272 </exec> 273 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 274 <!-- return code not set at all? Most likely svn isn't installed --> 275 <condition> 276 <not> 277 <isset property="svn.exit.code" /> 278 </not> 279 </condition> 280 </fail> 281 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 282 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 283 <condition> 284 <isfailure code="${svn.exit.code}" /> 285 </condition> 286 </fail> 287 </target> 288 289 <target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 290 <echo>No normal josm-plugin, publishing over smed !!! 291 1. ant - dist to each subplugin 292 2. ant publish to smed 293 </echo> 294 </target> 156 <target name="install-develop" depends="dist"> 157 <property environment="env"/> 158 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 159 <and> 160 <os family="windows"/> 161 </and> 162 </condition> 163 <delete> 164 <fileset dir="${josm.plugins.dir}"> 165 <include name="${delete_string}"/> 166 </fileset> 167 </delete> 168 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 169 <delete file="${plugin.jar}"/> 170 </target> 171 <!-- 172 ************************** Publishing the plugin *********************************** 173 --> 174 <!-- 175 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 176 ** property ${coreversion.info.entry.revision} 177 ** 178 --> 179 <target name="core-info"> 180 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 181 <env key="LANG" value="C"/> 182 <arg value="info"/> 183 <arg value="--xml"/> 184 <arg value="../../core"/> 185 </exec> 186 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 187 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 188 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 189 <delete file="core.info.xml"/> 190 </target> 191 <!-- 192 ** commits the source tree for this plugin 193 --> 194 <target name="commit-current"> 195 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 196 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 197 <env key="LANG" value="C"/> 198 <arg value="commit"/> 199 <arg value="-m '${commit.message}'"/> 200 <arg value="."/> 201 </exec> 202 </target> 203 <!-- 204 ** updates (svn up) the source tree for this plugin 205 --> 206 <target name="update-current"> 207 <echo>Updating plugin source ...</echo> 208 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 209 <env key="LANG" value="C"/> 210 <arg value="up"/> 211 <arg value="."/> 212 </exec> 213 <echo>Updating ${plugin.jar} ...</echo> 214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 215 <env key="LANG" value="C"/> 216 <arg value="up"/> 217 <arg value="../dist/${plugin.jar}"/> 218 </exec> 219 </target> 220 <!-- 221 ** commits the plugin.jar 222 --> 223 <target name="commit-dist"> 224 <echo> 225 ***** Properties of published ${plugin.jar} ***** 226 Commit message : '${commit.message}' 227 Plugin-Mainversion: ${plugin.main.version} 228 JOSM build version: ${coreversion.info.entry.revision} 229 Plugin-Version : ${version.entry.commit.revision} 230 ***** / Properties of published ${plugin.jar} ***** 231 232 Now commiting ${plugin.jar} ... 233 </echo> 234 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 235 <env key="LANG" value="C"/> 236 <arg value="-m '${commit.message}'"/> 237 <arg value="commit"/> 238 <arg value="${plugin.jar}"/> 239 </exec> 240 </target> 241 <!-- ** make sure svn is present as a command line tool ** --> 242 <target name="ensure-svn-present"> 243 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 244 <env key="LANG" value="C"/> 245 <arg value="--version"/> 246 </exec> 247 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 248 <!-- return code not set at all? Most likely svn isn't installed --> 249 <condition> 250 <not> 251 <isset property="svn.exit.code"/> 252 </not> 253 </condition> 254 </fail> 255 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 256 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 257 <condition> 258 <isfailure code="${svn.exit.code}"/> 259 </condition> 260 </fail> 261 </target> 262 <target name="publish"> 263 <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 264 <echo>No normal josm-plugin, publishing over smed !!! 265 1. ant - dist to each subplugin 266 2. ant publish to smed 267 </echo> 268 </target> 295 269 </project> 296 -
applications/editors/josm/plugins/smed/plugs/oseam/build.xml
r23475 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is a template build file for a JOSM plugin. … … 29 29 --> 30 30 <project name="OSeaM" default="dist" basedir="."> 31 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="some new features in internationalising" /> 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3329" /> 36 37 <!-- Declaring time-stamps--> 38 <tstamp/> 39 40 <!-- 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="some new features in internationalising"/> 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="3329"/> 35 <!-- Declaring time-stamps--> 36 <tstamp/> 37 <!-- 41 38 ************************************************ 42 39 ** should not be necessary to change the following properties 43 40 --> 44 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 45 <property name="smed" location="../../core/dist/smed.jar"/> 46 <property name="plugin.build.dir" value="build"/> 47 <property name="plugin.src.dir" value="src"/> 48 <property name="smed.build.dir" value="../../../smed/build"/> 49 <property name="delete_string" value="*${ant.project.name}.jar"/> 50 <!-- this is the directory where the plugin jar is copied to --> 51 <property name="plugin.dist.dir" value="../../dist"/> 52 <property name="ant.build.javac.target" value="1.5"/> 53 <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 54 55 <!-- 41 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 42 <property name="smed" location="../../core/dist/smed.jar"/> 43 <property name="plugin.build.dir" value="build"/> 44 <property name="plugin.src.dir" value="src"/> 45 <property name="smed.build.dir" value="../../../smed/build"/> 46 <property name="delete_string" value="*${ant.project.name}.jar"/> 47 <!-- this is the directory where the plugin jar is copied to --> 48 <property name="plugin.dist.dir" value="../../dist"/> 49 <property name="ant.build.javac.target" value="1.5"/> 50 <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 51 <!-- 56 52 ********************************************************** 57 53 ** init - initializes the build 58 54 ********************************************************** 59 55 --> 60 <target name="init"> 61 <mkdir dir="${plugin.build.dir}"/> 62 <mkdir dir="${plugin.dist.dir}"/> 63 </target> 64 65 <!-- 56 <target name="init"> 57 <mkdir dir="${plugin.build.dir}"/> 58 <mkdir dir="${plugin.dist.dir}"/> 59 </target> 60 <!-- 66 61 ********************************************************** 67 62 ** compile - complies the source tree 68 63 ********************************************************** 69 64 --> 70 <target name="compile" depends="init"> 71 <echo message="compiling sources for ${plugin.jar} ... "/> 72 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 73 <compilerarg value="-Xlint:deprecation"/> 74 <compilerarg value="-Xlint:unchecked"/> 75 </javac> 76 </target> 77 78 79 <!-- 65 <target name="compile" depends="init"> 66 <echo message="compiling sources for ${plugin.jar} ... "/> 67 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 68 <compilerarg value="-Xlint:deprecation"/> 69 <compilerarg value="-Xlint:unchecked"/> 70 </javac> 71 </target> 72 <!-- 80 73 ********************************************************** 81 74 ** dist - creates the plugin jar 82 75 ********************************************************** 83 76 --> 84 <target name="dist" depends="compile,revision"> 85 <echo message="creating ${ant.project.name}.jar ... "/> 86 77 <target name="dist" depends="compile,revision"> 78 <echo message="creating ${ant.project.name}.jar ... "/> 87 79 <copy todir="${plugin.build.dir}/images"> 88 80 <fileset dir="${plugin.src.dir}/images"/> 89 81 </copy> 90 91 <copy todir="${plugin.build.dir}/images"> 92 <fileset dir="images"/> 93 </copy> 94 <copy todir="${plugin.build.dir}/oseam/msg"> 95 <fileset dir="${plugin.src.dir}/oseam/msg"/> 96 </copy> 97 <copy todir="${plugin.build.dir}"> 98 <fileset dir="."> 99 <include name="copyright.txt" /> 100 <include name="LICENSE.txt" /> 101 </fileset> 102 </copy> 103 104 <delete> 105 <fileset dir="${plugin.dist.dir}"> 106 <include name="${delete_string}"/> 107 </fileset> 108 </delete> 109 110 111 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 112 <!-- 82 <copy todir="${plugin.build.dir}/images"> 83 <fileset dir="images"/> 84 </copy> 85 <copy todir="${plugin.build.dir}/oseam/msg"> 86 <fileset dir="${plugin.src.dir}/oseam/msg"/> 87 </copy> 88 <copy todir="${plugin.build.dir}"> 89 <fileset dir="."> 90 <include name="copyright.txt"/> 91 <include name="LICENSE.txt"/> 92 </fileset> 93 </copy> 94 <delete> 95 <fileset dir="${plugin.dist.dir}"> 96 <include name="${delete_string}"/> 97 </fileset> 98 </delete> 99 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 100 <!-- 113 101 ************************************************ 114 102 ** configure these properties. Most of them will be copied to the plugins … … 118 106 ************************************************ 119 107 --> 120 <manifest> 121 <attribute name="Author" value="Werner, Malcolm"/> 122 <attribute name="Plugin-Class" value="toms.Toms"/> 123 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 124 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 125 <attribute name="Plugin-Icon" value="images/Smp.png"/> 126 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 127 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 128 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 129 </manifest> 130 </jar> 131 </target> 132 133 <!-- 108 <manifest> 109 <attribute name="Author" value="Werner, Malcolm"/> 110 <attribute name="Plugin-Class" value="toms.Toms"/> 111 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 112 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 113 <attribute name="Plugin-Icon" value="images/Smp.png"/> 114 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 115 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 116 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 117 </manifest> 118 </jar> 119 </target> 120 <!-- 134 121 ********************************************************** 135 122 ** revision - extracts the current revision number for the … … 138 125 ********************************************************** 139 126 --> 140 <target name="revision"> 141 142 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 143 <env key="LANG" value="C"/> 144 <arg value="info"/> 145 <arg value="--xml"/> 146 <arg value="."/> 147 </exec> 148 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 149 <delete file="REVISION"/> 150 </target> 151 152 <!-- 127 <target name="revision"> 128 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 129 <env key="LANG" value="C"/> 130 <arg value="info"/> 131 <arg value="--xml"/> 132 <arg value="."/> 133 </exec> 134 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 135 <delete file="REVISION"/> 136 </target> 137 <!-- 153 138 ********************************************************** 154 139 ** clean - clean up the build environment 155 140 ********************************************************** 156 141 --> 157 <target name="clean"> 158 <delete dir="${plugin.build.dir}"/> 159 <delete> 160 <fileset dir="${plugin.dist.dir}"> 161 <include name="${delete_string}"/> 162 </fileset> 163 </delete> 164 </target> 165 166 <!-- 142 <target name="clean"> 143 <delete dir="${plugin.build.dir}"/> 144 <delete> 145 <fileset dir="${plugin.dist.dir}"> 146 <include name="${delete_string}"/> 147 </fileset> 148 </delete> 149 </target> 150 <!-- 167 151 ********************************************************** 168 152 ** install - install the plugin in your local JOSM installation … … 170 154 ********************************************************** 171 155 --> 172 <target name="install-develop" depends="dist"> 173 <property environment="env"/> 174 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 175 <and> 176 <os family="windows"/> 177 </and> 178 </condition> 179 180 <delete> 181 <fileset dir="${josm.plugins.dir}"> 182 <include name="${delete_string}"/> 183 </fileset> 184 </delete> 185 186 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 187 188 <delete file="${plugin.jar}"/> 189 190 </target> 191 192 <!-- 193 ************************** Publishing the plugin *********************************** 194 --> 195 <!-- 196 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 197 ** property ${coreversion.info.entry.revision} 198 ** 199 --> 200 201 <target name="core-info"> 202 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 203 <env key="LANG" value="C"/> 204 <arg value="info"/> 205 <arg value="--xml"/> 206 <arg value="../../core"/> 207 </exec> 208 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 209 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 210 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 211 <delete file="core.info.xml" /> 212 </target> 213 214 <!-- 215 ** commits the source tree for this plugin 216 --> 217 <target name="commit-current"> 218 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 219 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 220 <env key="LANG" value="C"/> 221 <arg value="commit"/> 222 <arg value="-m '${commit.message}'"/> 223 <arg value="."/> 224 </exec> 225 </target> 226 227 <!-- 228 ** updates (svn up) the source tree for this plugin 229 --> 230 <target name="update-current"> 231 <echo>Updating plugin source ...</echo> 232 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 233 <env key="LANG" value="C"/> 234 <arg value="up"/> 235 <arg value="."/> 236 </exec> 237 <echo>Updating ${plugin.jar} ...</echo> 238 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 239 <env key="LANG" value="C"/> 240 <arg value="up"/> 241 <arg value="../dist/${plugin.jar}"/> 242 </exec> 243 </target> 244 245 <!-- 246 ** commits the plugin.jar 247 --> 248 <target name="commit-dist"> 249 <echo> 250 ***** Properties of published ${plugin.jar} ***** 251 Commit message : '${commit.message}' 252 Plugin-Mainversion: ${plugin.main.version} 253 JOSM build version: ${coreversion.info.entry.revision} 254 Plugin-Version : ${version.entry.commit.revision} 255 ***** / Properties of published ${plugin.jar} ***** 256 257 Now commiting ${plugin.jar} ... 258 </echo> 259 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 260 <env key="LANG" value="C"/> 261 <arg value="-m '${commit.message}'"/> 262 <arg value="commit"/> 263 <arg value="${plugin.jar}"/> 264 </exec> 265 </target> 266 267 <!-- ** make sure svn is present as a command line tool ** --> 268 <target name="ensure-svn-present"> 269 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 270 <env key="LANG" value="C" /> 271 <arg value="--version" /> 272 </exec> 273 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 274 <!-- return code not set at all? Most likely svn isn't installed --> 275 <condition> 276 <not> 277 <isset property="svn.exit.code" /> 278 </not> 279 </condition> 280 </fail> 281 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 282 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 283 <condition> 284 <isfailure code="${svn.exit.code}" /> 285 </condition> 286 </fail> 287 </target> 288 289 <target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 290 <echo>No normal josm-plugin, publishing over smed !!! 291 1. ant - dist to each subplugin 292 2. ant publish to smed 293 </echo> 294 </target> 156 <target name="install-develop" depends="dist"> 157 <property environment="env"/> 158 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 159 <and> 160 <os family="windows"/> 161 </and> 162 </condition> 163 <delete> 164 <fileset dir="${josm.plugins.dir}"> 165 <include name="${delete_string}"/> 166 </fileset> 167 </delete> 168 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 169 <delete file="${plugin.jar}"/> 170 </target> 171 <!-- 172 ************************** Publishing the plugin *********************************** 173 --> 174 <!-- 175 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 176 ** property ${coreversion.info.entry.revision} 177 ** 178 --> 179 <target name="core-info"> 180 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 181 <env key="LANG" value="C"/> 182 <arg value="info"/> 183 <arg value="--xml"/> 184 <arg value="../../core"/> 185 </exec> 186 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 187 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 188 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 189 <delete file="core.info.xml"/> 190 </target> 191 <!-- 192 ** commits the source tree for this plugin 193 --> 194 <target name="commit-current"> 195 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 196 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 197 <env key="LANG" value="C"/> 198 <arg value="commit"/> 199 <arg value="-m '${commit.message}'"/> 200 <arg value="."/> 201 </exec> 202 </target> 203 <!-- 204 ** updates (svn up) the source tree for this plugin 205 --> 206 <target name="update-current"> 207 <echo>Updating plugin source ...</echo> 208 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 209 <env key="LANG" value="C"/> 210 <arg value="up"/> 211 <arg value="."/> 212 </exec> 213 <echo>Updating ${plugin.jar} ...</echo> 214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 215 <env key="LANG" value="C"/> 216 <arg value="up"/> 217 <arg value="../dist/${plugin.jar}"/> 218 </exec> 219 </target> 220 <!-- 221 ** commits the plugin.jar 222 --> 223 <target name="commit-dist"> 224 <echo> 225 ***** Properties of published ${plugin.jar} ***** 226 Commit message : '${commit.message}' 227 Plugin-Mainversion: ${plugin.main.version} 228 JOSM build version: ${coreversion.info.entry.revision} 229 Plugin-Version : ${version.entry.commit.revision} 230 ***** / Properties of published ${plugin.jar} ***** 231 232 Now commiting ${plugin.jar} ... 233 </echo> 234 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 235 <env key="LANG" value="C"/> 236 <arg value="-m '${commit.message}'"/> 237 <arg value="commit"/> 238 <arg value="${plugin.jar}"/> 239 </exec> 240 </target> 241 <!-- ** make sure svn is present as a command line tool ** --> 242 <target name="ensure-svn-present"> 243 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 244 <env key="LANG" value="C"/> 245 <arg value="--version"/> 246 </exec> 247 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 248 <!-- return code not set at all? Most likely svn isn't installed --> 249 <condition> 250 <not> 251 <isset property="svn.exit.code"/> 252 </not> 253 </condition> 254 </fail> 255 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 256 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 257 <condition> 258 <isfailure code="${svn.exit.code}"/> 259 </condition> 260 </fail> 261 </target> 262 <target name="publish"> 263 <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 264 <echo>No normal josm-plugin, publishing over smed !!! 265 1. ant - dist to each subplugin 266 2. ant publish to smed 267 </echo> 268 </target> 295 269 </project> 296 -
applications/editors/josm/plugins/smed/plugs/smed_about/build.xml
r23500 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <!-- 3 3 ** This is a template build file for a JOSM plugin. … … 29 29 --> 30 30 <project name="smed_about" basedir="."> 31 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="added some security queries" /> 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3329" /> 36 37 <!-- Declaring time-stamps--> 38 <tstamp/> 39 40 <!-- 31 <!-- enter the SVN commit message --> 32 <property name="commit.message" value="added some security queries"/> 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 <property name="plugin.main.version" value="3329"/> 35 <!-- Declaring time-stamps--> 36 <tstamp/> 37 <!-- 41 38 ************************************************ 42 39 ** should not be necessary to change the following properties 43 40 --> 44 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 45 <property name="smed" location="../../core/dist/smed.jar"/> 46 <property name="plugin.build.dir" value="build"/> 47 <property name="plugin.src.dir" value="src"/> 48 <property name="smed.build.dir" value="../../../smed/build"/> 49 <!-- this is the directory where the plugin jar is copied to --> 50 <property name="plugin.dist.dir" value="../../dist"/> 51 <property name="ant.build.javac.target" value="1.5"/> 52 <property name="plugin.jar" value="${plugin.dist.dir}/03_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 53 54 <!-- 41 <property name="josm" location="../../../../core/dist/josm-custom.jar"/> 42 <property name="smed" location="../../core/dist/smed.jar"/> 43 <property name="plugin.build.dir" value="build"/> 44 <property name="plugin.src.dir" value="src"/> 45 <property name="smed.build.dir" value="../../../smed/build"/> 46 <!-- this is the directory where the plugin jar is copied to --> 47 <property name="plugin.dist.dir" value="../../dist"/> 48 <property name="ant.build.javac.target" value="1.5"/> 49 <property name="plugin.jar" value="${plugin.dist.dir}/03_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 50 <!-- 55 51 ********************************************************** 56 52 ** init - initializes the build 57 53 ********************************************************** 58 54 --> 59 <target name="init"> 60 <mkdir dir="${plugin.build.dir}"/> 61 <mkdir dir="${plugin.dist.dir}"/> 62 </target> 63 64 <!-- 55 <target name="init"> 56 <mkdir dir="${plugin.build.dir}"/> 57 <mkdir dir="${plugin.dist.dir}"/> 58 </target> 59 <!-- 65 60 ********************************************************** 66 61 ** compile - complies the source tree 67 62 ********************************************************** 68 63 --> 69 <target name="compile" depends="init"> 70 <echo message="compiling sources for ${plugin.jar} ... "/> 71 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 72 <compilerarg value="-Xlint:deprecation"/> 73 <compilerarg value="-Xlint:unchecked"/> 74 </javac> 75 </target> 76 77 78 <!-- 64 <target name="compile" depends="init"> 65 <echo message="compiling sources for ${plugin.jar} ... "/> 66 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> 67 <compilerarg value="-Xlint:deprecation"/> 68 <compilerarg value="-Xlint:unchecked"/> 69 </javac> 70 </target> 71 <!-- 79 72 ********************************************************** 80 73 ** dist - creates the plugin jar 81 74 ********************************************************** 82 75 --> 83 <target name="dist" depends="compile,revision"> 84 <echo message="creating ${ant.project.name}.jar ... "/> 85 76 <target name="dist" depends="compile,revision"> 77 <echo message="creating ${ant.project.name}.jar ... "/> 86 78 <copy todir="${plugin.build.dir}/images"> 87 79 <fileset dir="${plugin.src.dir}/images"/> 88 80 </copy> 89 90 <copy todir="${plugin.build.dir}/images"> 91 <fileset dir="images"/> 92 </copy> 93 <copy todir="${plugin.build.dir}/${ant.project.name}/msg"> 94 <fileset dir="${plugin.src.dir}/${ant.project.name}/msg"/> 95 </copy> 96 <copy todir="${plugin.build.dir}"> 97 <fileset dir="."> 98 <include name="copyright.txt" /> 99 <include name="LICENSE.txt" /> 100 </fileset> 101 </copy> 102 103 <delete> 104 <fileset dir="${plugin.dist.dir}"> 105 <include name="*${ant.project.name}.jar"/> 106 </fileset> 107 </delete> 108 109 110 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 111 <!-- 81 <copy todir="${plugin.build.dir}/images"> 82 <fileset dir="images"/> 83 </copy> 84 <copy todir="${plugin.build.dir}/${ant.project.name}/msg"> 85 <fileset dir="${plugin.src.dir}/${ant.project.name}/msg"/> 86 </copy> 87 <copy todir="${plugin.build.dir}"> 88 <fileset dir="."> 89 <include name="copyright.txt"/> 90 <include name="LICENSE.txt"/> 91 </fileset> 92 </copy> 93 <delete> 94 <fileset dir="${plugin.dist.dir}"> 95 <include name="*${ant.project.name}.jar"/> 96 </fileset> 97 </delete> 98 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 99 <!-- 112 100 ************************************************ 113 101 ** configure these properties. Most of them will be copied to the plugins … … 117 105 ************************************************ 118 106 --> 119 <manifest> 120 <attribute name="Author" value="Werner, Malcolm"/> 121 <attribute name="Plugin-Class" value="toms.Toms"/> 122 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 123 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 124 <attribute name="Plugin-Icon" value="images/Smp.png"/> 125 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 126 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 127 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 128 </manifest> 129 </jar> 130 </target> 131 132 <!-- 107 <manifest> 108 <attribute name="Author" value="Werner, Malcolm"/> 109 <attribute name="Plugin-Class" value="toms.Toms"/> 110 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 111 <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/> 112 <attribute name="Plugin-Icon" value="images/Smp.png"/> 113 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 114 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 115 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 116 </manifest> 117 </jar> 118 </target> 119 <!-- 133 120 ********************************************************** 134 121 ** revision - extracts the current revision number for the … … 137 124 ********************************************************** 138 125 --> 139 <target name="revision"> 140 141 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 142 <env key="LANG" value="C"/> 143 <arg value="info"/> 144 <arg value="--xml"/> 145 <arg value="."/> 146 </exec> 147 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 148 <delete file="REVISION"/> 149 </target> 150 151 <!-- 126 <target name="revision"> 127 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 128 <env key="LANG" value="C"/> 129 <arg value="info"/> 130 <arg value="--xml"/> 131 <arg value="."/> 132 </exec> 133 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 134 <delete file="REVISION"/> 135 </target> 136 <!-- 152 137 ********************************************************** 153 138 ** clean - clean up the build environment 154 139 ********************************************************** 155 140 --> 156 <target name="clean"> 157 <delete dir="${plugin.build.dir}"/> 158 <delete file="${plugin.jar}"/> 159 <delete> 160 <fileset dir="${plugin.dist.dir}"> 161 <include name="*${ant.project.name}.jar"/> 162 </fileset> 163 </delete> 164 </target> 165 166 <!-- 141 <target name="clean"> 142 <delete dir="${plugin.build.dir}"/> 143 <delete file="${plugin.jar}"/> 144 <delete> 145 <fileset dir="${plugin.dist.dir}"> 146 <include name="*${ant.project.name}.jar"/> 147 </fileset> 148 </delete> 149 </target> 150 <!-- 167 151 ********************************************************** 168 152 ** install - install the plugin in your local JOSM installation 169 153 ********************************************************** 170 154 --> 171 <target name="install-develop" depends="dist"> 172 <property environment="env"/> 173 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 174 <and> 175 <os family="windows"/> 176 </and> 177 </condition> 178 179 <delete> 180 <fileset dir="${josm.plugins.dir}"> 181 <include name="*${ant.project.name}.jar"/> 182 </fileset> 183 </delete> 184 185 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 186 187 <delete file="${plugin.jar}"/> 188 </target> 189 190 191 <!-- 192 ************************** Publishing the plugin *********************************** 193 --> 194 <!-- 195 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 196 ** property ${coreversion.info.entry.revision} 197 ** 198 --> 199 200 <target name="core-info"> 201 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 202 <env key="LANG" value="C"/> 203 <arg value="info"/> 204 <arg value="--xml"/> 205 <arg value="../../core"/> 206 </exec> 207 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 208 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 209 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 210 <delete file="core.info.xml" /> 211 </target> 212 213 <!-- 214 ** commits the source tree for this plugin 215 --> 216 <target name="commit-current"> 217 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 218 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 219 <env key="LANG" value="C"/> 220 <arg value="commit"/> 221 <arg value="-m '${commit.message}'"/> 222 <arg value="."/> 223 </exec> 224 </target> 225 226 <!-- 227 ** updates (svn up) the source tree for this plugin 228 --> 229 <target name="update-current"> 230 <echo>Updating plugin source ...</echo> 231 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 232 <env key="LANG" value="C"/> 233 <arg value="up"/> 234 <arg value="."/> 235 </exec> 236 <echo>Updating ${plugin.jar} ...</echo> 237 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 238 <env key="LANG" value="C"/> 239 <arg value="up"/> 240 <arg value="../dist/${plugin.jar}"/> 241 </exec> 242 </target> 243 244 <!-- 245 ** commits the plugin.jar 246 --> 247 <target name="commit-dist"> 248 <echo> 249 ***** Properties of published ${plugin.jar} ***** 250 Commit message : '${commit.message}' 251 Plugin-Mainversion: ${plugin.main.version} 252 JOSM build version: ${coreversion.info.entry.revision} 253 Plugin-Version : ${version.entry.commit.revision} 254 ***** / Properties of published ${plugin.jar} ***** 255 256 Now commiting ${plugin.jar} ... 257 </echo> 258 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 259 <env key="LANG" value="C"/> 260 <arg value="-m '${commit.message}'"/> 261 <arg value="commit"/> 262 <arg value="${plugin.jar}"/> 263 </exec> 264 </target> 265 266 <!-- ** make sure svn is present as a command line tool ** --> 267 <target name="ensure-svn-present"> 268 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 269 <env key="LANG" value="C" /> 270 <arg value="--version" /> 271 </exec> 272 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 273 <!-- return code not set at all? Most likely svn isn't installed --> 274 <condition> 275 <not> 276 <isset property="svn.exit.code" /> 277 </not> 278 </condition> 279 </fail> 280 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 281 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 282 <condition> 283 <isfailure code="${svn.exit.code}" /> 284 </condition> 285 </fail> 286 </target> 287 288 <target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 289 <echo>No normal josm-plugin, publishing over smed !!! 290 1. ant - dist to each subplugin 291 2. ant publish to smed 292 </echo> 293 </target> 155 <target name="install-develop" depends="dist"> 156 <property environment="env"/> 157 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug"> 158 <and> 159 <os family="windows"/> 160 </and> 161 </condition> 162 <delete> 163 <fileset dir="${josm.plugins.dir}"> 164 <include name="*${ant.project.name}.jar"/> 165 </fileset> 166 </delete> 167 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 168 <delete file="${plugin.jar}"/> 169 </target> 170 <!-- 171 ************************** Publishing the plugin *********************************** 172 --> 173 <!-- 174 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 175 ** property ${coreversion.info.entry.revision} 176 ** 177 --> 178 <target name="core-info"> 179 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 180 <env key="LANG" value="C"/> 181 <arg value="info"/> 182 <arg value="--xml"/> 183 <arg value="../../core"/> 184 </exec> 185 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 186 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 187 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 188 <delete file="core.info.xml"/> 189 </target> 190 <!-- 191 ** commits the source tree for this plugin 192 --> 193 <target name="commit-current"> 194 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 195 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 196 <env key="LANG" value="C"/> 197 <arg value="commit"/> 198 <arg value="-m '${commit.message}'"/> 199 <arg value="."/> 200 </exec> 201 </target> 202 <!-- 203 ** updates (svn up) the source tree for this plugin 204 --> 205 <target name="update-current"> 206 <echo>Updating plugin source ...</echo> 207 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 208 <env key="LANG" value="C"/> 209 <arg value="up"/> 210 <arg value="."/> 211 </exec> 212 <echo>Updating ${plugin.jar} ...</echo> 213 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 214 <env key="LANG" value="C"/> 215 <arg value="up"/> 216 <arg value="../dist/${plugin.jar}"/> 217 </exec> 218 </target> 219 <!-- 220 ** commits the plugin.jar 221 --> 222 <target name="commit-dist"> 223 <echo> 224 ***** Properties of published ${plugin.jar} ***** 225 Commit message : '${commit.message}' 226 Plugin-Mainversion: ${plugin.main.version} 227 JOSM build version: ${coreversion.info.entry.revision} 228 Plugin-Version : ${version.entry.commit.revision} 229 ***** / Properties of published ${plugin.jar} ***** 230 231 Now commiting ${plugin.jar} ... 232 </echo> 233 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 234 <env key="LANG" value="C"/> 235 <arg value="-m '${commit.message}'"/> 236 <arg value="commit"/> 237 <arg value="${plugin.jar}"/> 238 </exec> 239 </target> 240 <!-- ** make sure svn is present as a command line tool ** --> 241 <target name="ensure-svn-present"> 242 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 243 <env key="LANG" value="C"/> 244 <arg value="--version"/> 245 </exec> 246 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 247 <!-- return code not set at all? Most likely svn isn't installed --> 248 <condition> 249 <not> 250 <isset property="svn.exit.code"/> 251 </not> 252 </condition> 253 </fail> 254 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 255 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 256 <condition> 257 <isfailure code="${svn.exit.code}"/> 258 </condition> 259 </fail> 260 </target> 261 <target name="publish"> 262 <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" --> 263 <echo>No normal josm-plugin, publishing over smed !!! 264 1. ant - dist to each subplugin 265 2. ant publish to smed 266 </echo> 267 </target> 294 268 </project>
Note:
See TracChangeset
for help on using the changeset viewer.