Changeset 5147 in osm for applications/editors
- Timestamp:
- 2007-10-24T07:31:46+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/build.xml
r5018 r5147 1 1 <project name="josm-plugins" default="build" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 3 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary --> 4 <!--<property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" />--> 5 <!--<property name="josm" location="../josm/josm-latest.jar" ></property>--> 6 7 <!-- target directory to place the plugin in --> 8 <!-- Windows has a different home directory scheme then unix/linux --> 9 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix --> 10 <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>--> 11 <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>--> 12 12 13 13 <!-- you should not need to modify anything below this! --> 14 14 15 15 16 17 18 16 <target name="compile_josm"> 17 <ant dir="../core" target="dist" /> 18 </target> 19 19 20 21 20 <target name="compile" depends="compile_josm"> 21 </target> 22 22 23 <target name="build" depends="compile"> 24 <ant dir="colorscheme" antfile="build.xml" target="dist"/> 25 <!--ant dir="grid" antfile="build.xml" target="build"/--> 26 <ant dir="lang" antfile="build.xml" target="install-all"/> 27 <ant dir="livegps" antfile="build.xml" target="dist"/> 28 <ant dir="mappaint" antfile="build.xml" target="build"/> 29 <ant dir="namefinder" antfile="build.xml" target="dist"/> 30 <!-- ant dir="navigator" antfile="build.xml" target="dist"/ --> 31 <ant dir="nearclick" antfile="build.xml" target="build"/> 32 <ant dir="osmarender" antfile="build.xml" target="build"/> 33 <ant dir="plastic_laf" antfile="build.xml" target="build"/> 34 <!-- ant dir="pluginmanager" antfile="build.xml" target="dist"/ --> 35 <ant dir="slippymap" antfile="build.xml" target="dist"/> 36 <!-- ant dir="surveyor" antfile="build.xml" target="dist"/ --> 37 <ant dir="tagging-preset-tester" antfile="build.xml" target="build"/> 38 <!-- ant dir="tways" antfile="build.xml" target="build"/ --> 39 <ant dir="validator" antfile="build.xml" target="build"/> 40 <!-- ant dir="waypoints" antfile="build.xml" target="build"/ --> 41 <ant dir="wmsplugin" antfile="build.xml" target="build"/> 42 <ant dir="ywms" antfile="build.xml" target="build"/> 43 </target> 23 <target name="build" depends="compile"> 24 <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"/> 27 <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"/> 31 <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"/> 44 36 45 <target name="clean"> 46 <ant dir="colorscheme" antfile="build.xml" target="clean"/> 47 <ant dir="grid" antfile="build.xml" target="clean"/> 48 <ant dir="lang" antfile="build.xml" target="clean"/> 49 <ant dir="livegps" antfile="build.xml" target="clean"/> 50 <ant dir="mappaint" antfile="build.xml" target="clean"/> 51 <ant dir="namefinder" antfile="build.xml" target="clean"/> 52 <ant dir="navigator" antfile="build.xml" target="clean"/> 53 <ant dir="nearclick" antfile="build.xml" target="clean"/> 54 <ant dir="osmarender" antfile="build.xml" target="clean"/> 55 <ant dir="plastic_laf" antfile="build.xml" target="clean"/> 56 <ant dir="pluginmanager" antfile="build.xml" target="clean"/> 57 <ant dir="surveyor" antfile="build.xml" target="clean"/> 58 <ant dir="tagging-preset-tester" antfile="build.xml" target="clean"/> 59 <ant dir="tways" antfile="build.xml" target="clean"/> 60 <ant dir="validator" antfile="build.xml" target="clean"/> 61 <ant dir="waypoints" antfile="build.xml" target="clean"/> 62 <ant dir="wmsplugin" antfile="build.xml" target="clean"/> 63 <ant dir="ywms" antfile="build.xml" target="clean"/> 64 </target> 37 <ant dir="livegps" antfile="build.xml" target="dist"/> 38 <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"/ --> 44 </target> 65 45 66 <target name="clean_install"> 67 </target> 46 <target name="clean"> 47 <ant dir="colorscheme" antfile="build.xml" target="clean"/> 48 <ant dir="grid" antfile="build.xml" target="clean"/> 49 <ant dir="lang" antfile="build.xml" target="clean"/> 50 <ant dir="mappaint" antfile="build.xml" target="clean"/> 51 <ant dir="namefinder" antfile="build.xml" target="clean"/> 52 <ant dir="navigator" antfile="build.xml" target="clean"/> 53 <ant dir="nearclick" antfile="build.xml" target="clean"/> 54 <ant dir="osmarender" antfile="build.xml" target="clean"/> 55 <ant dir="plastic_laf" antfile="build.xml" target="clean"/> 56 <ant dir="pluginmanager" antfile="build.xml" target="clean"/> 57 <ant dir="tagging-preset-tester" antfile="build.xml" target="clean"/> 58 <ant dir="tways" antfile="build.xml" target="clean"/> 59 <ant dir="validator" antfile="build.xml" target="clean"/> 60 <ant dir="waypoints" antfile="build.xml" target="clean"/> 61 <ant dir="wmsplugin" antfile="build.xml" target="clean"/> 62 <ant dir="ywms" antfile="build.xml" target="clean"/> 68 63 69 <target name="install" depends="build"> 70 </target> 64 <ant dir="surveyor" antfile="build.xml" target="clean"/> 65 <ant dir="livegps" antfile="build.xml" target="clean"/> 66 </target> 67 68 <target name="clean_install"> 69 </target> 70 71 <target name="install" depends="build"> 72 </target> 71 73 72 74 </project> -
applications/editors/josm/plugins/colorscheme/build.xml
r3785 r5147 22 22 <!-- images --> 23 23 <!-- 24 25 26 27 28 24 <copy todir="${plugin.build.dir}/images"> 25 <fileset dir="src/images" /> 26 </copy> 27 --> 28 <!-- copy configuration xml files --> 29 29 <copy todir="${plugin.build.dir}"> 30 30 <fileset dir="src"> … … 61 61 62 62 <target name="init"> 63 64 63 <echo>java version: ${java.version}</echo> 64 </target> 65 65 66 66 <target name="clean"> … … 75 75 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 76 76 <plugins> 77 78 79 80 81 77 <plugin id="${ant.project.name}" version="${plugin.version}"> 78 <name>${ant.project.name}</name> 79 <description>${plugin.description}</description> 80 <resource>${plugin.site.url}${plugin.jar}</resource> 81 </plugin> 82 82 </plugins> 83 84 83 </echo> 84 </target> 85 85 86 87 88 89 90 <site version="1.0">91 <!-- meta data of site -->92 93 94 95 86 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 87 <target name="site-full-donotuse"> 88 <echo message="creating site description in ${plugin.site.file}"/> 89 <echo file="${plugin.site.file}"><?xml version="1.0"?> 90 <site version="1.0"> 91 <!-- meta data of site --> 92 <site-info> 93 <site-name>${plugin.site.description}</site-name> 94 <site-url>${plugin.site.url}</site-url> 95 </site-info> 96 96 97 98 99 100 101 102 103 104 105 106 107 97 <!-- plugins available on this site --> 98 <plugins> 99 <plugin id="${ant.project.name}" version="${plugin.version}"> 100 <name>${ant.project.name}</name> 101 <description>${plugin.description}</description> 102 <resources> 103 <resource src="${plugin.site.url}${plugin.jar}" 104 target="${josm.home.dir}/plugins/${plugin.jar}"/> 105 </resources> 106 </plugin> 107 </plugins> 108 108 </site> 109 110 109 </echo> 110 </target> 111 111 112 113 114 115 116 117 118 119 120 112 <!-- upload the site description and the jar file via ssh --> 113 <target name="upload" depends="dist,site"> 114 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 115 <exec executable="scp"> 116 <arg value="${plugin.jar}"/> 117 <arg value="${plugin.site.file}"/> 118 <arg value="${plugin.site.upload.target}"/> 119 </exec> 120 </target> 121 121 122 122 </project> -
applications/editors/josm/plugins/duplicateway/build.xml
r4245 r5147 5 5 <target name="compile" depends="clean"> 6 6 <mkdir dir="build"></mkdir> 7 7 <mkdir dir="build/images"></mkdir> 8 8 <copy todir="build"> 9 10 11 9 <fileset dir="bin" casesensitive="yes"> 10 <filename name="**/*.class"/> 11 </fileset> 12 12 </copy> 13 14 15 16 17 13 <copy todir="build/images"> 14 <fileset dir="images" casesensitive="yes"> 15 <filename name="**/*.png"/> 16 </fileset> 17 </copy> 18 18 </target> 19 19 -
applications/editors/josm/plugins/grid/build.xml
r5017 r5147 8 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 9 9 10 11 10 <!-- point to your JOSM directory --> 11 <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" /> 12 12 13 13 14 14 15 16 17 18 15 <target name="init"> 16 <mkdir dir="build"></mkdir> 17 <mkdir dir="dist"></mkdir> 18 </target> 19 19 20 21 22 23 24 20 <target name="compile" depends="init"> 21 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 22 <include name="**/*.java" /> 23 </javac> 24 </target> 25 25 26 27 28 29 30 31 32 33 34 35 36 26 <target name="build" depends="compile"> 27 <copy todir="build/images" > 28 <fileset dir="images" /> 29 </copy> 30 <jar destfile="${plugin.jar}" basedir="build"> 31 <manifest> 32 <attribute name="Plugin-Class" value="grid.GridPlugin" /> 33 <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" /> 34 </manifest> 35 </jar> 36 </target> 37 37 38 39 40 41 42 38 <target name="clean"> 39 <delete dir="build" /> 40 <delete dir="dist" /> 41 <delete dir="${plugin.jar}" /> 42 </target> 43 43 44 45 46 44 <target name="install" depends="build"> 45 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/> 46 </target> 47 47 48 48 -
applications/editors/josm/plugins/lakewalker/build.xml
r4061 r5147 5 5 <target name="compile" depends="clean"> 6 6 <mkdir dir="build"></mkdir> 7 7 <mkdir dir="build/images"></mkdir> 8 8 <copy todir="build"> 9 10 11 9 <fileset dir="bin" casesensitive="yes"> 10 <filename name="**/*.class"/> 11 </fileset> 12 12 </copy> 13 14 15 16 17 13 <copy todir="build/images"> 14 <fileset dir="images" casesensitive="yes"> 15 <filename name="**/*.png"/> 16 </fileset> 17 </copy> 18 18 </target> 19 19 … … 36 36 <target name="install" depends="jar"> 37 37 <copy file="Lakewalker.jar" todir="${user.home}/Application Data/JOSM/plugins"/> 38 39 40 41 42 38 <copy todir="${user.home}/Application Data/JOSM/plugins/Lakewalker"> 39 <fileset dir="Lakewalker"> 40 <filename name = "*.py"/> 41 </fileset> 42 </copy> 43 43 </target> 44 44 -
applications/editors/josm/plugins/lang/build.xml
r5017 r5147 10 10 <property name="plugins" value=".."/> 11 11 12 13 14 15 16 17 12 <target name="install-all" depends="josm-build,keys.pot"> 13 <ant target="install"><property name="language" value="de"/></ant> 14 <ant target="install"><property name="language" value="fr"/></ant> 15 <ant target="install"><property name="language" value="ro"/></ant> 16 <ant target="install"><property name="language" value="en_GB"/></ant> 17 </target> 18 18 19 20 21 22 19 <target name="install"> 20 <mkdir dir="${language}/bin"/> 21 <mkdir dir="dist"/> 22 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/bin" /> 23 23 24 25 26 24 <exec executable="msgmerge"> 25 <arg line="-U ${language}/${language}.po keys.pot"/> 26 </exec> 27 27 28 29 30 28 <exec executable="msgfmt"> 29 <arg line="--java2 -d${language}/bin -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/> 30 </exec> 31 31 32 32 <copy file="i18n.properties" todir="${language}/bin/org/openstreetmap/josm" /> 33 33 34 35 36 37 38 39 40 41 34 <jar destfile="dist/lang-${language}.jar" basedir="${language}/bin"> 35 <manifest> 36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" /> 37 <attribute name="Plugin-Description" value="Translation to locale ${language}" /> 38 <attribute name="Plugin-Early" value="true" /> 39 </manifest> 40 </jar> 41 </target> 42 42 43 43 44 44 45 46 47 48 49 50 51 52 45 <target name="josm-build"> 46 <ant dir="${josm.build.dir}" /> 47 </target> 48 49 <target name="keys.pot"> 50 <exec executable="find" output="alljava.txt"> 51 <arg line="${josm.build.dir}/src ${plugins} -name '*.java'"/> 52 </exec> 53 53 54 55 56 57 54 <exec executable="xgettext"> 55 <arg line="-ktr -ktrn:1,2 -ktrc -kmarktr -Ljava -okeys.pot -falljava.txt"/> 56 </exec> 57 </target> 58 58 59 60 61 62 63 59 <target name="clean"> 60 <delete dir="build" /> 61 <delete dir="dist" /> 62 <delete dir="${plugin.jar}" /> 63 </target> 64 64 65 65 </project> -
applications/editors/josm/plugins/livegps/build.xml
r3836 r5147 1 1 <project name="livegps" default="dist" basedir="."> 2 2 <!-- compilation properties --> 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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"/> 8 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/> 9 10 <!-- plugin meta data (enter new version number if anything changed!) --> 11 <property name="plugin.version" value="1.2.1"/> 12 <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/> 13 <property name="plugin.stage" value="50"/> 14 <property name="plugin.class" value="livegps.LiveGpsPlugin"/> 15 16 <!-- update site meta data --> 17 <property name="plugin.site.file" value="josm-site.xml"/> 18 <property name="plugin.site.description" value="Josm's LiveGps Update Site"/> 19 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/> 20 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/> 21 22 22 23 23 <target name="dist" depends="compile,site"> … … 57 57 58 58 <target name="init"> 59 60 59 <echo>java version: ${java.version}</echo> 60 </target> 61 61 62 62 <target name="clean"> … … 71 71 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 72 72 <plugins> 73 74 75 76 77 73 <plugin id="${ant.project.name}" version="${plugin.version}"> 74 <name>${ant.project.name}</name> 75 <description>${plugin.description}</description> 76 <resource>${plugin.site.url}${plugin.jar}</resource> 77 </plugin> 78 78 </plugins> 79 80 79 </echo> 80 </target> 81 81 82 83 84 85 86 <site version="1.0">87 <!-- meta data of site -->88 89 90 91 82 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 83 <target name="site-full-donotuse"> 84 <echo message="creating site description in ${plugin.site.file}"/> 85 <echo file="${plugin.site.file}"><?xml version="1.0"?> 86 <site version="1.0"> 87 <!-- meta data of site --> 88 <site-info> 89 <site-name>${plugin.site.description}</site-name> 90 <site-url>${plugin.site.url}</site-url> 91 </site-info> 92 92 93 94 95 96 97 98 99 100 101 102 103 93 <!-- plugins available on this site --> 94 <plugins> 95 <plugin id="${ant.project.name}" version="${plugin.version}"> 96 <name>${ant.project.name}</name> 97 <description>${plugin.description}</description> 98 <resources> 99 <resource src="${plugin.site.url}${plugin.jar}" 100 target="${josm.home.dir}/plugins/${plugin.jar}"/> 101 </resources> 102 </plugin> 103 </plugins> 104 104 </site> 105 106 105 </echo> 106 </target> 107 107 108 109 110 111 112 113 114 115 116 108 <!-- upload the site description and the jar file via ssh --> 109 <target name="upload" depends="dist,site"> 110 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 111 <exec executable="scp"> 112 <arg value="${plugin.jar}"/> 113 <arg value="${plugin.site.file}"/> 114 <arg value="${plugin.site.upload.target}"/> 115 </exec> 116 </target> 117 117 118 118 </project> -
applications/editors/josm/plugins/mappaint/build.xml
r4428 r5147 1 1 <project name="mappaint" default="build" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 3 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 <!--<property name="josm" location="../josm/josm-latest.jar" ></property>--> 6 7 <!-- target directory to place the plugin in --> 8 <!-- Windows has a different home directory scheme then unix/linux --> 9 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix --> 10 <property name="plugins" location="${user.home}/.josm/plugins" ></property> 11 <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>--> 12 12 13 13 <!-- you should not need to modify anything below this! --> 14 14 15 15 16 17 18 19 16 <target name="init"> 17 <mkdir dir="build"></mkdir> 18 <mkdir dir="dist"></mkdir> 19 </target> 20 20 21 22 23 24 25 21 <target name="compile" depends="init"> 22 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" source="1.5" target="1.5"> 23 <include name="**/*.java" /> 24 </javac> 25 </target> 26 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 27 <target name="build" depends="compile"> 28 <copy todir="build/standard"> 29 <fileset dir="styles/standard"></fileset> 30 </copy> 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 <jar destfile="dist/mappaint.jar" basedir="build"> 40 <manifest> 41 <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" /> 42 <attribute name="Plugin-Description" value="An alternative render for the map with colouring, line thickness and icons.<br>" /> 43 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 44 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 45 <attribute name="Author" value="Nick Whitelegg / Ulf Lamping"/> 46 </manifest> 47 </jar> 48 </target> 49 49 50 51 52 53 50 <target name="clean"> 51 <delete dir="build" /> 52 <delete dir="dist" /> 53 </target> 54 54 55 56 57 55 <target name="clean_install"> 56 <delete file="${plugins}/mappaint.jar" /> 57 </target> 58 58 59 60 61 59 <target name="install" depends="build"> 60 <copy file="dist/mappaint.jar" todir="${plugins}"/> 61 </target> 62 62 63 63 </project> -
applications/editors/josm/plugins/namefinder/build.xml
r4864 r5147 4 4 <property name="plugin.build.dir" value="build"/> 5 5 6 7 8 9 10 6 <!-- init target --> 7 <target name="init"> 8 <mkdir dir="build" /> 9 <mkdir dir="dist" /> 10 </target> 11 11 12 13 14 15 16 17 18 19 12 <!-- clean target --> 13 <target name="clean"> 14 <delete dir="build" /> 15 <delete dir="dist" /> 16 </target> 17 18 <!-- compile target --> 19 <target name="compile" depends="init"> 20 20 <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 21 21 <classpath> … … 27 27 </classpath> 28 28 </javac> 29 29 </target> 30 30 31 31 <!-- dist target - create jar file --> 32 32 <target name="dist" depends="compile"> 33 33 <jar destfile="dist/${ant.project.name}.jar" basedir="${plugin.build.dir}"> … … 40 40 </target> 41 41 42 43 44 45 46 42 <!-- dist target - copy jar file to plugin destination --> 43 <target name="install" depends="dist"> 44 <copy file="dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" /> 45 </target> 46 47 47 </project> 48 -
applications/editors/josm/plugins/navigator/build.xml
r3865 r5147 1 1 <project name="navigator" default="dist" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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 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 16 <!-- update site meta data --> 17 <property name="plugin.site.file" value="josm-site.xml"/> 18 <property name="plugin.site.description" value="Josm's Surveyor Update Site"/> 19 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/> 20 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/> 21 22 22 23 24 25 26 27 28 29 30 31 32 33 34 35 23 <target name="dist" depends="compile,site"> 24 <!-- images --> 25 <copy todir="${plugin.build.dir}/images"> 26 <fileset dir="src/images" /> 27 </copy> 28 <!-- copy configuration xml files 29 <copy todir="${plugin.build.dir}"> 30 <fileset dir="src"> 31 <include name="*.xml"/> 32 </fileset> 33 </copy> 34 --> 35 36 36 <!-- create jar file --> 37 37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 44 44 </manifest> 45 45 </jar> 46 46 </target> 47 47 48 49 50 51 52 53 54 55 48 <target name="compile" depends="init"> 49 <mkdir dir="${plugin.build.dir}"/> 50 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 51 <classpath> 52 <pathelement path="${josm.build.dir}/build"/> 53 <fileset dir="${josm.build.dir}/lib"> 54 <include name="**/*.jar"/> 55 </fileset> 56 56 <fileset dir="lib"> 57 57 <include name="**/*.jar"/> 58 58 </fileset> 59 60 61 59 </classpath> 60 </javac> 61 </target> 62 62 63 63 <target name="install" depends="dist"> 64 64 <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" /> 65 65 <copy todir="${josm.home.dir}/plugins"> 66 66 <fileset dir="lib"> 67 67 <include name="**/*.jar"/> 68 68 </fileset> 69 69 </copy> 70 70 </target> 71 71 72 72 <target name="init"> 73 74 73 <echo>java version: ${java.version}</echo> 74 </target> 75 75 76 76 <target name="clean"> … … 85 85 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 86 86 <plugins> 87 88 89 90 91 87 <plugin id="${ant.project.name}" version="${plugin.version}"> 88 <name>${ant.project.name}</name> 89 <description>${plugin.description}</description> 90 <resource>${plugin.site.url}${plugin.jar}</resource> 91 </plugin> 92 92 </plugins> 93 94 93 </echo> 94 </target> 95 95 96 97 98 99 100 <site version="1.0">101 <!-- meta data of site -->102 103 104 105 96 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 97 <target name="site-full-donotuse"> 98 <echo message="creating site description in ${plugin.site.file}"/> 99 <echo file="${plugin.site.file}"><?xml version="1.0"?> 100 <site version="1.0"> 101 <!-- meta data of site --> 102 <site-info> 103 <site-name>${plugin.site.description}</site-name> 104 <site-url>${plugin.site.url}</site-url> 105 </site-info> 106 106 107 108 109 110 111 112 113 114 115 116 117 107 <!-- plugins available on this site --> 108 <plugins> 109 <plugin id="${ant.project.name}" version="${plugin.version}"> 110 <name>${ant.project.name}</name> 111 <description>${plugin.description}</description> 112 <resources> 113 <resource src="${plugin.site.url}${plugin.jar}" 114 target="${josm.home.dir}/plugins/${plugin.jar}"/> 115 </resources> 116 </plugin> 117 </plugins> 118 118 </site> 119 120 119 </echo> 120 </target> 121 121 122 122 123 124 125 126 127 128 129 130 131 123 <!-- upload the site description and the jar file via ssh --> 124 <target name="upload" depends="dist,site"> 125 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 126 <exec executable="scp"> 127 <arg value="${plugin.jar}"/> 128 <arg value="${plugin.site.file}"/> 129 <arg value="${plugin.site.upload.target}"/> 130 </exec> 131 </target> 132 132 133 133 </project> -
applications/editors/josm/plugins/nearclick/build.xml
r4088 r5147 1 1 <project name="nearclick" default="build" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 3 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 <!--<property name="josm" location="../josm/josm-latest.jar" ></property>--> 6 7 <!-- target directory to place the plugin in --> 8 <!-- Windows has a different home directory scheme then unix/linux --> 9 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix --> 10 <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>--> 11 <property name="plugins" location="${user.home}/Application Data/JOSM/plugins" ></property> 12 12 13 13 <!-- you should not need to modify anything below this! --> 14 14 15 15 16 17 18 19 16 <target name="init"> 17 <mkdir dir="build"></mkdir> 18 <mkdir dir="dist"></mkdir> 19 </target> 20 20 21 22 23 24 25 21 <target name="compile" depends="init"> 22 <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true"> 23 <include name="**/*.java" /> 24 </javac> 25 </target> 26 26 27 28 29 30 31 32 33 34 27 <target name="build" depends="compile"> 28 <jar destfile="dist/nearclick.jar" basedir="build"> 29 <manifest> 30 <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" /> 31 <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is usefull for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)." /> 32 </manifest> 33 </jar> 34 </target> 35 35 36 37 38 39 36 <target name="clean"> 37 <delete dir="build" /> 38 <delete dir="dist" /> 39 </target> 40 40 41 42 43 41 <target name="clean_install"> 42 <delete file="${plugins}/nearclick.jar" /> 43 </target> 44 44 45 46 47 45 <target name="install" depends="build"> 46 <copy file="dist/nearclick.jar" todir="${plugins}"/> 47 </target> 48 48 49 49 </project> -
applications/editors/josm/plugins/openvisible/build.xml
r5140 r5147 1 1 <project name="openvisible" default="dist" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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.dist.dir" value="dist"/> 8 <property name="plugin.name" value="${ant.project.name}"/> 9 <property name="plugin.jar" value="${plugin.name}.jar"/> 10 11 <!-- plugin meta data (enter new version number if anything changed!) --> 12 <property name="plugin.version" value="0.2"/> 13 <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/> 14 <property name="plugin.stage" value="50"/> 15 <property name="plugin.class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/> 16 17 <!-- update site meta data --> 18 <property name="plugin.site.file" value="josm-site.xml"/> 19 <property name="plugin.site.description" value="Josm's OpenVisible Update Site"/> 20 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/> 21 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/> 22 23 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 24 <target name="dist" depends="compile,site"> 25 <!-- images --> 26 <copy todir="${plugin.build.dir}/images"> 27 <fileset dir="images" /> 28 </copy> 29 <!-- copy configuration xml files 30 <copy todir="${plugin.build.dir}"> 31 <fileset dir="src"> 32 <include name="*.xml"/> 33 </fileset> 34 </copy> 35 --> 36 37 <mkdir dir="dist"/> 38 39 39 <!-- create jar file --> 40 40 <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}"> … … 47 47 </manifest> 48 48 </jar> 49 49 </target> 50 50 51 52 53 54 55 56 57 58 59 60 <fileset dir="lib">61 <include name="**/*.jar"/>62 </fileset>63 -->64 65 66 51 <target name="compile" depends="init"> 52 <mkdir dir="${plugin.build.dir}"/> 53 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 54 <classpath> 55 <pathelement path="${josm.build.dir}/build"/> 56 <fileset dir="${josm.build.dir}/lib"> 57 <include name="**/*.jar"/> 58 </fileset> 59 <!-- 60 <fileset dir="lib"> 61 <include name="**/*.jar"/> 62 </fileset> 63 --> 64 </classpath> 65 </javac> 66 </target> 67 67 68 68 <target name="install" depends="dist"> 69 69 <copy file="${plugin.dist.dir}/${plugin.jar}" todir="${josm.home.dir}/plugins" /> 70 71 72 <fileset dir="lib">73 <include name="**/*.jar"/>74 </fileset>75 70 <!-- 71 <copy todir="${josm.home.dir}/plugins"> 72 <fileset dir="lib"> 73 <include name="**/*.jar"/> 74 </fileset> 75 </copy> 76 76 --> 77 77 </target> 78 78 79 79 <target name="init"> 80 81 80 <echo>java version: ${java.version}</echo> 81 </target> 82 82 83 83 <target name="clean"> … … 92 92 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 93 93 <plugins> 94 95 96 97 98 94 <plugin id="${ant.project.name}" version="${plugin.version}"> 95 <name>${ant.project.name}</name> 96 <description>${plugin.description}</description> 97 <resource>${plugin.site.url}${plugin.jar}</resource> 98 </plugin> 99 99 </plugins> 100 101 100 </echo> 101 </target> 102 102 103 104 105 106 107 <site version="1.0">108 <!-- meta data of site -->109 110 111 112 103 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 104 <target name="site-full-donotuse"> 105 <echo message="creating site description in ${plugin.site.file}"/> 106 <echo file="${plugin.site.file}"><?xml version="1.0"?> 107 <site version="1.0"> 108 <!-- meta data of site --> 109 <site-info> 110 <site-name>${plugin.site.description}</site-name> 111 <site-url>${plugin.site.url}</site-url> 112 </site-info> 113 113 114 115 116 117 118 119 120 121 122 123 124 114 <!-- plugins available on this site --> 115 <plugins> 116 <plugin id="${ant.project.name}" version="${plugin.version}"> 117 <name>${ant.project.name}</name> 118 <description>${plugin.description}</description> 119 <resources> 120 <resource src="${plugin.site.url}${plugin.jar}" 121 target="${josm.home.dir}/plugins/${plugin.jar}"/> 122 </resources> 123 </plugin> 124 </plugins> 125 125 </site> 126 127 126 </echo> 127 </target> 128 128 129 129 130 131 132 133 134 135 136 137 138 130 <!-- upload the site description and the jar file via ssh --> 131 <target name="upload" depends="dist,site"> 132 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 133 <exec executable="scp"> 134 <arg value="${plugin.dist.dir}/${plugin.jar}"/> 135 <arg value="${plugin.site.file}"/> 136 <arg value="${plugin.site.upload.target}"/> 137 </exec> 138 </target> 139 139 140 140 </project> -
applications/editors/josm/plugins/osmarender/build.xml
r4972 r5147 1 1 <project name="osmarender" default="install" basedir="."> 2 2 3 4 3 <property name="josm" location="../../core/dist/josm-custom.jar" /> 4 <property name="rendering" location="../../../../rendering" /> 5 5 6 7 8 9 10 11 12 6 <target name="compile"> 7 <mkdir dir="bin"></mkdir> 8 <mkdir dir="dist"></mkdir> 9 <javac srcdir="src" debug="true" classpath="${josm}" destdir="bin"> 10 <include name="**/*.java" /> 11 </javac> 12 </target> 13 13 14 15 16 17 18 19 20 21 22 23 24 14 <target name="build" depends="compile"> 15 <copy todir="bin" file="${rendering}/osmarender6/osmarender.xsl"/> 16 <copy tofile="bin/osm-map-features.xml" 17 file="${rendering}/osmarender5/osm-map-features-z17.xml"/> 18 <jar destfile="dist/osmarender.jar" basedir="bin"> 19 <manifest> 20 <attribute name="Plugin-Class" value="OsmarenderPlugin" /> 21 <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image" /> 22 </manifest> 23 </jar> 24 </target> 25 25 26 27 28 29 26 <target name="clean"> 27 <delete dir="bin" /> 28 <delete dir="dist" /> 29 </target> 30 30 31 31 <target name="install" depends="compile,build" /> 32 32 33 33 </project> -
applications/editors/josm/plugins/plastic_laf/build.xml
r3792 r5147 1 1 <project name="plastic_laf" default="build" basedir="."> 2 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 <target name="build"> 4 <mkdir dir="dist"></mkdir> 5 <unjar dest="bin" src="lib/looks-2.0.4.jar" /> 6 <javac srcdir="src" destdir="bin"> 7 <include name="**/*.java" /> 8 </javac> 9 <jar destfile="dist/plastic_laf.jar" basedir="bin"> 10 <manifest> 11 <attribute name="Plugin-Class" value="plastic_laf.Plugin" /> 12 <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" /> 13 <attribute name="Plugin-Early" value="true" /> 14 </manifest> 15 </jar> 16 </target> 17 17 18 19 20 18 <target name="clean"> 19 <delete dir="dist" /> 20 </target> 21 21 22 22 </project> -
applications/editors/josm/plugins/pluginmanager/build.xml
r3787 r5147 1 1 <project name="pluginmanager" default="dist" basedir="."> 2 2 3 4 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="plugin.build.dir" value="bin"/> 7 7 <property name="plugin.name" value="${ant.project.name}"/> 8 9 10 11 12 8 <property name="plugin.jar" value="${plugin.name}.jar"/> 9 10 <!-- plugin meta data (enter new version number if anything changed!) --> 11 <property name="plugin.version" value="0.3.0"/> 12 <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/> 13 13 <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/> 14 14 15 16 17 15 <!-- update site meta data --> 16 <property name="plugin.site.file" value="josm-site.xml"/> 17 <property name="plugin.site.description" value="Josm's PluginManager Update Site"/> 18 18 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/pluginmanager/"/> 19 19 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/pluginmanager/"/> 20 20 21 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 22 <target name="dist" depends="compile, site"> 23 <!-- images --> 24 <!-- 25 <copy todir="${plugin.build.dir}/images"> 26 <fileset dir="src/images" /> 27 </copy> 28 --> 29 <!-- copy configuration xml files --> 30 <copy todir="${plugin.build.dir}"> 31 <fileset dir="src"> 32 <include name="*.xml"/> 33 </fileset> 34 </copy> 35 36 <!-- create jar file --> 37 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 38 <manifest> 39 39 <attribute name="Plugin-Class" value="${plugin.class}" /> 40 40 <attribute name="Plugin-Description" value="${plugin.description}" /> 41 41 <attribute name="Plugin-Version" value="${plugin.version}" /> 42 42 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /--> 43 44 45 43 </manifest> 44 </jar> 45 </target> 46 46 47 48 49 50 51 52 53 54 55 56 57 47 <target name="compile" depends="init"> 48 <mkdir dir="${plugin.build.dir}"/> 49 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 50 <classpath> 51 <pathelement path="${josm.build.dir}/build"/> 52 <fileset dir="${josm.build.dir}/lib"> 53 <include name="**/*.jar"/> 54 </fileset> 55 </classpath> 56 </javac> 57 </target> 58 58 59 60 61 59 <target name="install" depends="dist"> 60 <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" /> 61 </target> 62 62 63 63 <target name="init"> 64 65 64 <echo>java version: ${java.version}</echo> 65 </target> 66 66 67 68 67 <target name="clean"> 68 <delete dir="${plugin.build.dir}" /> 69 69 <delete dir="${plugin.site.file}" /> 70 70 <delete dir="${plugin.jar}" /> 71 71 </target> 72 72 73 73 <!-- write site description for the given plugin --> 74 74 <target name="site"> 75 76 77 <site version="1.0">78 <!-- meta data of site -->75 <echo message="creating site description in ${plugin.site.file}"/> 76 <echo file="${plugin.site.file}"><?xml version="1.0"?> 77 <site version="1.0"> 78 <!-- meta data of site --> 79 79 <site-info> 80 81 80 <site-name>${plugin.site.description}</site-name> 81 <site-url>${plugin.site.url}</site-url> 82 82 </site-info> 83 83 84 84 <!-- plugins available on this site --> 85 85 <plugins> 86 87 88 89 90 91 92 93 86 <plugin id="${ant.project.name}" version="${plugin.version}"> 87 <name>${ant.project.name}</name> 88 <description>${plugin.description}</description> 89 <resources> 90 <resource src="${plugin.site.url}/${plugin.jar}" 91 target="$${josm.user.dir}/plugins/${plugin.jar}"/> 92 </resources> 93 </plugin> 94 94 </plugins> 95 </site>96 97 95 </site> 96 </echo> 97 </target> 98 98 99 100 101 102 103 104 105 106 107 99 <!-- upload the site description and the jar file via ssh --> 100 <target name="upload" depends="dist,site"> 101 <echo message="uploading jar and site description to ${plugin.site.upload.target}"/> 102 <exec executable="scp"> 103 <arg value="${plugin.jar}"/> 104 <arg value="${plugin.site.file}"/> 105 <arg value="${plugin.site.upload.target}"/> 106 </exec> 107 </target> 108 108 109 109 </project> -
applications/editors/josm/plugins/slippymap/build.xml
r3788 r5147 1 1 <project name="slippymap" default="dist" basedir="."> 2 2 3 4 5 6 7 3 <target name="dist" depends="compile"> 4 <!-- images --> 5 <copy todir="build/images"> 6 <fileset dir="images" /> 7 </copy> 8 8 9 10 11 12 13 14 15 16 9 <!-- create josm-custom.jar --> 10 <jar destfile="slippymap.jar" basedir="build"> 11 <manifest> 12 <attribute name="Plugin-Class" value="slippymap.SlippyMapPlugin" /> 13 <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" /> 14 </manifest> 15 </jar> 16 </target> 17 17 18 19 20 18 <target name="compile" depends="init"> 19 <javac srcdir="slippymap" classpath="../../core/dist/josm-custom.jar" destdir="build" /> 20 </target> 21 21 22 23 24 22 <target name="init"> 23 <mkdir dir="build" /> 24 </target> 25 25 26 27 28 26 <target name="clean"> 27 <delete dir="build" /> 28 </target> 29 29 30 30 </project> -
applications/editors/josm/plugins/surveyor/build.xml
r4499 r5147 1 1 <project name="surveyor" default="dist" basedir="."> 2 2 3 4 5 6 7 8 9 <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>10 11 12 13 14 15 16 17 18 19 20 21 22 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"/> 10 11 <!-- plugin meta data (enter new version number if anything changed!) --> 12 <property name="plugin.version" value="1.3.3"/> 13 <property name="plugin.description" value="Allow adding markers/nodes on current gps positions (V${plugin.version})."/> 14 <property name="plugin.stage" value="60"/> 15 <property name="plugin.class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/> 16 17 <!-- update site meta data --> 18 <property name="plugin.site.file" value="josm-site.xml"/> 19 <property name="plugin.site.description" value="Josm's Surveyor Update Site"/> 20 <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/surveyor/"/> 21 <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/surveyor/"/> 22 23 23 24 25 26 27 28 29 30 31 32 24 <target name="dist" depends="compile,site"> 25 <!-- images --> 26 <copy todir="${plugin.build.dir}/"> 27 <fileset dir="resources"> 28 <include name="*.xml"/> 29 <include name="audio/*"/> 30 </fileset> 31 </copy> 32 33 33 <!-- create jar file --> 34 34 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> … … 41 41 </manifest> 42 42 </jar> 43 43 </target> 44 44 45 46 47 48 49 50 51 52 45 <target name="compile" depends="init"> 46 <mkdir dir="${plugin.build.dir}"/> 47 <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5"> 48 <classpath> 49 <pathelement path="${josm.build.dir}/build"/> 50 <fileset dir="${josm.build.dir}/lib"> 51 <include name="**/*.jar"/> 52 </fileset> 53 53 <pathelement location="${livegpsplugin.jar}"/> 54 55 56 54 </classpath> 55 </javac> 56 </target> 57 57 58 58 <target name="install" depends="dist"> … … 61 61 62 62 <target name="init"> 63 64 63 <echo>java version: ${java.version}</echo> 64 </target> 65 65 66 66 <target name="clean"> … … 75 75 <echo file="${plugin.site.file}"><!-- plugins available on this site --> 76 76 <plugins> 77 78 79 80 81 77 <plugin id="${ant.project.name}" version="${plugin.version}"> 78 <name>${ant.project.name}</name> 79 <description>${plugin.description}</description> 80 <resource>${plugin.site.url}${plugin.jar}</resource> 81 </plugin> 82 82 </plugins> 83 84 83 </echo> 84 </target> 85 85 86 87 88 89 90 <site version="1.0">91 <!-- meta data of site -->92 93 94 95 86 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) --> 87 <target name="site-full-donotuse"> 88 <echo message="creating site description in ${plugin.site.file}"/> 89 <echo file="${plugin.site.file}"><?xml version="1.0"?> 90 <site version="1.0"> 91 <!-- meta data of site --> 92 <site-info> 93 <site-name>${plugin.site.description}</site-name> 94 <site-url>${plugin.site.url}</site-url> 95 </site-info> 96 96 97 98 99 100 101 102 103 104 105 106 107 97 <!-- plugins available on this site --> 98 <plugins> 99 <plugin id="${ant.project.name}" version="${plugin.version}"> 100 <name>${ant.project.name}</name> 101 <description>${plugin.description}</description> 102 <resources> 103 <resource src="${plugin.site.url}${plugin.jar}" 104 target="${josm.home.dir}/plugins/${plugin.jar}"/> 105 </resources> 106 </plugin> 107 </plugins> 108 108 </site> 109 110 109 </echo> 110 </target> 111 111 112 112 113 114 115 116 117 118 119 120 121 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> 121 </target> 122 122 123 123 </project> -
applications/editors/josm/plugins/tagging-preset-tester/build.xml
r3996 r5147 7 7 8 8 <target name="build" depends="compile"> 9 10 11 12 13 14 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 15 </target> 16 16 17 17 <target name="clean"> 18 19 18 <delete dir="dist"/> 19 <delete dir="build"/> 20 20 </target> 21 21 -
applications/editors/josm/plugins/utilsplugin/build.xml
r5076 r5147 1 1 <project name="utilsplugin" default="build" basedir="."> 2 2 <property name="josm" location="../../core/dist/josm-custom.jar" /> 3 3 4 4 <target name="init"> 5 5 <mkdir dir="build"/> … … 20 20 <attribute name="Plugin-Version" value="0.5"/> 21 21 <attribute name="Author" 22 value="(originally) Martijn van Oosterhout >kleptog@svana.org>"/>22 value="(originally) Martijn van Oosterhout >kleptog@svana.org>"/> 23 23 </manifest> 24 24 </jar> -
applications/editors/josm/plugins/validator/build.xml
r4024 r5147 1 1 <project name="validator" default="build" basedir="."> 2 2 3 4 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 5 6 6 7 8 9 10 7 8 <target name="init"> 9 <mkdir dir="build"/> 10 </target> 11 11 12 13 14 15 16 12 <target name="compile" depends="init"> 13 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"> 14 <include name="**/*.java" /> 15 </javac> 16 </target> 17 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 18 <target name="build" depends="clean, compile"> 19 <copy todir="build/images"> 20 <fileset dir="images"/> 21 </copy> 22 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 23 <env key="LANG" value="C"/> 24 <arg value="info"/> 25 <arg value="--xml"/> 26 <arg value="."/> 27 </exec> 28 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 29 <delete file="REVISION"/> 30 <jar destfile="validator.jar" basedir="build"> 31 <manifest> 32 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/> 33 <attribute name="Plugin-Description" value="A OSM data validator"/> 34 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 35 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 36 <attribute name="Author" value="Francisco R. Santos <frsantos@gmail.com>"/> 37 </manifest> 38 </jar> 39 </target> 40 40 41 42 43 41 <target name="clean"> 42 <delete dir="build" /> 43 </target> 44 44 45 46 47 45 <target name="install" depends="build"> 46 <copy file="validator.jar" todir="${user.home}/.josm/plugins"/> 47 </target> 48 48 49 50 51 52 49 <target name="test" depends="install"> 50 <java jar="${josm}" fork="true"> 51 </java> 52 </target> 53 53 </project> -
applications/editors/josm/plugins/waypoints/build.xml
r3788 r5147 1 1 <project name="waypoints" default="build" basedir="."> 2 2 3 4 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 5 6 6 7 7 8 9 10 11 8 <target name="init"> 9 <mkdir dir="build"></mkdir> 10 <mkdir dir="dist"></mkdir> 11 </target> 12 12 13 14 15 16 17 13 <target name="compile" depends="init"> 14 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"> 15 <include name="**/*.java" /> 16 </javac> 17 </target> 18 18 19 20 21 22 23 24 25 26 27 28 29 30 31 19 <target name="build" depends="compile"> 20 <!-- 21 <copy todir="build/images"> 22 <fileset dir="images"></fileset> 23 </copy> 24 --> 25 <jar destfile="dist/waypoints.jar" basedir="build"> 26 <manifest> 27 <attribute name="Plugin-Class" value="waypoints.WaypointPlugin" /> 28 <attribute name="Plugin-Description" value="Automatic conversion of waypoints in a GPX file to OSM nodes." /> 29 </manifest> 30 </jar> 31 </target> 32 32 33 34 35 36 33 <target name="clean"> 34 <delete dir="build" /> 35 <delete dir="dist" /> 36 </target> 37 37 38 39 40 38 <target name="install" depends="build"> 39 <copy file="dist/waypoints.jar" todir="${user.home}/.josm/plugins"/> 40 </target> 41 41 42 42 </project> -
applications/editors/josm/plugins/wmsplugin/build.xml
r3310 r5147 1 1 <project name="wmsplugin" default="build" basedir="."> 2 2 3 4 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 5 5 6 6 7 7 8 9 10 11 8 <target name="init"> 9 <mkdir dir="build"></mkdir> 10 <mkdir dir="dist"></mkdir> 11 </target> 12 12 13 14 15 16 17 13 <target name="compile" depends="init"> 14 <javac srcdir="src" classpath="${josm}" debug="true" destdir="build"> 15 <include name="**/*.java" /> 16 </javac> 17 </target> 18 18 19 20 21 22 23 24 25 26 27 Change url via menu item, or wmsplugin.url in advanced prefs. v2.1" />28 29 30 19 <target name="build" depends="compile"> 20 <copy todir="build/images" > 21 <fileset dir="images" /> 22 </copy> 23 <jar destfile="dist/wmsplugin.jar" basedir="build"> 24 <manifest> 25 <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" /> 26 <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed,<br> i.e from Metacarta's Map Rectifier, Landsat, NPE.<br> 27 Change url via menu item, or wmsplugin.url in advanced prefs. v2.1" /> 28 </manifest> 29 </jar> 30 </target> 31 31 32 33 34 35 32 <target name="clean"> 33 <delete dir="build" /> 34 <delete dir="dist" /> 35 </target> 36 36 37 38 39 37 <target name="install" depends="build"> 38 <copy file="dist/wmsplugin.jar" todir="${user.home}/.josm/plugins"/> 39 </target> 40 40 41 41 </project> -
applications/editors/josm/plugins/ywms/build.xml
r4018 r5147 1 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 2 6 3 <!-- point to your JOSM directory --> 4 <property name="josm" location="../../core/dist/josm-custom.jar" /> 7 8 <target name="init"> 9 <mkdir dir="build"/> 10 </target> 5 11 12 <target name="compile" depends="init"> 13 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"> 14 <include name="**/*.java" /> 15 </javac> 16 </target> 6 17 7 8 <target name="init"> 9 <mkdir dir="build"/> 10 </target> 18 <target name="build" depends="compile"> 19 <copy todir="build/resources"> 20 <fileset dir="resources"/> 21 </copy> 22 <copy todir="build/images"> 23 <fileset dir="images"/> 24 </copy> 25 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 26 <env key="LANG" value="C"/> 27 <arg value="info"/> 28 <arg value="--xml"/> 29 <arg value="."/> 30 </exec> 31 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 32 <delete file="REVISION"/> 33 <jar destfile="ywms.jar" basedir="build"> 34 <manifest> 35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/> 36 <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/> 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 39 <attribute name="Author" value="Francisco R. Santos <frsantos@gmail.com>"/> 40 </manifest> 41 </jar> 42 </target> 11 43 12 <target name="compile" depends="init"> 13 <javac srcdir="src" classpath="${josm}" destdir="build" debug="true"> 14 <include name="**/*.java" /> 15 </javac> 16 </target> 44 <target name="clean"> 45 <delete dir="build" /> 46 </target> 17 47 18 <target name="build" depends="compile"> 19 <copy todir="build/resources"> 20 <fileset dir="resources"/> 21 </copy> 22 <copy todir="build/images"> 23 <fileset dir="images"/> 24 </copy> 25 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false"> 26 <env key="LANG" value="C"/> 27 <arg value="info"/> 28 <arg value="--xml"/> 29 <arg value="."/> 30 </exec> 31 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/> 32 <delete file="REVISION"/> 33 <jar destfile="ywms.jar" basedir="build"> 34 <manifest> 35 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ywms.YWMSPlugin"/> 36 <attribute name="Plugin-Description" value="A WMS server for Yahoo imagery based on Firefox"/> 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 39 <attribute name="Author" value="Francisco R. Santos <frsantos@gmail.com>"/> 40 </manifest> 41 </jar> 42 </target> 48 <target name="install" depends="build"> 49 <copy file="ywms.jar" todir="${user.home}/.josm/plugins"/> 50 </target> 43 51 44 <target name="clean"> 45 <delete dir="build" /> 46 </target> 47 48 <target name="install" depends="build"> 49 <copy file="ywms.jar" todir="${user.home}/.josm/plugins"/> 50 </target> 51 52 <target name="test" depends="install"> 53 <java jar="${josm}" fork="true"/> 54 </target> 52 <target name="test" depends="install"> 53 <java jar="${josm}" fork="true"/> 54 </target> 55 55 56 56 </project>
Note:
See TracChangeset
for help on using the changeset viewer.