Changeset 23393 in osm for applications/editors/josm/plugins/smed/plugs/oseam/build.xml
- Timestamp:
- 2010-09-29T00:12:24+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/build.xml
r23392 r23393 46 46 <property name="plugin.build.dir" value="build"/> 47 47 <property name="plugin.src.dir" value="src"/> 48 <property name="smed.build.dir" value="../../../smed/build"/> 49 <property name="smed.src.dir" value="../../../smed/src"/> 48 50 <!-- this is the directory where the plugin jar is copied to --> 49 51 <property name="plugin.dist.dir" value="../../../../dist"/> 50 52 <property name="ant.build.javac.target" value="1.5"/> 51 <property name="plugin.dist.dir" value="../../../../dist"/>52 53 <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/> 53 54 … … 63 64 <!-- 64 65 ********************************************************** 66 ** init_smed - initializes the build of smed 67 ********************************************************** 68 --> 69 <target name="init_smed"> 70 <mkdir dir="${smed.build.dir}"/> 71 </target> 72 73 <!-- 74 ********************************************************** 75 ** compile_smed - compiles the source tree of smed 76 ********************************************************** 77 --> 78 <target name="compile_smed" depends="init_smed"> 79 <echo message="compiling sources for smed.jar ... "/> 80 <javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}"> 81 <compilerarg value="-Xlint:deprecation"/> 82 <compilerarg value="-Xlint:unchecked"/> 83 </javac> 84 </target> 85 86 <!-- 87 ********************************************************** 88 ** dist_smed - creates smed.jar 89 ********************************************************** 90 --> 91 <target name="dist_smed" depends="compile_smed"> 92 <echo message="creating smed.jar ... "/> 93 94 <copy todir="${smed.build.dir}/images"> 95 <fileset dir="${smed.src.dir}/images"/> 96 </copy> 97 98 <copy todir="${smed.build.dir}/images"> 99 <fileset dir="../../../smed/images"/> 100 </copy> 101 102 <copy todir="${smed.build.dir}/smed/msg"> 103 <fileset dir="${smed.src.dir}/smed/msg"/> 104 </copy> 105 106 <copy todir="${smed.build.dir}"> 107 <fileset dir="../../../smed"> 108 <include name="*.txt" /> 109 </fileset> 110 </copy> 111 112 <jar destfile="${smed}" basedir="${smed.build.dir}"> 113 <!-- 114 ************************************************ 115 ** configure these properties. Most of them will be copied to the plugins 116 ** manifest file. Property values will also show up in the list available 117 ** plugins: http://josm.openstreetmap.de/wiki/Plugins. 118 ** 119 ************************************************ 120 --> 121 <manifest> 122 <attribute name="Author" value="Werner"/> 123 <attribute name="Plugin-Class" value="smed.Smed"/> 124 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 125 <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/> 126 <attribute name="Plugin-Icon" value="images/Smed.png"/> 127 <attribute name="Plugin-Link" value="http://openseamap.org/"/> 128 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 129 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 130 </manifest> 131 </jar> 132 </target> 133 134 <!-- 135 ********************************************************** 65 136 ** compile - complies the source tree 66 137 ********************************************************** 67 138 --> 68 <target name="compile" depends="init"> 139 <target name="compile" depends="init,dist_smed"> 69 140 <echo message="compiling sources for ${plugin.jar} ... "/> 70 141 <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}"> … … 73 144 </javac> 74 145 </target> 146 75 147 76 148 <!--
Note:
See TracChangeset
for help on using the changeset viewer.