Changeset 26174 in osm for applications/editors/josm/plugins/terracer
- Timestamp:
- 2011-06-25T19:02:31+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/terracer
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/build.xml
r25199 r26174 1 <?xml version="1.0" encoding="utf-8"?> 1 2 <!-- 2 3 ** This is a template build file for the terracer plugin … … 25 26 --> 26 27 <project name="terracer" default="dist" basedir="."> 27 <property name="josm" 28 <property name="plugin.dist.dir" 29 <property name="plugin.build.dir" 30 <property name="plugin.jar" 28 <property name="josm" location="../../core/dist/josm-custom.jar"/> 29 <property name="plugin.dist.dir" value="../../dist"/> 30 <property name="plugin.build.dir" value="build"/> 31 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 31 32 <property name="ant.build.javac.target" value="1.5"/> 32 33 34 <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct" /> 35 <property name="plugin.main.version" value="3835" /> 36 37 33 <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct"/> 34 <property name="plugin.main.version" value="3835"/> 38 35 <target name="init"> 39 36 <mkdir dir="${plugin.build.dir}"/> … … 49 46 <copy todir="${plugin.build.dir}/images"> 50 47 <fileset dir="images"/> 48 </copy> 49 <copy todir="${plugin.build.dir}/data"> 50 <fileset dir="data"/> 51 51 </copy> 52 52 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 86 86 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 87 87 </target> 88 89 88 <!-- 90 89 ************************** Publishing the plugin *********************************** 91 90 --> 92 91 <!-- 93 92 ** extracts the JOSM release for the JOSM version in ../core and saves it in the 94 93 ** property ${coreversion.info.entry.revision} 95 94 ** 96 95 --> 97 <target name="core-info"> 98 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 99 <env key="LANG" value="C"/> 100 <arg value="info"/> 101 <arg value="--xml"/> 102 <arg value="../../core"/> 103 </exec> 104 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 105 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 106 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 107 <delete file="core.info.xml" /> 108 </target> 109 110 <!-- 96 <target name="core-info"> 97 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 98 <env key="LANG" value="C"/> 99 <arg value="info"/> 100 <arg value="--xml"/> 101 <arg value="../../core"/> 102 </exec> 103 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/> 104 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 105 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 106 <delete file="core.info.xml"/> 107 </target> 108 <!-- 111 109 ** commits the source tree for this plugin 112 110 --> 113 <target name="commit-current"> 114 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 115 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 116 <env key="LANG" value="C"/> 117 <arg value="commit"/> 118 <arg value="-m '${commit.message}'"/> 119 <arg value="."/> 120 </exec> 121 </target> 122 123 <!-- 111 <target name="commit-current"> 112 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 113 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 114 <env key="LANG" value="C"/> 115 <arg value="commit"/> 116 <arg value="-m '${commit.message}'"/> 117 <arg value="."/> 118 </exec> 119 </target> 120 <!-- 124 121 ** updates (svn up) the source tree for this plugin 125 122 --> 126 <target name="update-current"> 127 <echo>Updating plugin source ...</echo> 128 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 129 <env key="LANG" value="C"/> 130 <arg value="up"/> 131 <arg value="."/> 132 </exec> 133 <echo>Updating ${plugin.jar} ...</echo> 134 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 135 <env key="LANG" value="C"/> 136 <arg value="up"/> 137 <arg value="../dist/${plugin.jar}"/> 138 </exec> 139 </target> 140 141 <!-- 123 <target name="update-current"> 124 <echo>Updating plugin source ...</echo> 125 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 126 <env key="LANG" value="C"/> 127 <arg value="up"/> 128 <arg value="."/> 129 </exec> 130 <echo>Updating ${plugin.jar} ...</echo> 131 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 132 <env key="LANG" value="C"/> 133 <arg value="up"/> 134 <arg value="../dist/${plugin.jar}"/> 135 </exec> 136 </target> 137 <!-- 142 138 ** commits the plugin.jar 143 139 --> 144 145 140 <target name="commit-dist"> 141 <echo> 146 142 ***** Properties of published ${plugin.jar} ***** 147 143 Commit message : '${commit.message}' … … 153 149 Now commiting ${plugin.jar} ... 154 150 </echo> 155 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 156 <env key="LANG" value="C"/> 157 <arg value="-m '${commit.message}'"/> 158 <arg value="commit"/> 159 <arg value="${plugin.jar}"/> 160 </exec> 161 </target> 162 163 <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist"> 151 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 152 <env key="LANG" value="C"/> 153 <arg value="-m '${commit.message}'"/> 154 <arg value="commit"/> 155 <arg value="${plugin.jar}"/> 156 </exec> 157 </target> 158 <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist"> 164 159 </target> 165 160 </project>
Note:
See TracChangeset
for help on using the changeset viewer.