Changeset 28807 in osm for applications/editors/josm/plugins/no_more_mapping
- Timestamp:
- 2012-10-14T15:25:54+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/no_more_mapping
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/no_more_mapping
-
Property svn:ignore
set to
build
-
Property svn:ignore
set to
-
applications/editors/josm/plugins/no_more_mapping/build.xml
-
Property svn:mime-type
changed from
application/xml
totext/xml
r28783 r28807 29 29 --> 30 30 <project name="no_more_mapping" default="dist" basedir="."> 31 31 32 <!-- enter the SVN commit message --> 32 33 <property name="commit.message" value="Commit message"/> 33 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 34 35 <property name="plugin.main.version" value="4000"/> 35 <!-- should not be necessary to change the following properties --> 36 <property name="josm" location="../../core/dist/josm-custom.jar"/> 37 <property name="plugin.build.dir" value="build"/> 38 <property name="plugin.src.dir" value="src"/> 39 <!-- this is the directory where the plugin jar is copied to --> 40 <property name="plugin.dist.dir" value="../../dist"/> 41 <property name="ant.build.javac.source" value="1.6"/> 42 <property name="ant.build.javac.target" value="1.6"/> 43 <property name="plugin.dist.dir" value="../../dist"/> 44 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 36 45 37 <!-- 46 38 ********************************************************** 47 ** in it - initializes the build39 ** include targets that all plugins have in common 48 40 ********************************************************** 49 41 --> 50 <target name="init"> 51 <mkdir dir="${plugin.build.dir}"/> 52 </target> 53 <!-- 54 ********************************************************** 55 ** compile - complies the source tree 56 ********************************************************** 57 --> 58 <target name="compile" depends="init"> 59 <echo message="compiling sources for ${plugin.jar} ... "/> 60 <javac classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false"> 61 <compilerarg value="-Xlint:deprecation"/> 62 <compilerarg value="-Xlint:unchecked"/> 63 <src path="src" /> 64 </javac> 65 </target> 42 <import file="../build-common.xml"/> 43 66 44 <!-- 67 45 ********************************************************** … … 107 85 </jar> 108 86 </target> 109 <!--110 **********************************************************111 ** revision - extracts the current revision number for the112 ** file build.number and stores it in the XML property113 ** version.*114 **********************************************************115 -->116 <target name="revision">117 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">118 <env key="LANG" value="C"/>119 <arg value="info"/>120 <arg value="--xml"/>121 <arg value="."/>122 </exec>123 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>124 <delete file="REVISION"/>125 </target>126 <!--127 **********************************************************128 ** clean - clean up the build environment129 **********************************************************130 -->131 <target name="clean">132 <delete dir="${plugin.build.dir}"/>133 <delete file="${plugin.jar}"/>134 </target>135 <!--136 **********************************************************137 ** install - install the plugin in your local JOSM installation138 **********************************************************139 -->140 <target name="install" depends="dist">141 <property environment="env"/>142 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">143 <and>144 <os family="windows"/>145 </and>146 </condition>147 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>148 </target>149 <!--150 ************************** Publishing the plugin ***********************************151 -->152 <!--153 ** extracts the JOSM release for the JOSM version in ../core and saves it in the154 ** property ${coreversion.info.entry.revision}155 -->156 <target name="core-info">157 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">158 <env key="LANG" value="C"/>159 <arg value="info"/>160 <arg value="--xml"/>161 <arg value="../../core"/>162 </exec>163 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>164 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>165 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>166 <delete file="core.info.xml"/>167 </target>168 <!-- commits the source tree for this plugin -->169 <target name="commit-current">170 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>171 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">172 <env key="LANG" value="C"/>173 <arg value="commit"/>174 <arg value="-m '${commit.message}'"/>175 <arg value="."/>176 </exec>177 </target>178 <!-- updates (svn up) the source tree for this plugin -->179 <target name="update-current">180 <echo>Updating plugin source ...</echo>181 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">182 <env key="LANG" value="C"/>183 <arg value="up"/>184 <arg value="."/>185 </exec>186 <echo>Updating ${plugin.jar} ...</echo>187 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">188 <env key="LANG" value="C"/>189 <arg value="up"/>190 <arg value="../dist/${plugin.jar}"/>191 </exec>192 </target>193 <!-- commits the plugin.jar -->194 <target name="commit-dist">195 <echo>196 ***** Properties of published ${plugin.jar} *****197 Commit message : '${commit.message}'198 Plugin-Mainversion: ${plugin.main.version}199 JOSM build version: ${coreversion.info.entry.revision}200 Plugin-Version : ${version.entry.commit.revision}201 ***** / Properties of published ${plugin.jar} *****202 203 Now commiting ${plugin.jar} ...204 </echo>205 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">206 <env key="LANG" value="C"/>207 <arg value="-m '${commit.message}'"/>208 <arg value="commit"/>209 <arg value="${plugin.jar}"/>210 </exec>211 </target>212 <!-- make sure svn is present as a command line tool -->213 <target name="ensure-svn-present">214 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">215 <env key="LANG" value="C"/>216 <arg value="--version"/>217 </exec>218 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">219 <!-- return code not set at all? Most likely svn isn't installed -->220 <condition>221 <not>222 <isset property="svn.exit.code"/>223 </not>224 </condition>225 </fail>226 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">227 <!-- error code from SVN? Most likely svn is not what we are looking on this system -->228 <condition>229 <isfailure code="${svn.exit.code}"/>230 </condition>231 </fail>232 </target>233 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">234 </target>235 87 </project> -
Property svn:mime-type
changed from
Note:
See TracChangeset
for help on using the changeset viewer.