Changeset 14837 in osm for applications/editors/josm/plugins/tageditor
- Timestamp:
- 2009-04-30T14:58:19+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/build.xml
r14696 r14837 5 5 ** Maintaining versions 6 6 ** ==================== 7 ** see README.template 7 ** see README.template 8 8 ** 9 9 ** Usage 10 10 ** ===== 11 11 ** To build it run 12 ** 12 ** 13 13 ** > ant dist 14 14 ** 15 ** To install the generated plugin locally (in you default plugin directory) run 16 ** 15 ** To install the generated plugin locally (in you default plugin directory) run 16 ** 17 17 ** > ant install 18 ** 18 ** 19 19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration 20 ** dialog. You have to check it in first. To check in run 21 ** 22 ** > ant publish 20 ** dialog. You have to check it in first. 23 21 ** 24 22 --> 25 23 <project name="tageditor" default="dist" basedir="."> 26 24 <!-- 25 ************************************************ 26 ** should not be necessary to change the following properties 27 --> 28 <property name="josm" location="../../core/dist/josm-custom.jar"/> 29 <property name="plugin.build.dir" value="build"/> 30 <property name="plugin.src.dir" value="src"/> 31 <!-- this is the directory where the plugin jar is copied to --> 32 <property name="plugin.dist.dir" value="../../dist"/> 33 <property name="ant.build.javac.target" value="1.5"/> 34 <property name="plugin.dist.dir" value="../../dist"/> 35 <property name="plugin.jar" value="${plugin.dist.dir}/${plugin.jar.name}"/> 27 36 28 <!-- 29 ************************************************ 30 ** configure these properties. Most of them will be copied to the plugins 31 ** manifest file. Property values will also show up in the list available 32 ** plugins: http://josm.openstreetmap.de/wiki/Plugins. 33 ** 34 ************************************************ 35 --> 36 <property name="plugin.author" value="Karl Guggisberg"/> 37 <property name="plugin.class" value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/> 38 <property name="plugin.description" value="Provides a dialog for editing tags in a tabular grid."/> 39 <property name="plugin.doc.url" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/> 40 <property name="plugin.main.version" value="1515"/> 41 <property name="plugin.jar.name" value="${ant.project.name}.jar"/> 42 43 44 <!-- 45 ************************************************ 46 ** should not be necessary to change the following properties 47 --> 48 <property name="josm" location="../../core/dist/josm-custom.jar"/> 49 <property name="plugin.build.dir" value="build"/> 50 <property name="plugin.src.dir" value="src"/> 51 <!-- this is the directory where the plugin jar is copied to --> 52 <property name="plugin.dist.dir" value="../../dist"/> 53 <property name="ant.build.javac.target" value="1.5"/> 54 <property name="plugin.dist.dir" value="../../dist"/> 55 <property name="plugin.jar" value="${plugin.dist.dir}/${plugin.jar.name}"/> 56 57 <!-- 58 ********************************************************** 59 ** init - initializes the build 60 ********************************************************** 61 --> 37 <!-- 38 ********************************************************** 39 ** init - initializes the build 40 ********************************************************** 41 --> 62 42 <target name="init"> 63 43 <mkdir dir="${plugin.build.dir}"/> 64 </target> 65 66 67 68 69 70 --> 44 </target> 45 46 <!-- 47 ********************************************************** 48 ** compile - complies the source tree 49 ********************************************************** 50 --> 71 51 <target name="compile" depends="init"> 72 52 <echo message="compiling sources for ${plugin.jar.name} ... "/> … … 77 57 </target> 78 58 79 80 81 82 83 --> 84 59 <!-- 60 ********************************************************** 61 ** dist - creates the plugin jar 62 ********************************************************** 63 --> 64 <target name="dist" depends="compile,revision"> 85 65 <echo message="creating ${plugin.jar.name} ... "/> 86 66 <copy todir="${plugin.build.dir}/resources"> 87 67 <fileset dir="resources"/> 88 68 </copy> 89 69 <copy todir="${plugin.build.dir}"> 90 70 <fileset dir="."> 91 92 71 <include name="README" /> 72 <include name="LICENSE" /> 93 73 </fileset> 94 74 </copy> 95 75 <copy todir="${plugin.build.dir}"> 96 97 98 76 <fileset dir="${plugin.src.dir}"> 77 <include name="**/*.dtd"/> 78 </fileset> 99 79 </copy> 100 80 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 101 81 <manifest> 102 <attribute name="Author" value=" ${plugin.author}"/>103 <attribute name="Plugin-Class" value=" ${plugin.class}"/>82 <attribute name="Author" value="Karl Guggisberg"/> 83 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/> 104 84 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 105 <attribute name="Plugin-Description" value=" ${plugin.description}"/>106 <attribute name="Plugin-Link" value=" ${plugin.doc.url}"/>107 <attribute name="Plugin-Mainversion" value=" ${plugin.main.version}"/>108 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 85 <attribute name="Plugin-Description" value="Provides a dialog for editing tags in a tabular grid."/> 86 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/> 87 <attribute name="Plugin-Mainversion" value="1515"/> 88 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 109 89 </manifest> 110 90 </jar> 111 91 </target> 112 113 114 115 116 117 118 119 --> 120 <target name="revision"> 121 122 123 124 125 126 127 92 93 <!-- 94 ********************************************************** 95 ** revision - extracts the current revision number for the 96 ** file build.number and stores it in the XML property 97 ** version.* 98 ********************************************************** 99 --> 100 <target name="revision"> 101 <!-- extract the SVN revision information --> 102 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 103 <env key="LANG" value="C"/> 104 <arg value="info"/> 105 <arg value="--xml"/> 106 <arg value="."/> 107 </exec> 128 108 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 129 109 <delete file="REVISION"/> 130 110 </target> 131 132 133 134 135 136 --> 111 112 <!-- 113 ********************************************************** 114 ** clean - clean up the build environment 115 ********************************************************** 116 --> 137 117 <target name="clean"> 138 118 <delete dir="${plugin.build.dir}"/> 139 119 <delete file="${plugin.jar}"/> 140 120 </target> 141 142 143 144 145 146 --> 147 121 122 <!-- 123 ********************************************************** 124 ** install - install the plugin in your local JOSM installation 125 ********************************************************** 126 --> 127 <target name="install" depends="dist"> 148 128 <property environment="env"/> 149 129 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> … … 154 134 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 155 135 </target> 156 157 <!--158 **********************************************************159 ** publish - publish the plugin jar160 **********************************************************161 -->162 <target name="publish">163 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">164 <env key="LANG" value="C"/>165 <arg value="commit"/>166 <arg value="--message"/>167 <arg value="manual build"/>168 <arg value="${plugin.jar}"/>169 </exec>170 </target>171 172 136 </project>
Note:
See TracChangeset
for help on using the changeset viewer.