Changeset 15707 in osm for applications/editors/josm/plugins/czechaddress/build.xml
- Timestamp:
- 2009-06-06T22:25:31+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/build.xml
r15582 r15707 1 1 <project name="czechaddress" default="dist" basedir="."> 2 <property name="josm.base" value="../../core"/> 3 <property name="josm.jar" value="${josm.base}/dist/josm-custom.jar"/> 4 <property name="josm.doc.dir" value="${josm.base}/doc"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 5 3 <property name="plugin.dist.dir" value="../../dist"/> 6 4 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.javadoc.dir" value="doc"/>8 <property name="plugin.basepackage" value="org.openstreetmap.josm.plugins.czechaddress"/>9 <property name="plugin.basepackage.dir" value="org/openstreetmap/josm/plugins/czechaddress"/>10 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 11 6 <property name="ant.build.javac.target" value="1.5"/> 12 13 <target name="clean">14 <delete dir="${plugin.build.dir}"/>15 <delete dir="${plugin.jar}"/>16 </target>17 7 <target name="init"> 18 8 <mkdir dir="${plugin.build.dir}"/> 19 <mkdir dir="${plugin.build.dir}"/>20 9 </target> 21 22 <target name="compile" 23 depends="init" 24 description="Compile the plugin"> 25 26 <!-- compile the plugin --> 27 <javac srcdir="src" 28 classpath="${josm.jar}" 29 destdir="${plugin.build.dir}" 30 debug="true"/> 31 32 <!-- create the manifest --> 33 <manifest file="${plugin.build.dir}/${plugin.basepackage.dir}/MANIFEST.MF"> 34 <attribute name="Author" value="Radomír Černoch"/> 35 <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/> 36 <attribute name="Plugin-Mainversion" value="1607"/> 37 <attribute name="Plugin-Version" value="0.2.0"/> 38 <attribute name="Plugin-Class" value="${plugin.basepackage}.CzechAddressPlugin"/> 39 </manifest> 40 41 <!-- include the images --> 10 <target name="compile" depends="init"> 11 <echo message="creating ${plugin.jar}"/> 12 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 15 </javac> 16 </target> 17 <target name="dist" depends="compile,revision"> 42 18 <copy todir="${plugin.build.dir}/images"> 43 19 <fileset dir="images"/> 44 20 </copy> 21 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 22 <manifest> 23 <attribute name="Author" value="Radomír Černoch"/> 24 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.czechaddress.CzechAddressPlugin"/> 25 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 26 <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/> 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/SlippyMap"/> 28 <attribute name="Plugin-Mainversion" value="1607"/> 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 </manifest> 31 </jar> 45 32 </target> 46 47 <target name="dist" 48 depends="compile" 49 description="Create the .jar file for distribution"> 50 <mkdir dir="${plugin.dist.dir}"/> 51 <jar destfile="${plugin.jar}" 52 basedir="${plugin.build.dir}" 53 manifest="${plugin.build.dir}/${plugin.basepackage.dir}/MANIFEST.MF"/> 33 <target name="revision"> 34 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 35 <env key="LANG" value="C"/> 36 <arg value="info"/> 37 <arg value="--xml"/> 38 <arg value="."/> 39 </exec> 40 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 41 <delete file="REVISION"/> 54 42 </target> 55 56 <target name="doc" description="Create Javadoc API documentation"> 57 <!--<ant antfile="build.xml" target="doc" dir="${josm.base}"/>--> 58 <mkdir dir="${plugin.javadoc.dir}"/> 59 <javadoc sourcepath="src" 60 packagenames="*" 61 destdir="${plugin.javadoc.dir}" 62 use="true" 63 charset="UTF-8"> 64 <doctitle><![CDATA[Czech Address JOSM plugin]]></doctitle> 65 <bottom><![CDATA[<i>Licenced under GPLv3. Bugreports should be sent to 66 <a href='mailto:radomir.cernoch@gmail.com'>Radomír Černoch</a></i>]]> 67 </bottom> 68 <!--<tag name="todo" scope="all" description="To do:"/>--> 69 <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/> 70 <link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/> 71 <!--<link href="file://${user.home}/devel/core/doc"/>--> 72 </javadoc> 43 <target name="clean"> 44 <delete dir="${plugin.build.dir}"/> 45 <delete file="${plugin.jar}"/> 73 46 </target> 74 75 47 <target name="install" depends="dist"> 76 48 <property environment="env"/> 77 <condition property="josm.plugins.dir" 78 value="${env.APPDATA}/JOSM/plugins"79 else="${user.home}/.josm/plugins">80 < and><os family="windows"/></and>49 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 50 <and> 51 <os family="windows"/> 52 </and> 81 53 </condition> 82 54 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 83 55 </target> 84 85 <!-- Before running "run" target, please "ant dist" the JOSM. -->86 <target name="run" depends="compile">87 <java classname="JOSM" fork="true">88 <jvmarg value="-Xmx1024m"/>89 <jvmarg value="-Xdebug"/>90 <jvmarg value="-ea"/>91 <classpath>92 <pathelement location="${plugin.build.dir}"/>93 <pathelement path="${java.class.path}"/>94 </classpath>95 <classpath>96 <pathelement location="${josm.jar}"/>97 <pathelement path="${java.class.path}"/>98 </classpath>99 </java>100 </target>101 102 56 </project>
Note:
See TracChangeset
for help on using the changeset viewer.