Changeset 13587 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-02-08T12:37:33+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r13382 r13587 1 1 <project name="cadastre-fr" default="dist" basedir="."> 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"/> 6 <property name="ant.build.javac.target" value="1.5"/> 7 <target name="init"> 8 <mkdir dir="${plugin.build.dir}"/> 9 </target> 10 <target name="compile" depends="init"> 11 <echo message="creating ${plugin.jar}"/> 12 <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true"> 13 <include name="**/*.java" /> 14 </javac> 15 </target> 2 16 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="josm" location="../../core/dist/josm-custom.jar" /> 7 <property name="plugin.build.dir" value="build"/> 8 <property name="plugin.dist.dir" value="../../dist"/> 9 <property name="plugin.name" value="${ant.project.name}"/> 10 <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/> 11 12 <property name="ant.build.javac.target" value="1.5"/> 13 14 <target name="init"> 15 <mkdir dir="${plugin.build.dir}"/> 16 </target> 17 18 <target name="compile" depends="init"> 19 <echo message="creating ${plugin.jar}"/> 20 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"> 21 <include name="**/*.java" /> 22 </javac> 23 </target> 24 25 <target name="dist" depends="compile"> 26 <copy todir="${plugin.build.dir}/images"> 27 <fileset dir="images"/> 28 </copy> 29 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 30 <env key="LANG" value="C"/> 31 <arg value="info"/> 32 <arg value="--xml"/> 33 <arg value="."/> 34 </exec> 35 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 36 <delete file="REVISION"/> 37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 38 <manifest> 39 <attribute name="Plugin-Class" value="cadastre_fr.CadastrePlugin"/> 40 <attribute name="Plugin-Description" value="A special handler for the french land registry WMS server"/> 41 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 42 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 43 <attribute name="Plugin-Stage" value="60"/> 44 <attribute name="Author" value="Pieren <pieren3@gmail.com>"/> 45 </manifest> 46 </jar> 47 </target> 48 49 <target name="clean"> 50 <delete dir="${plugin.build.dir}" /> 51 <delete file="${plugin.jar}" /> 52 </target> 53 54 <target name="install" depends="dist"> 55 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 56 </target> 57 58 <target name="test" depends="install"> 59 <java jar="${josm}" fork="true"/> 60 </target> 61 17 <target name="dist" depends="compile"> 18 <copy todir="${plugin.build.dir}/images"> 19 <fileset dir="images"/> 20 </copy> 21 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 22 <env key="LANG" value="C"/> 23 <arg value="info"/> 24 <arg value="--xml"/> 25 <arg value="."/> 26 </exec> 27 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 28 <delete file="REVISION"/> 29 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 30 <manifest> 31 <attribute name="Plugin-Class" value="cadastre_fr.CadastrePlugin"/> 32 <attribute name="Plugin-Description" value="A special handler for the french land registry WMS server"/> 33 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 34 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 35 <attribute name="Plugin-Stage" value="60"/> 36 <attribute name="Plugin-Mainversion" value="1280" /> 37 <attribute name="Author" value="Pieren <pieren3@gmail.com>"/> 38 </manifest> 39 </jar> 40 </target> 41 <target name="clean"> 42 <delete dir="${plugin.build.dir}" /> 43 <delete file="${plugin.jar}" /> 44 </target> 62 45 </project> -
applications/editors/josm/plugins/terracer/build.xml
r13554 r13587 1 1 <project name="terracer" 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">12 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}"> 20 13 <compilerarg value="-Xlint:deprecation"/> 21 14 <compilerarg value="-Xlint:unchecked"/> … … 24 17 </target> 25 18 <target name="dist" depends="compile"> 26 <copy todir=" build/images" >19 <copy todir="${plugin.build.dir}/images" > 27 20 <fileset dir="images" /> 28 21 </copy> … … 35 28 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 36 29 <delete file="REVISION"/> 37 <jar destfile="${plugin.jar}" basedir=" build">30 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 38 31 <manifest> 39 32 <attribute name="Plugin-Class" value="terracer.TerracerPlugin" /> 40 33 <attribute name="Plugin-Description" value="Easy creation of individual terraced houses." /> 41 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" /> 34 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" /> 35 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 36 <attribute name="Plugin-Mainversion" value="1280" /> 42 37 </manifest> 43 38 </jar> … … 47 42 <delete file="${plugin.jar}" /> 48 43 </target> 49 <target name="install" depends="dist">50 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>51 </target>52 44 </project>
Note:
See TracChangeset
for help on using the changeset viewer.