Changeset 24781 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-12-17T10:10:17+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapdust/build.xml
r24696 r24781 5 5 <property name="commit.message" value="MapDust bug reporter plugin" /> 6 6 <property name="plugin.main.version" value="3592" /> 7 <property name="josm.dir" value="../../core/dist/" /> 7 8 <property name="plugin.build.dir" value="build/classes" /> 8 9 <property name="apidoc.dir" value="build/doc" /> … … 17 18 <path id="classpath"> 18 19 <fileset dir="${plugin.lib.dir}" includes="**/*.jar" /> 19 < pathelement path="${josm}"/>20 <fileset dir="${josm.dir}" includes="josm-custom.jar" /> 20 21 </path> 21 22 … … 34 35 <target name="compile" depends="init"> 35 36 <echo message="compiling sources for ${plugin.jar} ... " /> 36 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="true" target="1.5" source="1.5"> 37 <javac srcdir="src" classpathref="classpath" debug="true" 38 destdir="${plugin.build.dir}" includeantruntime="true" target="1.5" 39 source="1.5"> 37 40 <compilerarg value="-Xlint:deprecation" /> 38 41 <compilerarg value="-Xlint:unchecked" /> … … 43 46 <target name="javadoc"> 44 47 <mkdir dir="${apidoc.dir}" /> 45 <javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath" windowtitle="MapDust plugin API"> 48 <javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath" 49 windowtitle="MapDust plugin API"> 46 50 <link href="http://java.sun.com/javase/6/docs/api/" /> 47 51 <link href="http://docs.jboss.org/hibernate/stable/core/api/" /> … … 54 58 <!-- revision --> 55 59 <target name="revision"> 56 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 60 <exec append="false" output="REVISION" executable="svn" 61 failifexecutionfails="false"> 57 62 <env key="LANG" value="C" /> 58 63 <arg value="info" /> … … 60 65 <arg value="." /> 61 66 </exec> 62 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" /> 67 <xmlproperty file="REVISION" prefix="version" keepRoot="false" 68 collapseAttributes="true" /> 63 69 <delete file="REVISION" /> 64 70 </target> … … 83 89 <manifest> 84 90 <attribute name="Author" value="Beata Jancso" /> 85 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin" /> 91 <attribute name="Plugin-Class" 92 value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin" /> 86 93 <attribute name="Plugin-Date" value="${version.entry.commit.date}" /> 87 <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports 88 on the map. You can create, close, invalidate, re-open and 89 comment bug reports by using this plugin." /> 90 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust" /> 91 <attribute name="Plugin-Mainversion" value="${plugin.main.version}" /> 92 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" /> 93 <attribute name="Plugin-Icon" value="images/dialogs/mapdust_icon25.png" /> 94 <attribute name="Plugin-Description" 95 value="The MapDust Plug-In shows the MapDust bug reports on 96 the map. You can create, close,invalidate, re-open and comment 97 bug reports by using this plugin." /> 98 <attribute name="Plugin-Link" 99 value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust" /> 100 <attribute name="Plugin-Mainversion" 101 value="${plugin.main.version}" /> 102 <attribute name="Plugin-Version" 103 value="${version.entry.commit.revision}" /> 104 <attribute name="Plugin-Icon" 105 value="images/dialogs/mapdust_icon25.png" /> 94 106 </manifest> 95 107 </jar> … … 99 111 <target name="install" depends="dist"> 100 112 <property environment="env" /> 101 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 113 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" 114 else="${user.home}/.josm/plugins"> 102 115 <and> 103 116 <os family="windows" /> … … 109 122 <!-- displays the information about the core josm --> 110 123 <target name="core-info"> 111 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false"> 124 <exec append="false" output="core.info.xml" executable="svn" 125 failifexecutionfails="false"> 112 126 <env key="LANG" value="C" /> 113 127 <arg value="info" /> … … 115 129 <arg value="../../core" /> 116 130 </exec> 117 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" /> 131 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" 132 collapseAttributes="true" /> 118 133 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo> 119 134 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo> … … 124 139 <target name="commit-current"> 125 140 <echo>Commiting the plugin source with message '${commit.message}' ...</echo> 126 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 141 <exec append="true" output="svn.log" executable="svn" 142 failifexecutionfails="false"> 127 143 <env key="LANG" value="C" /> 128 144 <arg value="commit" /> … … 135 151 <target name="update-current"> 136 152 <echo>Updating plugin source ...</echo> 137 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 153 <exec append="true" output="svn.log" executable="svn" 154 failifexecutionfails="false"> 138 155 <env key="LANG" value="C" /> 139 156 <arg value="up" /> … … 141 158 </exec> 142 159 <echo>Updating ${plugin.jar} ...</echo> 143 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 160 <exec append="true" output="svn.log" executable="svn" 161 failifexecutionfails="false"> 144 162 <env key="LANG" value="C" /> 145 163 <arg value="up" /> … … 160 178 Now commiting ${plugin.jar} ... 161 179 </echo> 162 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false"> 180 <exec append="true" output="svn.log" executable="svn" 181 failifexecutionfails="false"> 163 182 <env key="LANG" value="C" /> 164 183 <arg value="-m '${commit.message}'" /> … … 170 189 <!-- ** make sure svn is present as a command line tool ** --> 171 190 <target name="ensure-svn-present"> 172 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code"> 191 <exec append="true" output="svn.log" executable="svn" 192 failifexecutionfails="false" failonerror="false" 193 resultproperty="svn.exit.code"> 173 194 <env key="LANG" value="C" /> 174 195 <arg value="--version" /> 175 196 </exec> 176 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system."> 197 <fail message="Fatal: command 'svn --version' failed. Please make sure 198 svn is installed on your system."> 177 199 <!-- return code not set at all? Most likely svn isn't installed --> 178 200 <condition> … … 182 204 </condition> 183 205 </fail> 184 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system."> 206 <fail message="Fatal: command 'svn --version' failed. Please make sure 207 a working copy of svn is installed on your system."> 185 208 <!-- error code from SVN? Most likely svn is not what we are looking on this system --> 186 209 <condition> … … 191 214 192 215 <!-- publish the plugin --> 193 <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist"> 216 <target name="publish" depends="ensure-svn-present,core-info,commit-current, 217 update-current,clean,dist,commit-dist"> 194 218 </target> 195 219 </project>
Note:
See TracChangeset
for help on using the changeset viewer.