Changeset 26174 in osm for applications/editors/josm/plugins/CommandLine
- Timestamp:
- 2011-06-25T19:02:31+02:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine
- Files:
-
- 31 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r25199 r26174 1 <?xml version="1.0" encoding=" UTF-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="CommandLine" default="dist" basedir="."> 3 4 3 <!-- enter the SVN commit message --> 5 <property name="commit.message" value="Moar bugfixes" 4 <property name="commit.message" value="Moar bugfixes"/> 6 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="3835" /> 8 9 6 <property name="plugin.main.version" value="3835"/> 10 7 <!-- 11 8 ************************************************ 12 9 ** should not be necessary to change the following properties 13 10 --> 14 <property name="josm" 15 <property name="plugin.build.dir" 16 <property name="plugin.src.dir" 11 <property name="josm" location="../../core/dist/josm-custom.jar"/> 12 <property name="plugin.build.dir" value="build"/> 13 <property name="plugin.src.dir" value="src"/> 17 14 <!-- this is the directory where the plugin jar is copied to --> 18 <property name="plugin.dist.dir" 15 <property name="plugin.dist.dir" value="../../dist"/> 19 16 <property name="ant.build.javac.target" value="1.5"/> 20 <property name="plugin.dist.dir" value="../../dist"/> 21 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 22 17 <property name="plugin.dist.dir" value="../../dist"/> 18 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 23 19 <!-- 24 20 ********************************************************** … … 29 25 <mkdir dir="${plugin.build.dir}"/> 30 26 </target> 31 32 27 <!-- 33 28 ********************************************************** … … 42 37 </javac> 43 38 </target> 44 45 39 <!-- 46 40 ********************************************************** … … 56 50 <fileset dir="images"/> 57 51 </copy> 52 <copy todir="${plugin.build.dir}/data"> 53 <fileset dir="data"/> 54 </copy> 58 55 <copy todir="${plugin.build.dir}"> 59 56 <fileset dir="."> 60 <include name="README" 61 <include name="LICENSE" 57 <include name="README"/> 58 <include name="LICENSE"/> 62 59 </fileset> 63 60 </copy> … … 85 82 </jar> 86 83 </target> 87 88 84 <!-- 89 85 ********************************************************** … … 94 90 --> 95 91 <target name="revision"> 96 97 92 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 98 93 <env key="LANG" value="C"/> … … 104 99 <delete file="REVISION"/> 105 100 </target> 106 107 101 <!-- 108 102 ********************************************************** … … 114 108 <delete file="${plugin.jar}"/> 115 109 </target> 116 117 110 <!-- 118 111 ********************************************************** … … 129 122 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 130 123 </target> 131 132 133 124 <!-- 134 125 ************************** Publishing the plugin *********************************** … … 149 140 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 150 141 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> 151 <delete file="core.info.xml" /> 152 </target> 153 142 <delete file="core.info.xml"/> 143 </target> 154 144 <!-- 155 145 ** commits the source tree for this plugin … … 164 154 </exec> 165 155 </target> 166 167 156 <!-- 168 157 ** updates (svn up) the source tree for this plugin … … 182 171 </exec> 183 172 </target> 184 185 173 <!-- 186 174 ** commits the plugin.jar … … 204 192 </exec> 205 193 </target> 206 207 194 <!-- ** make sure svn is present as a command line tool ** --> 208 195 <target name="ensure-svn-present"> 209 196 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 210 <env key="LANG" value="C" 211 <arg value="--version" 197 <env key="LANG" value="C"/> 198 <arg value="--version"/> 212 199 </exec> 213 200 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> … … 215 202 <condition> 216 203 <not> 217 <isset property="svn.exit.code" 204 <isset property="svn.exit.code"/> 218 205 </not> 219 206 </condition> … … 222 209 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 223 210 <condition> 224 <isfailure code="${svn.exit.code}" 211 <isfailure code="${svn.exit.code}"/> 225 212 </condition> 226 213 </fail> 227 214 </target> 228 229 215 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 230 216 </target>
Note:
See TracChangeset
for help on using the changeset viewer.