Changeset 26174 in osm for applications/editors/josm/plugins/ElevationProfile
- Timestamp:
- 2011-06-25T19:02:31+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile
- Files:
-
- 26 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/build.xml
r25192 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. … … 26 26 ** should not be necessary to change the following properties 27 27 --> 28 29 30 <property name="plugin.build.dir" 31 <property name="plugin.src.dir" 28 <property name="josm" location="../../core/dist/josm-custom.jar"/> 29 <property name="josm_stable" location="../../core/dist/3529/josm-tested.jar"/> 30 <property name="plugin.build.dir" value="build"/> 31 <property name="plugin.src.dir" value="src"/> 32 32 <!-- this is the directory where the plugin jar is copied to --> 33 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}/${ant.project.name}.jar"/> 36 34 <property name="plugin.dist.dir" value="../../dist"/> 35 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 37 36 <!-- 38 37 ********************************************************** … … 43 42 <mkdir dir="${plugin.build.dir}"/> 44 43 </target> 45 46 44 <!-- 47 45 ********************************************************** … … 56 54 </javac> 57 55 </target> 58 59 56 <!-- 60 57 ********************************************************** … … 63 60 --> 64 61 <target name="dist" depends="compile,revision"> 65 66 67 68 69 70 62 <condition property="josm.dist.dir" value="../../dist" else="dist"> 63 <and> 64 <os family="windows"/> 65 </and> 66 </condition> 67 <mkdir dir="${plugin.dist.dir}"/> 71 68 <echo message="creating ${plugin.jar} ... "/> 72 <!--73 <copy todir="${plugin.build.dir}/resources">74 <fileset dir="resources"/>75 </copy>76 -->77 69 <copy todir="${plugin.build.dir}/images"> 78 70 <fileset dir="images"/> 79 71 </copy> 72 <copy todir="${plugin.build.dir}/data"> 73 <fileset dir="data"/> 74 </copy> 80 75 <copy todir="${plugin.build.dir}"> 81 76 <fileset dir="."> 82 <include name="README" 83 <include name="LICENSE" 77 <include name="README"/> 78 <include name="LICENSE"/> 84 79 </fileset> 85 80 </copy> 86 81 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 87 <!-- 82 <!-- 88 83 ************************************************ 89 84 ** configure these properties. Most of them will be copied to the plugins … … 98 93 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 99 94 <attribute name="Plugin-Description" value="Shows the elevation profile and some statistical data of a GPX track."/> 100 95 <attribute name="de_Plugin-Description" value="Zeigt das Höhenprofil und statistische Werte eines GPX-Tracks."/> 101 96 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ElevationProfile"/> 102 97 <attribute name="Plugin-Mainversion" value="3835"/> 103 98 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 104 99 <attribute name="Plugin-Icon" value="images/elevation.png"/> 105 100 </manifest> 106 </jar> 101 </jar> 107 102 </target> 108 109 103 <!-- 110 104 ********************************************************** … … 115 109 --> 116 110 <target name="revision"> 117 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 118 <env key="LANG" value="C"/> 119 <arg value="info"/> 120 <arg value="--xml"/> 121 <arg value="build.xml"/> 122 </exec> 123 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 124 <echo message="Revision: ${version.entry.commit.revision}"/> 125 <delete file="REVISION"/> 126 </target> 127 111 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 112 <env key="LANG" value="C"/> 113 <arg value="info"/> 114 <arg value="--xml"/> 115 <arg value="build.xml"/> 116 </exec> 117 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 118 <echo message="Revision: ${version.entry.commit.revision}"/> 119 <delete file="REVISION"/> 120 </target> 128 121 <!-- 129 122 ********************************************************** … … 135 128 <delete file="${plugin.jar}"/> 136 129 </target> 137 138 130 <!-- 139 131 ********************************************************** … … 147 139 <os family="windows"/> 148 140 </and> 149 </condition> 141 </condition> 150 142 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 151 143 </target>
Note:
See TracChangeset
for help on using the changeset viewer.