Changeset 18522 in osm
- Timestamp:
- 2009-11-08T20:42:46+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/build.xml
r18500 r18522 145 145 146 146 <!-- 147 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 148 ** property ${coreversion.info.entry.revision} 149 ** 147 ************************** Publishing the plugin *********************************** 150 148 --> 151 <target name="core-info"> 152 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 153 <env key="LANG" value="C"/> 154 <arg value="info"/> 155 <arg value="--xml"/> 156 <arg value="../../core"/> 157 </exec> 158 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 159 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 160 161 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 162 <delete file="core.info.xml" /> 163 </target> 164 165 <!-- 166 ** commits the source tree for this plugin 167 --> 168 <target name="commit-current"> 169 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 170 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 149 <!-- 150 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 151 ** property ${coreversion.info.entry.revision} 152 ** 153 --> 154 <target name="core-info"> 155 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 171 156 <env key="LANG" value="C"/> 172 <arg value="commit"/> 173 <arg value="-m "${commit.message}""/> 174 <arg value="."/> 175 </exec> 176 </target> 177 178 <!-- 179 ** updates (svn up) the source tree for this plugin 180 --> 181 <target name="update-current"> 182 <echo>Updating plugin source ...</echo> 183 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 184 <env key="LANG" value="C"/> 185 <arg value="up"/> 186 <arg value="."/> 187 </exec> 188 <echo>Updating ${plugin.jar} ...</echo> 189 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 190 <env key="LANG" value="C"/> 191 <arg value="up"/> 192 <arg value="../dist/${plugin.jar}"/> 193 </exec> 194 </target> 195 196 <!-- 197 ** commits the plugin.jar 198 --> 199 <target name="commit-dist"> 200 <echo>Commiting ${plugin.jar} with message '${commit.message}' ...</echo> 201 <echo>Plugin-Mainversion is ${plugin.main.version} ...</echo> 202 <echo>JOSM build version is ${coreversion.info.entry.revision} ...</echo> 203 <echo>Plugin-Version is ${version.entry.commit.revision} ...</echo> 204 <condition property="difference-in-josm-version"> 205 <equals arg1="${plugin.main.version}" arg2="${coreversion.info.entry.revision}" /> 206 </condition> 157 <arg value="info"/> 158 <arg value="--xml"/> 159 <arg value="../../core"/> 160 </exec> 161 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 162 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 163 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 164 <delete file="core.info.xml" /> 165 </target> 166 167 <!-- 168 ** commits the source tree for this plugin 169 --> 170 <target name="commit-current"> 171 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 207 172 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 208 173 <env key="LANG" value="C"/> 209 174 <arg value="commit"/> 210 <arg value="-m "${commit.message}""/> 175 <arg value="-m '${commit.message}'"/> 176 <arg value="."/> 177 </exec> 178 </target> 179 180 <!-- 181 ** updates (svn up) the source tree for this plugin 182 --> 183 <target name="update-current"> 184 <echo>Updating plugin source ...</echo> 185 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 186 <env key="LANG" value="C"/> 187 <arg value="up"/> 188 <arg value="."/> 189 </exec> 190 <echo>Updating ${plugin.jar} ...</echo> 191 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 192 <env key="LANG" value="C"/> 193 <arg value="up"/> 211 194 <arg value="../dist/${plugin.jar}"/> 212 195 </exec> 213 </target> 214 215 <!-- 216 ** outputs a warning if the JOSM version inserted in the plugin manifest isn't equal to the 217 ** the JOSM version the plugin was built against. 218 ** 219 ** This isn't necessarily an error but it is a sign that something could be wrong. 220 --> 221 <target name="warn-difference-in-josm-version" unless="${difference-in-josm-version}"> 222 <echo level="warning">!!!WARNING!!! Plugin-Mainversion is not equal to the JOSM version used in this build. !!!WARNING!!!</echo> 223 </target> 224 225 <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist,warn-difference-in-josm-version"> 226 </target> 196 </target> 197 198 <!-- 199 ** commits the plugin.jar 200 --> 201 <target name="commit-dist"> 202 <echo> 203 ***** Properties of published ${plugin.jar} ***** 204 Commit message : '${commit.message}' 205 Plugin-Mainversion: ${plugin.main.version} 206 JOSM build version: ${coreversion.info.entry.revision} 207 Plugin-Version : ${version.entry.commit.revision} 208 ***** / Properties of published ${plugin.jar} ***** 209 210 Now commiting ${plugin.jar} ... 211 </echo> 212 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 213 <env key="LANG" value="C"/> 214 <arg value="-m '${commit.message}'"/> 215 <arg value="commit"/> 216 <arg value="${plugin.jar}"/> 217 </exec> 218 </target> 219 220 <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist"> 221 </target> 227 222 </project>
Note:
See TracChangeset
for help on using the changeset viewer.