Changeset 26174 in osm for applications/editors/josm/plugins/importvec/build.xml
- Timestamp:
- 2011-06-25T19:02:31+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/importvec/build.xml
r25469 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="importvec" default="dist" basedir="."> 31 32 31 <!-- enter the SVN commit message --> 33 <property name="commit.message" value="Commit message" 32 <property name="commit.message" value="Commit message"/> 34 33 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 <property name="plugin.main.version" value="3922" /> 36 37 34 <property name="plugin.main.version" value="3922"/> 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 ********************************************************** … … 84 78 <fileset dir="images"/> 85 79 </copy> 80 <copy todir="${plugin.build.dir}/data"> 81 <fileset dir="data"/> 82 </copy> 86 83 <copy todir="${plugin.build.dir}"> 87 84 <fileset dir="."> 88 <include name="README" 89 <include name="LICENSE" 85 <include name="README"/> 86 <include name="LICENSE"/> 90 87 </fileset> 91 88 </copy> … … 111 108 </jar> 112 109 </target> 113 114 110 <!-- 115 111 ********************************************************** … … 120 116 --> 121 117 <target name="revision"> 122 123 118 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 124 119 <env key="LANG" value="C"/> … … 130 125 <delete file="REVISION"/> 131 126 </target> 132 133 127 <!-- 134 128 ********************************************************** … … 140 134 <delete file="${plugin.jar}"/> 141 135 </target> 142 143 136 <!-- 144 137 ********************************************************** … … 155 148 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 156 149 </target> 157 158 159 150 <!-- 160 151 ************************** Publishing the plugin *********************************** … … 175 166 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 176 167 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 177 <delete file="core.info.xml" /> 178 </target> 179 168 <delete file="core.info.xml"/> 169 </target> 180 170 <!-- 181 171 ** commits the source tree for this plugin … … 190 180 </exec> 191 181 </target> 192 193 182 <!-- 194 183 ** updates (svn up) the source tree for this plugin … … 208 197 </exec> 209 198 </target> 210 211 199 <!-- 212 200 ** commits the plugin.jar … … 230 218 </exec> 231 219 </target> 232 233 220 <!-- ** make sure svn is present as a command line tool ** --> 234 221 <target name="ensure-svn-present"> 235 222 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 236 <env key="LANG" value="C" 237 <arg value="--version" 223 <env key="LANG" value="C"/> 224 <arg value="--version"/> 238 225 </exec> 239 226 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 241 228 <condition> 242 229 <not> 243 <isset property="svn.exit.code" 230 <isset property="svn.exit.code"/> 244 231 </not> 245 232 </condition> … … 248 235 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 249 236 <condition> 250 <isfailure code="${svn.exit.code}" 237 <isfailure code="${svn.exit.code}"/> 251 238 </condition> 252 239 </fail> 253 240 </target> 254 255 241 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 256 242 </target>
Note:
See TracChangeset
for help on using the changeset viewer.