Changeset 5153 in osm
- Timestamp:
- 2007-10-24T20:13:09+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/build.xml
r5147 r5153 21 21 </target> 22 22 23 <target name="build" depends="compile"> 23 <target name="build" depends="dist"> 24 </target> 25 26 <target name="dist" depends="compile"> 27 <mkdir dir="dist"/> 24 28 <ant dir="colorscheme" antfile="build.xml" target="dist"/> 25 <ant dir="lang" antfile="build.xml" target="install-all"/> 26 <ant dir="mappaint" antfile="build.xml" target="build"/> 29 <ant dir="duplicateway" antfile="build.xml" target="dist"/> 30 <ant dir="lang" antfile="build.xml" target="dist"/> 31 <ant dir="mappaint" antfile="build.xml" target="dist"/> 27 32 <ant dir="namefinder" antfile="build.xml" target="dist"/> 28 <ant dir="nearclick" antfile="build.xml" target="build"/> 29 <ant dir="osmarender" antfile="build.xml" target="build"/> 30 <ant dir="plastic_laf" antfile="build.xml" target="build"/> 33 <ant dir="nearclick" antfile="build.xml" target="dist"/> 34 <ant dir="openvisible" antfile="build.xml" target="dist"/> 35 <ant dir="osmarender" antfile="build.xml" target="dist"/> 36 <ant dir="plastic_laf" antfile="build.xml" target="dist"/> 31 37 <ant dir="slippymap" antfile="build.xml" target="dist"/> 32 <ant dir="tagging-preset-tester" antfile="build.xml" target="build"/> 33 <ant dir="validator" antfile="build.xml" target="build"/> 34 <ant dir="wmsplugin" antfile="build.xml" target="build"/> 35 <ant dir="ywms" antfile="build.xml" target="build"/> 38 <ant dir="tagging-preset-tester" antfile="build.xml" target="dist"/> 39 <ant dir="utilsplugin" antfile="build.xml" target="dist"/> 40 <ant dir="validator" antfile="build.xml" target="dist"/> 41 <ant dir="wmsplugin" antfile="build.xml" target="dist"/> 42 <ant dir="ywms" antfile="build.xml" target="dist"/> 36 43 37 44 <ant dir="livegps" antfile="build.xml" target="dist"/> 38 45 <ant dir="surveyor" antfile="build.xml" target="dist"/> 39 <!--ant dir="grid" antfile="build.xml" target="build"/--> 40 <!-- ant dir="pluginmanager" antfile="build.xml" target="dist"/ --> 41 <!-- ant dir="tways" antfile="build.xml" target="build"/ --> 42 <!-- ant dir="waypoints" antfile="build.xml" target="build"/ --> 43 <!-- ant dir="navigator" antfile="build.xml" target="dist"/ --> 46 </target> 47 48 <target name="build_defect" depends="compile"> 49 <ant dir="lakewalker" antfile="build.xml" target="dist"/> 50 <ant dir="navigator" antfile="build.xml" target="dist"/> 51 <ant dir="pluginmanager" antfile="build.xml" target="dist"/> 52 <ant dir="waypoints" antfile="build.xml" target="dist"/> 53 <ant dir="grid" antfile="build.xml" target="dist"/> 44 54 </target> 45 55 46 56 <target name="clean"> 47 57 <ant dir="colorscheme" antfile="build.xml" target="clean"/> 58 <ant dir="duplicateway" antfile="build.xml" target="clean"/> 48 59 <ant dir="grid" antfile="build.xml" target="clean"/> 60 <ant dir="lakewalker" antfile="build.xml" target="clean"/> 49 61 <ant dir="lang" antfile="build.xml" target="clean"/> 50 62 <ant dir="mappaint" antfile="build.xml" target="clean"/> … … 52 64 <ant dir="navigator" antfile="build.xml" target="clean"/> 53 65 <ant dir="nearclick" antfile="build.xml" target="clean"/> 66 <ant dir="openvisible" antfile="build.xml" target="clean"/> 54 67 <ant dir="osmarender" antfile="build.xml" target="clean"/> 55 68 <ant dir="plastic_laf" antfile="build.xml" target="clean"/> 56 69 <ant dir="pluginmanager" antfile="build.xml" target="clean"/> 70 <ant dir="slippymap" antfile="build.xml" target="clean"/> 57 71 <ant dir="tagging-preset-tester" antfile="build.xml" target="clean"/> 58 <ant dir=" tways"antfile="build.xml" target="clean"/>72 <ant dir="utilsplugin" antfile="build.xml" target="clean"/> 59 73 <ant dir="validator" antfile="build.xml" target="clean"/> 60 74 <ant dir="waypoints" antfile="build.xml" target="clean"/> … … 64 78 <ant dir="surveyor" antfile="build.xml" target="clean"/> 65 79 <ant dir="livegps" antfile="build.xml" target="clean"/> 80 81 <delete dir="dist" /> 66 82 </target> 67 83 … … 69 85 </target> 70 86 71 <target name="install" depends=" build">87 <target name="install" depends="dist"> 72 88 </target> 73 89 -
applications/editors/josm/plugins/colorscheme/build.xml
r5147 r5153 2 2 3 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="plugin.build.dir" value="bin"/> 7 <property name="plugin.name" value="${ant.project.name}"/> 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 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"/> 9 11 10 12 <!-- plugin meta data (enter new version number if anything changed!) --> … … 65 67 66 68 <target name="clean"> 69 <delete dir="${plugin.site.file}" /> 67 70 <delete dir="${plugin.build.dir}" /> 68 <delete dir="${plugin.site.file}" /> 69 <delete dir="${plugin.jar}" /> 71 <delete file="${plugin.jar}" /> 70 72 </target> 71 73 -
applications/editors/josm/plugins/duplicateway/build.xml
r5147 r5153 1 <project name="Duplicate-Way" default=" jar" basedir=".">1 <project name="Duplicate-Way" default="dist" basedir="."> 2 2 3 <property name="josm" location="../../core/dist/josm-custom.jar" /> 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 <target name="init"> 13 <mkdir dir="${plugin.build.dir}"/> 14 </target> 4 15 5 <target name="compile" depends="clean"> 16 17 <target name="compile" depends="init"> 6 18 <mkdir dir="build"></mkdir> 7 <mkdir dir=" build/images"></mkdir>19 <mkdir dir="${plugin.build.dir}/images"></mkdir> 8 20 <copy todir="build"> 9 <fileset dir=" bin" casesensitive="yes">21 <fileset dir="${plugin.build.dir}" casesensitive="yes"> 10 22 <filename name="**/*.class"/> 11 23 </fileset> 12 24 </copy> 13 <copy todir=" build/images">25 <copy todir="${plugin.build.dir}/images"> 14 26 <fileset dir="images" casesensitive="yes"> 15 27 <filename name="**/*.png"/> … … 18 30 </target> 19 31 20 <target name=" jar" depends="compile">21 <jar destfile=" Duplicate-Way.jar" basedir="build">32 <target name="dist" depends="compile"> 33 <jar destfile="${plugin.jar}" basedir="build"> 22 34 <manifest> 23 35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" /> … … 30 42 31 43 <target name="clean"> 32 <delete dir=" build" />33 <delete file=" Duplicate-Way.jar" />44 <delete dir="${plugin.build.dir}" /> 45 <delete file="${plugin.jar}" /> 34 46 </target> 35 47 36 <target name="install" depends=" jar">37 <copy file=" Duplicate-Way.jar" todir="${user.home}/.josm/plugins"/>48 <target name="install" depends="dist"> 49 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 38 50 </target> 39 51 -
applications/editors/josm/plugins/grid/build.xml
r5147 r5153 1 <project name="grid" default=" build" basedir=".">1 <project name="grid" default="dist" basedir="."> 2 2 3 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="plugin.build.dir" value="bin"/> 7 <property name="plugin.name" value="${ant.project.name}"/> 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 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 9 12 10 13 <!-- point to your JOSM directory --> … … 24 27 </target> 25 28 26 <target name=" build" depends="compile">29 <target name="dist" depends="compile"> 27 30 <copy todir="build/images" > 28 31 <fileset dir="images" /> … … 37 40 38 41 <target name="clean"> 39 <delete dir="build" /> 40 <delete dir="dist" /> 41 <delete dir="${plugin.jar}" /> 42 <delete dir="${plugin.build.dir}" /> 43 <delete file="${plugin.jar}" /> 42 44 </target> 43 45 44 <target name="install" depends=" build">46 <target name="install" depends="dist"> 45 47 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 46 48 </target> -
applications/editors/josm/plugins/lakewalker/build.xml
r5147 r5153 1 <project name="Lakewalker" default=" jar" basedir=".">1 <project name="Lakewalker" default="dist" basedir="."> 2 2 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 3 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> 4 13 5 <target name="compile" depends="clean"> 14 <target name="init"> 15 <mkdir dir="${plugin.build.dir}"/> 16 </target> 17 18 <target name="compile" depends="init"> 6 19 <mkdir dir="build"></mkdir> 7 20 <mkdir dir="build/images"></mkdir> 8 21 <copy todir="build"> 9 <fileset dir=" bin" casesensitive="yes">22 <fileset dir="${plugin.build.dir}" casesensitive="yes"> 10 23 <filename name="**/*.class"/> 11 24 </fileset> … … 18 31 </target> 19 32 20 <target name=" jar" depends="compile">21 <jar destfile=" Lakewalker.jar" basedir="build">33 <target name="dist" depends="compile"> 34 <jar destfile="${plugin.jar}" basedir="build"> 22 35 <manifest> 23 36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" /> … … 30 43 31 44 <target name="clean"> 32 <delete dir=" build" />33 <delete file=" Lakewalker.jar" />45 <delete dir="${plugin.build.dir}" /> 46 <delete file="${plugin.jar}" /> 34 47 </target> 35 48 36 <target name="install" depends=" jar">37 <copy file=" Lakewalker.jar" todir="${user.home}/Application Data/JOSM/plugins"/>49 <target name="install" depends="dist"> 50 <copy file="${plugin.jar}" todir="${user.home}/Application Data/JOSM/plugins"/> 38 51 <copy todir="${user.home}/Application Data/JOSM/plugins/Lakewalker"> 39 52 <fileset dir="Lakewalker"> -
applications/editors/josm/plugins/lang/build.xml
r5147 r5153 1 1 <project name="lang" default="install-all" basedir="."> 2 2 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 3 12 4 <!-- compilation properties --> 5 <property name="josm.build.dir" value="../../core"/> 6 <property name="josm.home.dir" value="${user.home}/.josm"/> 7 <property name="plugin.build.dir" value="bin"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="${plugin.name}.jar"/> 10 <property name="plugins" value=".."/> 11 13 <target name="dist" depends="install-all"> 14 </target> 15 12 16 <target name="install-all" depends="josm-build,keys.pot"> 13 17 <ant target="install"><property name="language" value="de"/></ant> … … 18 22 19 23 <target name="install"> 20 <mkdir dir="${language}/b in"/>21 <mkdir dir=" dist"/>22 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/b in" />24 <mkdir dir="${language}/build"/> 25 <mkdir dir="../dist"/> 26 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/build" /> 23 27 24 28 <exec executable="msgmerge"> … … 27 31 28 32 <exec executable="msgfmt"> 29 <arg line="--java2 -d${language}/b in-rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/>33 <arg line="--java2 -d${language}/build -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/> 30 34 </exec> 31 35 32 <copy file="i18n.properties" todir="${language}/b in/org/openstreetmap/josm" />36 <copy file="i18n.properties" todir="${language}/build/org/openstreetmap/josm" /> 33 37 34 <jar destfile=" dist/lang-${language}.jar" basedir="${language}/bin">38 <jar destfile="../dist/lang-${language}.jar" basedir="${language}/build"> 35 39 <manifest> 36 40 <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" /> … … 58 62 59 63 <target name="clean"> 60 <delete dir="build" /> 61 <delete dir="dist" /> 62 <delete dir="${plugin.jar}" /> 64 <ant target="clean_lang"><property name="language" value="de"/></ant> 65 <ant target="clean_lang"><property name="language" value="fr"/></ant> 66 <ant target="clean_lang"><property name="language" value="ro"/></ant> 67 <ant target="clean_lang"><property name="language" value="en_GB"/></ant> 68 <delete dir="${plugin.build.dir}" /> 69 </target> 70 71 <target name="clean_lang"> 72 <delete file="../dist/lang-${language}.jar" /> 73 <delete dir="${language}/build"/> 63 74 </target> 64 75 -
applications/editors/josm/plugins/livegps/build.xml
r5147 r5153 1 1 <project name="livegps" default="dist" basedir="."> 2 2 3 <!-- compilation properties --> 3 <property name="josm.build.dir" value="../../core"/> 4 <property name="josm.home.dir" value="${user.home}/.josm"/> 5 <property name="plugin.build.dir" value="build"/> 6 <property name="plugin.name" value="${ant.project.name}"/> 7 <property name="plugin.jar" value="${plugin.name}.jar"/> 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="plugin.jar" value="../dist/${plugin.name}.jar"/> 8 13 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/> 9 14 … … 47 52 <include name="**/*.jar"/> 48 53 </fileset> 49 <pathelement location="${ livegpsplugin.jar}"/>54 <pathelement location="${plugin.jar}"/> 50 55 </classpath> 51 56 </javac> … … 63 68 <delete dir="${plugin.build.dir}" /> 64 69 <delete dir="${plugin.site.file}" /> 65 <delete dir="${plugin.jar}" />70 <delete file="${plugin.jar}" /> 66 71 </target> 67 72 -
applications/editors/josm/plugins/mappaint/build.xml
r5147 r5153 1 <project name="mappaint" default=" build" basedir=".">1 <project name="mappaint" default="dist" basedir="."> 2 2 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 3 12 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary --> 4 13 <property name="josm" location="../../core/dist/josm-custom.jar" /> … … 25 34 </target> 26 35 27 <target name=" build" depends="compile">36 <target name="dist" depends="compile"> 28 37 <copy todir="build/standard"> 29 38 <fileset dir="styles/standard"></fileset> … … 37 46 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 38 47 <delete file="REVISION"/> 39 <jar destfile=" dist/mappaint.jar" basedir="build">48 <jar destfile="${plugin.jar}" basedir="build"> 40 49 <manifest> 41 50 <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" /> … … 49 58 50 59 <target name="clean"> 51 <delete dir=" build" />52 <delete dir="dist" />60 <delete dir="${plugin.build.dir}" /> 61 <delete file="${plugin.jar}" /> 53 62 </target> 54 63 … … 57 66 </target> 58 67 59 <target name="install" depends=" build">60 <copy file=" dist/mappaint.jar" todir="${plugins}"/>68 <target name="install" depends="dist"> 69 <copy file="${plugin.jar}" todir="${plugins}"/> 61 70 </target> 62 71 -
applications/editors/josm/plugins/namefinder/build.xml
r5147 r5153 1 1 <project name="namefinder" default="dist" basedir="."> 2 <property name="josm.prj.dir" value="../../core"/>3 <property name="josm.home.dir" value="${user.home}/.josm"/>4 <property name="plugin.build.dir" value="build"/>5 2 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 6 12 <!-- init target --> 7 13 <target name="init"> 8 <mkdir dir="build" /> 9 <mkdir dir="dist" /> 14 <mkdir dir="${plugin.build.dir}" /> 10 15 </target> 11 16 12 17 <!-- clean target --> 13 18 <target name="clean"> 14 <delete dir=" build" />15 <delete dir="dist" />19 <delete dir="${plugin.build.dir}" /> 20 <delete file="${plugin.jar}" /> 16 21 </target> 17 22 … … 20 25 <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 21 26 <classpath> 22 <pathelement path="${josm. prj.dir}/build"/>23 <pathelement path="${josm. prj.dir}/src"/>24 <fileset dir="${josm. prj.dir}/lib">27 <pathelement path="${josm.build.dir}/build"/> 28 <pathelement path="${josm.build.dir}/src"/> 29 <fileset dir="${josm.build.dir}/lib"> 25 30 <include name="**/*.jar"/> 26 31 </fileset> … … 28 33 </javac> 29 34 </target> 30 35 31 36 <!-- dist target - create jar file --> 32 37 <target name="dist" depends="compile"> 33 <jar destfile=" dist/${ant.project.name}.jar" basedir="${plugin.build.dir}">38 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 34 39 <manifest> 35 40 <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" /> … … 39 44 </jar> 40 45 </target> 41 42 <!-- disttarget - copy jar file to plugin destination -->46 47 <!-- install target - copy jar file to plugin destination --> 43 48 <target name="install" depends="dist"> 44 <copy file=" dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />49 <copy file="../dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" /> 45 50 </target> 46 51 47 52 </project> 53 -
applications/editors/josm/plugins/navigator/build.xml
r5147 r5153 2 2 3 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="plugin.build.dir" value="bin"/> 7 <property name="plugin.name" value="${ant.project.name}"/> 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 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"/> 9 11 10 12 <!-- plugin meta data (enter new version number if anything changed!) --> -
applications/editors/josm/plugins/nearclick/build.xml
r5147 r5153 1 <project name="nearclick" default="build" basedir="."> 1 <project name="nearclick" default="dist" basedir="."> 2 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"/> 2 11 3 12 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary --> … … 25 34 </target> 26 35 27 <target name=" build" depends="compile">28 <jar destfile=" dist/nearclick.jar" basedir="build">36 <target name="dist" depends="compile"> 37 <jar destfile="${plugin.jar}" basedir="build"> 29 38 <manifest> 30 39 <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" /> … … 35 44 36 45 <target name="clean"> 37 <delete dir=" build" />38 <delete dir="dist" />46 <delete dir="${plugin.build.dir}" /> 47 <delete file="${plugin.jar}" /> 39 48 </target> 40 49 41 50 <target name="clean_install"> 42 51 <delete file="${plugins}/nearclick.jar" /> 43 52 </target> 44 53 45 <target name="install" depends=" build">46 <copy file=" dist/nearclick.jar" todir="${plugins}"/>54 <target name="install" depends="dist"> 55 <copy file="${plugin.jar}" todir="${plugins}"/> 47 56 </target> 48 57 -
applications/editors/josm/plugins/openvisible/build.xml
r5147 r5153 4 4 <property name="josm.build.dir" value="../../core"/> 5 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="plugin.build.dir" value="b in"/>7 <property name="plugin.dist.dir" value=" dist"/>6 <property name="plugin.build.dir" value="build"/> 7 <property name="plugin.dist.dir" value="../dist"/> 8 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value=" ${plugin.name}.jar"/>9 <property name="plugin.jar" value="../dist/${plugin.name}.jar"/> 10 10 11 11 <!-- plugin meta data (enter new version number if anything changed!) --> … … 81 81 </target> 82 82 83 <target name="clean">84 <delete dir="${plugin.build.dir}" />85 <delete dir="${plugin.site.file}" />86 <delete dir="${plugin.jar}" />87 </target>88 89 83 <!-- write site description for the given plugin so josm will accept it --> 90 84 <target name="site"> … … 138 132 </target> 139 133 134 <target name="clean"> 135 <delete dir="${plugin.build.dir}" /> 136 <delete dir="${plugin.site.file}" /> 137 <delete file="${plugin.jar}" /> 138 </target> 139 140 140 </project> -
applications/editors/josm/plugins/osmarender/build.xml
r5147 r5153 1 1 <project name="osmarender" default="install" basedir="."> 2 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"/> 2 11 3 12 <property name="josm" location="../../core/dist/josm-custom.jar" /> … … 5 14 6 15 <target name="compile"> 7 <mkdir dir=" bin"></mkdir>8 <mkdir dir=" dist"></mkdir>9 <javac srcdir="src" debug="true" classpath="${josm}" destdir=" bin">16 <mkdir dir="${plugin.build.dir}"></mkdir> 17 <mkdir dir="${plugin.dist.dir}"></mkdir> 18 <javac srcdir="src" debug="true" classpath="${josm}" destdir="${plugin.build.dir}"> 10 19 <include name="**/*.java" /> 11 20 </javac> 12 21 </target> 13 22 14 <target name=" build" depends="compile">15 <copy todir=" bin" file="${rendering}/osmarender6/osmarender.xsl"/>16 <copy tofile=" bin/osm-map-features.xml"23 <target name="dist" depends="compile"> 24 <copy todir="${plugin.build.dir}" file="${rendering}/osmarender6/osmarender.xsl"/> 25 <copy tofile="${plugin.build.dir}/osm-map-features.xml" 17 26 file="${rendering}/osmarender5/osm-map-features-z17.xml"/> 18 <jar destfile=" dist/osmarender.jar" basedir="bin">27 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 19 28 <manifest> 20 29 <attribute name="Plugin-Class" value="OsmarenderPlugin" /> … … 25 34 26 35 <target name="clean"> 27 <delete dir=" bin" />28 <delete dir="dist" />36 <delete dir="${plugin.build.dir}" /> 37 <delete file="${plugin.jar}" /> 29 38 </target> 30 39 31 <target name="install" depends="compile, build" />40 <target name="install" depends="compile,dist" /> 32 41 33 42 </project> -
applications/editors/josm/plugins/plastic_laf/build.xml
r5147 r5153 1 <project name="plastic_laf" default=" build" basedir=".">1 <project name="plastic_laf" default="dist" basedir="."> 2 2 3 <target name="build"> 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 <target name="dist"> 4 13 <mkdir dir="dist"></mkdir> 5 <unjar dest=" bin" src="lib/looks-2.0.4.jar" />6 <javac srcdir="src" destdir=" bin">14 <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" /> 15 <javac srcdir="src" destdir="${plugin.build.dir}"> 7 16 <include name="**/*.java" /> 8 17 </javac> 9 <jar destfile=" dist/plastic_laf.jar" basedir="bin">18 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 10 19 <manifest> 11 20 <attribute name="Plugin-Class" value="plastic_laf.Plugin" /> … … 17 26 18 27 <target name="clean"> 19 <delete dir="dist" /> 28 <delete dir="${plugin.build.dir}" /> 29 <delete file="${plugin.jar}" /> 20 30 </target> 21 31 -
applications/editors/josm/plugins/pluginmanager/build.xml
r5147 r5153 1 1 <project name="pluginmanager" default="dist" basedir="."> 2 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"/> 2 11 3 12 <!-- compilation properties --> … … 68 77 <delete dir="${plugin.build.dir}" /> 69 78 <delete dir="${plugin.site.file}" /> 70 <delete dir="${plugin.jar}" />79 <delete file="${plugin.jar}" /> 71 80 </target> 72 81 -
applications/editors/josm/plugins/slippymap/build.xml
r5147 r5153 1 1 <project name="slippymap" default="dist" basedir="."> 2 3 4 <!-- compilation properties --> 5 <property name="josm.build.dir" value="../../core"/> 6 <property name="josm.home.dir" value="${user.home}/.josm"/> 7 <property name="josm" location="../../core/dist/josm-custom.jar" /> 8 <property name="plugin.build.dir" value="build"/> 9 <property name="plugin.dist.dir" value="../dist"/> 10 <property name="plugin.name" value="${ant.project.name}"/> 11 <property name="plugin.jar" value="../dist/${plugin.name}.jar"/> 12 2 13 3 14 <target name="dist" depends="compile"> … … 6 17 <fileset dir="images" /> 7 18 </copy> 8 19 9 20 <!-- create josm-custom.jar --> 10 <jar destfile=" slippymap.jar" basedir="build">21 <jar destfile="${plugin.jar}" basedir="build"> 11 22 <manifest> 12 23 <attribute name="Plugin-Class" value="slippymap.SlippyMapPlugin" /> … … 19 30 <javac srcdir="slippymap" classpath="../../core/dist/josm-custom.jar" destdir="build" /> 20 31 </target> 21 32 22 33 <target name="init"> 23 <mkdir dir=" build" />34 <mkdir dir="${plugin.build.dir}" /> 24 35 </target> 25 36 26 37 <target name="clean"> 27 <delete dir="build" /> 38 <delete dir="${plugin.build.dir}" /> 39 <delete file="${plugin.jar}" /> 28 40 </target> 29 41 30 42 </project> -
applications/editors/josm/plugins/surveyor/build.xml
r5147 r5153 1 1 <project name="surveyor" default="dist" basedir="."> 2 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"/> 2 11 3 <!-- compilation properties --> 4 <property name="josm.build.dir" value="../../core"/> 5 <property name="josm.home.dir" value="${user.home}/.josm"/> 6 <property name="plugin.build.dir" value="bin"/> 7 <property name="plugin.name" value="${ant.project.name}"/> 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 9 <property name="livegpsplugin.jar" value="../livegps/livegps.jar"/> 12 <property name="livegpsplugin.jar" value="../dist/livegps.jar"/> 10 13 11 14 <!-- plugin meta data (enter new version number if anything changed!) --> … … 21 24 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/surveyor/"/> 22 25 23 26 24 27 <target name="dist" depends="compile,site"> 25 28 <!-- images --> … … 51 54 <include name="**/*.jar"/> 52 55 </fileset> 53 56 <pathelement location="${livegpsplugin.jar}"/> 54 57 </classpath> 55 58 </javac> 56 59 </target> 57 60 58 61 <target name="install" depends="dist"> 59 62 <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" /> … … 67 70 <delete dir="${plugin.build.dir}" /> 68 71 <delete dir="${plugin.site.file}" /> 69 <delete dir="${plugin.jar}" />72 <delete file="${plugin.jar}" /> 70 73 </target> 71 74 -
applications/editors/josm/plugins/tagging-preset-tester/build.xml
r5147 r5153 1 <project name="tagging-preset-tester" default=" build" basedir=".">1 <project name="tagging-preset-tester" default="dist" basedir="."> 2 2 3 <target name="compile"> 4 <mkdir dir="build"/> 5 <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar" /> 6 </target> 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"/> 7 11 8 <target name="build" depends="compile"> 9 <mkdir dir="dist"/> 10 <jar destfile="dist/tagging-preset-tester.jar" 11 basedir="build" 12 manifest="src/org/openstreetmap/josm/plugins/taggingpresettester/MANIFEST.MF"> 13 <fileset dir="."><include name="images/*"/></fileset> 14 </jar> 15 </target> 12 <target name="compile"> 13 <mkdir dir="build"/> 14 <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar" /> 15 </target> 16 16 17 <target name="clean"> 18 <delete dir="dist"/> 19 <delete dir="build"/> 20 </target> 17 <target name="dist" depends="compile"> 18 <mkdir dir="dist"/> 19 <jar destfile="${plugin.jar}" 20 basedir="build" 21 manifest="src/org/openstreetmap/josm/plugins/taggingpresettester/MANIFEST.MF"> 22 <fileset dir="."><include name="images/*"/></fileset> 23 </jar> 24 </target> 25 26 <target name="clean"> 27 <delete dir="${plugin.build.dir}" /> 28 <delete file="${plugin.jar}" /> 29 </target> 21 30 22 31 </project> -
applications/editors/josm/plugins/utilsplugin/build.xml
r5147 r5153 1 <project name="utilsplugin" default="build" basedir="."> 2 <property name="josm" location="../../core/dist/josm-custom.jar" /> 3 1 <project name="utilsplugin" default="dist" basedir="."> 2 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 4 12 <target name="init"> 5 13 <mkdir dir="build"/> … … 10 18 </target> 11 19 12 <target name=" build" depends="clean, compile">20 <target name="dist" depends="clean, compile"> 13 21 <copy todir="build/images"> 14 22 <fileset dir="images"/> 15 23 </copy> 16 <jar destfile=" utilsplugin.jar" basedir="build">24 <jar destfile="${plugin.jar}" basedir="build"> 17 25 <manifest> 18 26 <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/> … … 26 34 27 35 <target name="clean"> 28 <delete dir="build" /> 36 <delete dir="${plugin.build.dir}" /> 37 <delete file="${plugin.jar}" /> 29 38 </target> 30 39 31 <target name="install" depends=" build">32 <copy file=" utilsplugin.jar" todir="${user.home}/.josm/plugins"/>40 <target name="install" depends="dist"> 41 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 33 42 </target> 34 43 </project> -
applications/editors/josm/plugins/validator/build.xml
r5147 r5153 1 <project name="validator" default="build" basedir="."> 1 <project name="validator" default="dist" basedir="."> 2 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"/> 2 11 3 12 <!-- point to your JOSM directory --> … … 7 16 8 17 <target name="init"> 9 <mkdir dir=" build"/>18 <mkdir dir="${plugin.build.dir}"/> 10 19 </target> 11 20 … … 16 25 </target> 17 26 18 <target name=" build" depends="clean, compile">27 <target name="dist" depends="clean, compile"> 19 28 <copy todir="build/images"> 20 29 <fileset dir="images"/> … … 28 37 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 29 38 <delete file="REVISION"/> 30 <jar destfile=" validator.jar" basedir="build">39 <jar destfile="${plugin.jar}" basedir="build"> 31 40 <manifest> 32 41 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/> … … 39 48 </target> 40 49 50 <!-- clean target --> 41 51 <target name="clean"> 42 <delete dir="build" /> 52 <delete dir="${plugin.build.dir}" /> 53 <delete file="${plugin.jar}" /> 43 54 </target> 44 55 45 <target name="install" depends=" build">46 <copy file=" validator.jar" todir="${user.home}/.josm/plugins"/>56 <target name="install" depends="dist"> 57 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 47 58 </target> 48 59 … … 51 62 </java> 52 63 </target> 64 53 65 </project> -
applications/editors/josm/plugins/waypoints/build.xml
r5147 r5153 1 <project name="waypoints" default="build" basedir="."> 1 <project name="waypoints" default="dist" basedir="."> 2 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"/> 2 11 3 12 <!-- point to your JOSM directory --> … … 17 26 </target> 18 27 19 <target name=" build" depends="compile">28 <target name="dist" depends="compile"> 20 29 <!-- 21 30 <copy todir="build/images"> … … 31 40 </target> 32 41 42 <!-- clean target --> 33 43 <target name="clean"> 34 <delete dir=" build" />35 <delete dir="dist" />44 <delete dir="${plugin.build.dir}" /> 45 <delete file="${plugin.jar}" /> 36 46 </target> 37 47 38 <target name="install" depends=" build">48 <target name="install" depends="dist"> 39 49 <copy file="dist/waypoints.jar" todir="${user.home}/.josm/plugins"/> 40 50 </target> -
applications/editors/josm/plugins/wmsplugin/build.xml
r5147 r5153 1 <project name="wmsplugin" default=" build" basedir=".">1 <project name="wmsplugin" default="dist" basedir="."> 2 2 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 6 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"/> 7 11 8 12 <target name="init"> … … 17 21 </target> 18 22 19 <target name=" build" depends="compile">23 <target name="dist" depends="compile"> 20 24 <copy todir="build/images" > 21 25 <fileset dir="images" /> 22 26 </copy> 23 <jar destfile=" dist/wmsplugin.jar" basedir="build">27 <jar destfile="${plugin.jar}" basedir="build"> 24 28 <manifest> 25 29 <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" /> … … 31 35 32 36 <target name="clean"> 33 <delete dir=" build" />34 <delete dir="dist" />37 <delete dir="${plugin.build.dir}" /> 38 <delete file="${plugin.jar}" /> 35 39 </target> 36 37 <target name="install" depends=" build">38 <copy file=" dist/wmsplugin.jar" todir="${user.home}/.josm/plugins"/>40 41 <target name="install" depends="dist"> 42 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 39 43 </target> 40 44 41 45 </project> -
applications/editors/josm/plugins/ywms/build.xml
r5147 r5153 1 <project name="ywms" default="build" basedir="."> 2 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 1 <project name="ywms" default="dist" basedir="."> 6 2 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"/> 7 11 8 12 <target name="init"> 9 <mkdir dir=" build"/>13 <mkdir dir="${plugin.build.dir}"/> 10 14 </target> 11 15 … … 16 20 </target> 17 21 18 <target name=" build" depends="compile">19 <copy todir=" build/resources">22 <target name="dist" depends="compile"> 23 <copy todir="${plugin.build.dir}/resources"> 20 24 <fileset dir="resources"/> 21 25 </copy> 22 <copy todir=" build/images">26 <copy todir="${plugin.build.dir}/images"> 23 27 <fileset dir="images"/> 24 28 </copy> … … 31 35 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 32 36 <delete file="REVISION"/> 33 <jar destfile=" ywms.jar" basedir="build">37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 34 38 <manifest> 35 39 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/> … … 43 47 44 48 <target name="clean"> 45 <delete dir="build" /> 49 <delete dir="${plugin.build.dir}" /> 50 <delete file="${plugin.jar}" /> 46 51 </target> 47 48 <target name="install" depends=" build">49 <copy file=" ywms.jar" todir="${user.home}/.josm/plugins"/>52 53 <target name="install" depends="dist"> 54 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 50 55 </target> 51 56
Note:
See TracChangeset
for help on using the changeset viewer.