Changeset 14128 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-03-19T13:26:29+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/duplicateway/build.xml
r12780 r14128 1 1 <project name="Duplicate-Way" default="dist" basedir="."> 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="josm" location="../../core/dist/josm-custom.jar" /> 6 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../../dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 10 6 <property name="ant.build.javac.target" value="1.5"/> 11 7 <target name="init"> … … 14 10 <target name="compile" depends="init"> 15 11 <echo message="creating ${plugin.jar}"/> 16 <mkdir dir="build"></mkdir> 17 <mkdir dir="${plugin.build.dir}/images"></mkdir> 18 <copy todir="build"> 19 <fileset dir="${plugin.build.dir}" casesensitive="yes"> 20 <filename name="**/*.class"/> 21 </fileset> 22 </copy> 23 <copy todir="${plugin.build.dir}/images"> 24 <fileset dir="images" casesensitive="yes"> 25 <filename name="**/*.png"/> 26 </fileset> 27 </copy> 28 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 29 <include name="**/*.java" /> 12 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 30 15 </javac> 31 16 </target> 32 <target name="dist" depends="compile"> 33 <jar destfile="${plugin.jar}" basedir="build"> 17 <target name="dist" depends="compile,revision"> 18 <copy todir="${plugin.build.dir}/images"> 19 <fileset dir="images"/> 20 </copy> 21 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 34 22 <manifest> 23 <attribute name="Author" value="Brent Easton"/> 35 24 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" /> 25 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 36 26 <attribute name="Plugin-Description" value="Duplicate Ways with an offset" /> 37 <attribute name="Plugin-Version" value="0.1"/> 38 <attribute name="Author" value="Brent Easton <b.easton@uws.edu.au>"/> 27 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 39 28 </manifest> 40 29 </jar> 41 30 </target> 31 <target name="revision"> 32 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 33 <env key="LANG" value="C"/> 34 <arg value="info"/> 35 <arg value="--xml"/> 36 <arg value="."/> 37 </exec> 38 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 39 <delete file="REVISION"/> 40 </target> 42 41 <target name="clean"> 43 <delete dir="${plugin.build.dir}" 44 <delete file="${plugin.jar}" 42 <delete dir="${plugin.build.dir}"/> 43 <delete file="${plugin.jar}"/> 45 44 </target> 46 45 <target name="install" depends="dist"> 47 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 46 <property environment="env"/> 47 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 48 <and> 49 <os family="windows"/> 50 </and> 51 </condition> 52 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 48 53 </target> 49 54 </project> -
applications/editors/josm/plugins/grid/build.xml
r12780 r14128 1 1 <project name="grid" default="dist" basedir="."> 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="josm" location="../../core/dist/josm-custom.jar" /> 6 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../../dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 10 <!-- point to your JOSM directory --> 11 <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" /> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 12 6 <property name="ant.build.javac.target" value="1.5"/> 13 7 <target name="init"> 14 <mkdir dir="build"></mkdir> 15 <mkdir dir="dist"></mkdir> 8 <mkdir dir="${plugin.build.dir}"/> 16 9 </target> 17 10 <target name="compile" depends="init"> 18 11 <echo message="creating ${plugin.jar}"/> 19 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 20 <include name="**/*.java" /> 12 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 21 15 </javac> 22 16 </target> 23 <target name="dist" depends="compile ">24 <copy todir=" build/images">25 <fileset dir="images" 17 <target name="dist" depends="compile,revision"> 18 <copy todir="${plugin.build.dir}/images"> 19 <fileset dir="images"/> 26 20 </copy> 27 <jar destfile="${plugin.jar}" basedir=" build">21 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 28 22 <manifest> 29 23 <attribute name="Plugin-Class" value="grid.GridPlugin" /> 24 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 30 25 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" /> 26 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 31 27 </manifest> 32 28 </jar> 33 29 </target> 30 <target name="revision"> 31 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 32 <env key="LANG" value="C"/> 33 <arg value="info"/> 34 <arg value="--xml"/> 35 <arg value="."/> 36 </exec> 37 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 38 <delete file="REVISION"/> 39 </target> 34 40 <target name="clean"> 35 <delete dir="${plugin.build.dir}" 36 <delete file="${plugin.jar}" 41 <delete dir="${plugin.build.dir}"/> 42 <delete file="${plugin.jar}"/> 37 43 </target> 38 44 <target name="install" depends="dist"> 39 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 45 <property environment="env"/> 46 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 47 <and> 48 <os family="windows"/> 49 </and> 50 </condition> 51 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 40 52 </target> 41 53 </project> -
applications/editors/josm/plugins/navigator/build.xml
r12780 r14128 1 1 <project name="navigator" default="dist" basedir="."> 2 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="josm" location="../../core/dist/josm-custom.jar" /> 6 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../../dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 10 <!-- plugin meta data (enter new version number if anything changed!) --> 11 <property name="plugin.version" value="0.3.1"/> 12 <property name="plugin.description" value="Provides navigation/autorouting functionality (V${plugin.version})."/> 13 <property name="plugin.stage" value="50"/> 14 <property name="plugin.class" value="at.dallermassl.josm.plugin.navigator.NavigatorPlugin"/> 15 <!-- update site meta data --> 16 <property name="plugin.site.file" value="josm-site.xml"/> 17 <property name="plugin.site.description" value="Josm's Surveyor Update Site"/> 18 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/> 19 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/> 2 <property name="josm" location="../../core/dist/josm-custom.jar"/> 3 <property name="plugin.dist.dir" value="../../dist"/> 4 <property name="plugin.build.dir" value="build"/> 5 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 20 6 <property name="ant.build.javac.target" value="1.5"/> 21 <target name="dist" depends="compile,site"> 22 <!-- images --> 23 <copy todir="${plugin.build.dir}/images"> 24 <fileset dir="src/images" /> 25 </copy> 26 <!-- copy configuration xml files 27 <copy todir="${plugin.build.dir}"> 28 <fileset dir="src"> 29 <include name="*.xml"/> 30 </fileset> 31 </copy> 32 --> 33 <!-- create jar file --> 34 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 35 <manifest> 36 <attribute name="Plugin-Class" value="${plugin.class}" /> 37 <attribute name="Plugin-Description" value="${plugin.description}" /> 38 <attribute name="Plugin-Version" value="${plugin.version}" /> 39 <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" /> 40 <attribute name="Plugin-Stage" value="${plugin.stage}" /> 41 </manifest> 42 </jar> 7 <target name="init"> 8 <mkdir dir="${plugin.build.dir}"/> 43 9 </target> 44 10 <target name="compile" depends="init"> 45 11 <echo message="creating ${plugin.jar}"/> 46 <mkdir dir="${plugin.build.dir}"/> 47 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 12 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}"> 13 <compilerarg value="-Xlint:deprecation"/> 14 <compilerarg value="-Xlint:unchecked"/> 48 15 <classpath> 49 <pathelement path="${josm.build.dir}/build"/> 50 <fileset dir="${josm.build.dir}/lib"> 51 <include name="**/*.jar"/> 52 </fileset> 16 <pathelement location="${josm}"/> 53 17 <fileset dir="lib"> 54 18 <include name="**/*.jar"/> … … 57 21 </javac> 58 22 </target> 59 <target name=" install" depends="dist">60 < copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />61 <copy todir="${josm.home.dir}/plugins">62 <fileset dir="lib">63 <include name="**/*.jar"/>64 < /fileset>23 <target name="dist" depends="compile,revision"> 24 <unjar dest="${plugin.build.dir}"> 25 <fileset dir="lib"/> 26 </unjar> 27 <copy todir="${plugin.build.dir}/images"> 28 <fileset dir="images"/> 65 29 </copy> 30 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 31 <manifest> 32 <attribute name="Author" value="Christof Dallermassl" /> 33 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.navigator.NavigatorPlugin" /> 34 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 35 <attribute name="Plugin-Description" value="Provides navigation/autorouting functionality" /> 36 <attribute name="Plugin-Stage" value="50" /> 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 </manifest> 39 </jar> 66 40 </target> 67 <target name="init"> 68 <echo>java version: ${java.version}</echo> 41 <target name="revision"> 42 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 43 <env key="LANG" value="C"/> 44 <arg value="info"/> 45 <arg value="--xml"/> 46 <arg value="."/> 47 </exec> 48 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 49 <delete file="REVISION"/> 69 50 </target> 70 51 <target name="clean"> 71 <delete dir="${plugin.build.dir}" /> 72 <delete dir="${plugin.site.file}" /> 73 <delete file="${plugin.jar}" /> 52 <delete dir="${plugin.build.dir}"/> 53 <delete file="${plugin.jar}"/> 74 54 </target> 75 <!-- write site description for the given plugin so josm will accept it --> 76 <target name="site"> 77 <echo message="creating site description in ${plugin.site.file}"/> 78 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 79 <plugins> 80 <plugin id="${ant.project.name}" version="${plugin.version}"> 81 <name>${ant.project.name}</name> 82 <description>${plugin.description}</description> 83 <resource>${plugin.site.url}${plugin.jar}</resource> 84 </plugin> 85 </plugins> 86 </echo> 87 </target> 88 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 89 <target name="site-full-donotuse"> 90 <echo message="creating site description in ${plugin.site.file}"/> 91 <echo file="${plugin.site.file}"><?xml version="1.0"?> 92 <site version="1.0"> 93 <!-- meta data of site --> 94 <site-info> 95 <site-name>${plugin.site.description}</site-name> 96 <site-url>${plugin.site.url}</site-url> 97 </site-info> 98 99 <!-- plugins available on this site --> 100 <plugins> 101 <plugin id="${ant.project.name}" version="${plugin.version}"> 102 <name>${ant.project.name}</name> 103 <description>${plugin.description}</description> 104 <resources> 105 <resource src="${plugin.site.url}${plugin.jar}" 106 target="${josm.home.dir}/plugins/${plugin.jar}"/> 107 </resources> 108 </plugin> 109 </plugins> 110 </site> 111 </echo> 112 </target> 113 <!-- upload the site description and the jar file via ssh --> 114 <target name="upload" depends="dist,site"> 115 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 116 <exec executable="scp"> 117 <arg value="${plugin.jar}"/> 118 <arg value="${plugin.site.file}"/> 119 <arg value="${plugin.site.upload.target}"/> 120 </exec> 55 <target name="install" depends="dist"> 56 <property environment="env"/> 57 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins"> 58 <and> 59 <os family="windows"/> 60 </and> 61 </condition> 62 <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/> 121 63 </target> 122 64 </project>
Note:
See TracChangeset
for help on using the changeset viewer.