Changeset 26174 in osm for applications/editors/josm/plugins/utilsplugin2
- Timestamp:
- 2011-06-25T19:02:31+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin2
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/build.xml
r25913 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="utilsplugin2" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="extend selection" 32 <property name="commit.message" value="extend selection"/> 34 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="4064" /> 36 37 34 <property name="plugin.main.version" value="4064"/> 38 35 <!-- 39 36 ************************************************ 40 37 ** should not be necessary to change the following properties 41 38 --> 42 <property name="josm" 43 <property name="plugin.build.dir" 44 <property name="plugin.src.dir" 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"/> 45 42 <!-- this is the directory where the plugin jar is copied to --> 46 <property name="plugin.dist.dir" 43 <property name="plugin.dist.dir" value="../../dist"/> 47 44 <property name="ant.build.javac.target" value="1.5"/> 48 <property name="plugin.dist.dir" value="../../dist"/> 49 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 50 45 <property name="plugin.dist.dir" value="../../dist"/> 46 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 51 47 <!-- 52 48 ********************************************************** … … 57 53 <mkdir dir="${plugin.build.dir}"/> 58 54 </target> 59 60 55 <!-- 61 56 ********************************************************** … … 70 65 </javac> 71 66 </target> 72 73 67 <!-- 74 68 ********************************************************** … … 81 75 <fileset dir="images"/> 82 76 </copy> 77 <copy todir="${plugin.build.dir}/data"> 78 <fileset dir="data"/> 79 </copy> 83 80 <copy todir="${plugin.build.dir}"> 84 81 <fileset dir="."> 85 <include name="README" 86 <include name="LICENSE" 87 <include name="GPL-v2.0.txt" 88 <include name="GPL-v3.0.txt" 82 <include name="README"/> 83 <include name="LICENSE"/> 84 <include name="GPL-v2.0.txt"/> 85 <include name="GPL-v3.0.txt"/> 89 86 </fileset> 90 87 </copy> … … 110 107 </jar> 111 108 </target> 112 113 109 <!-- 114 110 ********************************************************** … … 119 115 --> 120 116 <target name="revision"> 121 122 117 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 123 118 <env key="LANG" value="C"/> … … 129 124 <delete file="REVISION"/> 130 125 </target> 131 132 126 <!-- 133 127 ********************************************************** … … 139 133 <delete file="${plugin.jar}"/> 140 134 </target> 141 142 135 <!-- 143 136 ********************************************************** … … 154 147 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 155 148 </target> 156 157 158 149 <!-- 159 150 ************************** Publishing the plugin *********************************** … … 174 165 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 175 166 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 176 <delete file="core.info.xml" /> 177 </target> 178 167 <delete file="core.info.xml"/> 168 </target> 179 169 <!-- 180 170 ** commits the source tree for this plugin … … 189 179 </exec> 190 180 </target> 191 192 181 <!-- 193 182 ** updates (svn up) the source tree for this plugin … … 207 196 </exec> 208 197 </target> 209 210 198 <!-- 211 199 ** commits the plugin.jar … … 229 217 </exec> 230 218 </target> 231 232 219 <!-- ** make sure svn is present as a command line tool ** --> 233 220 <target name="ensure-svn-present"> 234 221 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 235 <env key="LANG" value="C" 236 <arg value="--version" 222 <env key="LANG" value="C"/> 223 <arg value="--version"/> 237 224 </exec> 238 225 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 240 227 <condition> 241 228 <not> 242 <isset property="svn.exit.code" 229 <isset property="svn.exit.code"/> 243 230 </not> 244 231 </condition> … … 247 234 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 248 235 <condition> 249 <isfailure code="${svn.exit.code}" 236 <isfailure code="${svn.exit.code}"/> 250 237 </condition> 251 238 </fail> 252 239 </target> 253 254 240 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 255 241 </target>
Note:
See TracChangeset
for help on using the changeset viewer.