Changeset 14003 in osm for applications


Ignore:
Timestamp:
2009-03-08T12:02:49+01:00 (16 years ago)
Author:
stoecker
Message:

cleanup build scripts and manifests

Location:
applications/editors/josm/plugins
Files:
1 added
2 deleted
24 edited
1 moved

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/DirectUpload/build.xml

    r13373 r14003  
    11<project name="DirectUpload" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true" encoding="UTF-8">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
    1918        <copy todir="${plugin.build.dir}/images">
    2019            <fileset dir="images"/>
    2120        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Subhodip Biswas"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="This plugin directly upload GPS Traces from current active layer in JOSM to openstreetmap.org."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/User:Subhodip/GSoC_Doc#DirectUpload_Plugin_in_JOSM_:"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2234        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2335            <env key="LANG" value="C"/>
     
    2840        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2941        <delete file="REVISION"/>
    30         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    31             <manifest>
    32                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" />
    33                 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" />
    34                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    35                 <attribute name="Plugin-Mainversion" value="1180"/>
    36                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    37                 <attribute name="Author" value="Subhodip Biswas &lt;subhodipbiswas@gmail.com&gt;" />
    38             </manifest>
    39         </jar>
    4042    </target>
    4143    <target name="clean">
    42         <delete dir="${plugin.build.dir}" />
    43         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4455    </target>
    4556</project>
  • applications/editors/josm/plugins/agpifoj/build.xml

    r12780 r14003  
    1 <project name="agpifoj" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"             location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     1<project name="AgPifoJ" default="dist" basedir=".">
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    176    <property name="ant.build.javac.target" value="1.5"/>
    18     <target name="dist" depends="compile">
    19         <copy todir="build">
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}">
    2019            <fileset dir=".">
    2120                <include name="CHANGELOG"/>
    2221                <include name="LICENSE"/>
    23                 <include name="README" />
     22                <include name="README"/>
    2423            </fileset>
    2524        </copy>
    26 <!-- images -->
    27         <copy todir="build/images">
    28             <fileset dir="images" />
     25        <copy todir="${plugin.build.dir}/images">
     26            <fileset dir="images"/>
    2927        </copy>
     28        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     29            <manifest>
     30                <attribute name="Author" value="Christian Gallioz"/>
     31                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.agpifoj.AgpifojPlugin"/>
     32                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     33                <attribute name="Plugin-Description" value="Another geotag/> for JOSM. Correlates pictures with GPS tracks or import EXIF geotagged pictures."/>
     34                <attribute name="Plugin-Early" value="false"/>
     35                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/>
     36                <attribute name="Plugin-Mainversion" value="1465"/>
     37                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     38            </manifest>
     39        </jar>
     40    </target>
     41    <target name="revision">
    3042        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3143            <env key="LANG" value="C"/>
     
    3648        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3749        <delete file="REVISION"/>
    38         <jar destfile="${plugin.jar}" basedir="build">
    39             <manifest>
    40                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.agpifoj.AgpifojPlugin" />
    41                 <attribute name="Plugin-Description" value="An other geotag plugin for josm. Correlates pictures with GPS tracks, or import Exif geotagged pictures." />
    42                 <attribute name="Plugin-Early" value="false" />
    43                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    44                 <attribute name="Plugin-Mainversion" value="1180"/>
    45                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    46             </manifest>
    47         </jar>
    48     </target>
    49     <target name="compile" depends="init">
    50         <echo message="creating ${plugin.jar}"/>
    51         <javac srcdir="src" classpath="${josm}" destdir="build">
    52             <compilerarg value="-Xlint:deprecation"/>
    53         </javac>
    54     </target>
    55     <target name="init">
    56         <mkdir dir="${plugin.build.dir}" />
    5750    </target>
    5851    <target name="clean">
    59         <delete dir="${plugin.build.dir}" />
    60         <delete file="${plugin.jar}" />
     52        <delete dir="${plugin.build.dir}"/>
     53        <delete file="${plugin.jar}"/>
    6154    </target>
    6255    <target name="install" depends="dist">
     56        <property environment="env"/>
     57        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     58            <and>
     59                <os family="windows"/>
     60            </and>
     61        </condition>
    6362        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    6463    </target>
  • applications/editors/josm/plugins/cadastre-fr/build.xml

    r13785 r14003  
    11<project name="cadastre-fr" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true">
    13             <include name="**/*.java" />
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    1415        </javac>
    1516    </target>
    16 
    17     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
    1818        <copy todir="${plugin.build.dir}/images">
    1919            <fileset dir="images"/>
    2020        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Pieren"/>
     24                <attribute name="Plugin-Class" value="cadastre_fr.CadastrePlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="A special handler for the french land registry WMS server."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/FR:JOSM/Fr:Plugin/Cadastre"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Stage" value="60"/>
     30                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     31            </manifest>
     32        </jar>
     33    </target>
     34    <target name="revision">
    2135        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2236            <env key="LANG" value="C"/>
     
    2640        </exec>
    2741        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    28         <delete file="REVISION"/>
    29         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    30             <manifest>
    31                 <attribute name="Plugin-Class" value="cadastre_fr.CadastrePlugin"/>
    32                 <attribute name="Plugin-Description" value="A special handler for the french land registry WMS server"/>
    33                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    34                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    35                 <attribute name="Plugin-Stage" value="60"/>
    36                 <attribute name="Plugin-Mainversion" value="1280" />
    37                 <attribute name="Author" value="Pieren &lt;pieren3@gmail.com>"/>
    38             </manifest>
    39         </jar>
     42        <delete file="REVISION"/>
    4043    </target>
    4144    <target name="clean">
    42         <delete dir="${plugin.build.dir}" />
    43         <delete file="${plugin.jar}" />
     45        <delete dir="${plugin.build.dir}"/>
     46        <delete file="${plugin.jar}"/>
     47    </target>
     48    <target name="install" depends="dist">
     49        <property environment="env"/>
     50        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     51            <and>
     52                <os family="windows"/>
     53            </and>
     54        </condition>
     55        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4456    </target>
    4557</project>
  • applications/editors/josm/plugins/colorscheme/build.xml

    r12780 r14003  
    11<project name="colorscheme" default="dist" basedir=".">
    2 <!-- compilation properties -->
    3     <property name="josm.build.dir"   value="../../core"/>
    4     <property name="josm.home.dir"    value="${user.home}/.josm"/>
    5     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    6     <property name="plugin.build.dir" value="build"/>
    7     <property name="plugin.dist.dir"  value="../../dist"/>
    8     <property name="plugin.name"      value="${ant.project.name}"/>
    9     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    10     <property name="plugin.description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-) (V${plugin.version})."/>
    11     <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
    12 <!-- update site meta data -->
    13     <property name="plugin.site.file" value="josm-site.xml"/>
    14     <property name="plugin.site.description" value="Josm's ColorScheme Plugin Update Site"/>
    15     <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/colorscheme/"/>
    16     <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/colorscheme/"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    176    <property name="ant.build.javac.target" value="1.5"/>
    18     <target name="dist" depends="compile, site">
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
    1911        <echo message="creating ${plugin.jar}"/>
    20 <!-- images -->
    21 <!--
    22      <copy todir="${plugin.build.dir}/images">
    23        <fileset dir="src/images" />
    24      </copy>
    25      -->
    26 <!-- copy configuration xml files -->
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
    2718        <copy todir="${plugin.build.dir}">
    2819            <fileset dir="src">
     
    3021            </fileset>
    3122        </copy>
     23        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     24            <manifest>
     25                <attribute name="Author" value="Christof Dallermassl"/>
     26                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin" />
     27                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     28                <attribute name="Plugin-Description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-)" />
     29                <attribute name="Plugin-Mainversion" value="1180"/>
     30                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     31            </manifest>
     32        </jar>
     33    </target>
     34    <target name="revision">
    3235        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3336            <env key="LANG" value="C"/>
     
    3841        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3942        <delete file="REVISION"/>
    40 <!-- create jar file -->
    41         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    42             <manifest>
    43                 <attribute name="Plugin-Class" value="${plugin.class}" />
    44                 <attribute name="Plugin-Description" value="${plugin.description}" />
    45                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    46                 <attribute name="Plugin-Mainversion" value="1180"/>
    47                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    48             </manifest>
    49         </jar>
    5043    </target>
    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             </classpath>
    60         </javac>
     44    <target name="clean">
     45        <delete dir="${plugin.build.dir}"/>
     46        <delete file="${plugin.jar}"/>
    6147    </target>
    6248    <target name="install" depends="dist">
    63         <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
    64     </target>
    65     <target name="init">
    66         <echo>java version: ${java.version}</echo>
    67     </target>
    68     <target name="clean">
    69         <delete dir="${plugin.site.file}" />
    70         <delete dir="${plugin.build.dir}" />
    71         <delete file="${plugin.jar}" />
    72     </target>
    73 <!-- write site description for the given plugin so josm will accept it -->
    74     <target name="site">
    75         <echo message="creating site description in ${plugin.site.file}"/>
    76         <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    77   &lt;plugins>
    78   &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    79   &lt;name>${ant.project.name}&lt;/name>
    80   &lt;description>${plugin.description}&lt;/description>
    81   &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
    82   &lt;/plugin>
    83   &lt;/plugins>
    84 </echo>
    85     </target>
    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}">&lt;?xml version="1.0"?>
    90     &lt;site version="1.0">
    91     &lt;!-- meta data of site -->
    92 &lt;site-info>
    93 &lt;site-name>${plugin.site.description}&lt;/site-name>
    94 &lt;site-url>${plugin.site.url}&lt;/site-url>
    95 &lt;/site-info>
    96 
    97 &lt;!-- plugins available on this site -->
    98 &lt;plugins>
    99 &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    100 &lt;name>${ant.project.name}&lt;/name>
    101 &lt;description>${plugin.description}&lt;/description>
    102 &lt;resources>
    103 &lt;resource src="${plugin.site.url}${plugin.jar}"
    104 target="${josm.home.dir}/plugins/${plugin.jar}"/>
    105 &lt;/resources>
    106 &lt;/plugin>
    107 &lt;/plugins>
    108 &lt;/site>
    109 </echo>
    110     </target>
    111 <!-- upload the site description and the jar file via ssh -->
    112     <target name="upload" depends="dist,site">
    113         <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    114         <exec executable="scp">
    115             <arg value="${plugin.jar}"/>
    116             <arg value="${plugin.site.file}"/>
    117             <arg value="${plugin.site.upload.target}"/>
    118         </exec>
     49        <property environment="env"/>
     50        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     51            <and>
     52                <os family="windows"/>
     53            </and>
     54        </condition>
     55        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    11956    </target>
    12057</project>
  • applications/editors/josm/plugins/globalsat/build.xml

    r12780 r14003  
    11<project name="globalsat" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"             location="../../core/dist/josm-custom.jar" />
    13     <property name="RXTX"             location="./libs/RXTXcomm.jar" />
    14     <property name="plugin.build.dir" value="build"/>
    15     <property name="plugin.dist.dir"  value="../../dist"/>
    16     <property name="plugin.name"      value="${ant.project.name}"/>
    17     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    186    <property name="ant.build.javac.target" value="1.5"/>
    19     <path id="classpath">
    20         <fileset id="RXTX" file="${RXTX}"/>
    21         <fileset file="${josm}"/>
    22     </path>
    23     <target name="dist" depends="compile">
    24         <unjar dest="build">
    25             <fileset refid="RXTX" />
    26         </unjar>
    27 <!-- images -->
    28         <copy todir="build/images">
    29             <fileset dir="images" />
     7    <property name="RXTX"                   location="./libs/RXTXcomm.jar"/>
     8    <target name="init">
     9        <mkdir dir="${plugin.build.dir}"/>
     10    </target>
     11    <target name="compile" depends="init">
     12        <echo message="creating ${plugin.jar}"/>
     13        <javac srcdir="src" debug="false" destdir="${plugin.build.dir}">
     14            <compilerarg value="-Xlint:deprecation"/>
     15            <compilerarg value="-Xlint:unchecked"/>
     16            <classpath>
     17                <pathelement location="${josm}"/>
     18                <pathelement location="${RXTX}"/>
     19            </classpath>
     20        </javac>
     21    </target>
     22    <target name="dist" depends="compile,revision">
     23        <unjar dest="${plugin.build.dir}" src="${RXTX}"/>
     24        <copy todir="${plugin.build.dir}/images">
     25            <fileset dir="images"/>
    3026        </copy>
     27        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     28            <manifest>
     29                <attribute name="Author" value="Raphael Mack"/>
     30                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin"/>
     31                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     32                <attribute name="Plugin-Description" value="Download GPS points from Globalsat dg100 data logger directly in JOSM."/>
     33                <attribute name="Plugin-Link" value="http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"/>
     34                <attribute name="Plugin-Mainversion" value="1465"/>
     35                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     36            </manifest>
     37        </jar>
     38    </target>
     39    <target name="revision">
    3140        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3241            <env key="LANG" value="C"/>
     
    3746        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3847        <delete file="REVISION"/>
    39         <jar destfile="${plugin.jar}" basedir="build">
    40             <manifest>
    41                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin" />
    42                 <attribute name="Plugin-Description" value="Provide a dialog to read stored tracks from a Globalsat DG100 datalogger into a GPX-layer. Depends on installed rxtx library." />
    43                 <attribute name="Plugin-Author" value="ramack@raphael-mack.de" />
    44                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    45                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    46                 <attribute name="Plugin-Mainversion" value="1180"/>
    47             </manifest>
    48         </jar>
    49     </target>
    50     <target name="compile" depends="init">
    51         <echo message="creating ${plugin.jar}"/>
    52         <javac srcdir="src" classpathref="classpath" destdir="build">
    53             <compilerarg value="-Xlint:deprecation"/>
    54         </javac>
    55     </target>
    56     <target name="init">
    57         <mkdir dir="${plugin.build.dir}" />
    5848    </target>
    5949    <target name="clean">
    60         <delete dir="${plugin.build.dir}" />
    61         <delete file="${plugin.jar}" />
     50        <delete dir="${plugin.build.dir}"/>
     51        <delete file="${plugin.jar}"/>
    6252    </target>
    6353    <target name="install" depends="dist">
     54        <property environment="env"/>
     55        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     56            <and>
     57                <os family="windows"/>
     58            </and>
     59        </condition>
    6460        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    6561    </target>
  • applications/editors/josm/plugins/imagewaypoint/build.xml

    r12780 r14003  
    1 <project name="imagewaypoint" default="dist" basedir=".">
    2 <!-- compilation properties -->
    3     <property name="josm.build.dir"   value="../../core"/>
    4     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    5     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    6     <property name="plugin.build.dir" value="build"/>
    7     <property name="plugin.dist.dir"  value="../../dist"/>
    8     <property name="plugin.name"      value="${ant.project.name}"/>
    9     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    10     <target name="dist" depends="compile">
    11         <copy todir="build/images">
    12             <fileset dir="images" />
     1<project name="ImageWayPoint" default="dist" basedir=".">
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     6    <property name="ant.build.javac.target" value="1.5"/>
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    1320        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Flint"/>
     24                <attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Another plugin to match images to the waypoints in a GPX file. A match is made when the 'name', 'cmt' or 'desc' attribute of a waypoint tag matches the filename of an image."/>
     27                <attribute name="Plugin-Early" value="false"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    1434        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    1535            <env key="LANG" value="C"/>
     
    2040        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2141        <delete file="REVISION"/>
    22         <delete file="${plugin.jar}"/>
    23         <jar destfile="${plugin.jar}" basedir="build">
    24             <manifest>
    25                 <attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin" />
    26                 <attribute name="Plugin-Description" value="An other geotag plugin for josm. Correlates pictures with GPS tracks if the image name is sorted in the GPX trkpt tag." />
    27                 <attribute name="Plugin-Early" value="false" />
    28                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    29                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    30                 <attribute name="Plugin-Mainversion" value="1180" />
    31             </manifest>
    32         </jar>
    33     </target>
    34     <target name="compile" depends="init">
    35         <echo message="creating ${plugin.jar}"/>
    36         <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
    37             <compilerarg value="-Xlint:deprecation"/>
    38             <compilerarg value="-Xlint:unchecked"/>
    39             <include name="**/*.java" />
    40         </javac>
    41     </target>
    42     <target name="init">
    43         <mkdir dir="build" />
    4442    </target>
    4543    <target name="clean">
    46         <delete dir="build" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4755    </target>
    4856</project>
  • applications/editors/josm/plugins/lakewalker/build.xml

    r12780 r14003  
    11<project name="lakewalker" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    17     <property name="josm" location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    186    <property name="ant.build.javac.target" value="1.5"/>
    197    <target name="init">
     
    2210    <target name="compile" depends="init">
    2311        <echo message="creating ${plugin.jar}"/>
    24         <mkdir dir="build"></mkdir>
    25         <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
    26             <include name="**/*.java" />
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    2715        </javac>
    28         <mkdir dir="build/images"></mkdir>
    29         <copy todir="build">
    30             <fileset dir="${plugin.build.dir}" casesensitive="yes">
    31                 <filename name="**/*.class"/>
    32             </fileset>
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    3320        </copy>
    34         <copy todir="build/images">
    35             <fileset dir="images" casesensitive="yes">
    36                 <filename name="**/*.png"/>
    37             </fileset>
    38         </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Brent Easton, Jason Reid"/>
     24                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
     25                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
     26                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     27                <attribute name="Plugin-Description" value="Helps vectorizing WMS images." />
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
    3932    </target>
    40     <target name="dist" depends="compile">
     33    <target name="revision">
    4134        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    4235            <env key="LANG" value="C"/>
     
    4740        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    4841        <delete file="REVISION"/>
    49         <jar destfile="${plugin.jar}" basedir="build">
    50             <manifest>
    51                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
    52                 <attribute name="Plugin-Description" value="Interface to Lakewalker module" />
    53                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    54                 <attribute name="Plugin-Mainversion" value="1180"/>
    55                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    56                 <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>, Jason Reid &lt;jrreid@ucalgary.ca>"/>
    57                 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
    58             </manifest>
    59         </jar>
    6042    </target>
    6143    <target name="clean">
    62         <delete dir="${plugin.build.dir}" />
    63         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
    6446    </target>
    6547    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
    6654        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    67         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR1"></mkdir>
    68         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR2"></mkdir>
    69         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR3"></mkdir>
    7055    </target>
    7156</project>
  • applications/editors/josm/plugins/livegps/build.xml

    r12780 r14003  
    11<project name="livegps" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10 <!--<property name="josm.build.dir"   value="../../JOSM/"/> -->
    11     <property name="josm.build.dir"   value="../../core/"/>
    12     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    13     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    14     <property name="plugin.build.dir" value="build"/>
    15     <property name="plugin.dist.dir"  value="../../dist"/>
    16     <property name="plugin.name"      value="${ant.project.name}"/>
    17     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    18     <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
    19     <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
    20 <!-- plugin meta data (enter new version number if anything changed!) -->
    21     <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/>
    22     <property name="plugin.stage" value="50"/>
    23     <property name="plugin.class" value="livegps.LiveGpsPlugin"/>
    24 <!-- update site meta data -->
    25     <property name="plugin.site.file" value="josm-site.xml"/>
    26     <property name="plugin.site.description" value="Josm's LiveGps Update Site"/>
    27     <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/>
    28     <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    296    <property name="ant.build.javac.target" value="1.5"/>
    307    <target name="init">
    318        <mkdir dir="${plugin.build.dir}"/>
    329    </target>
    33     <target name="dist" depends="compile">
    34 <!-- images -->
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
    3518        <copy todir="${plugin.build.dir}/images">
    36             <fileset dir="images" />
     19            <fileset dir="images"/>
    3720        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Frederik Ramm"/>
     24                <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Support live GPS input (moving dot) through a connection to gpsd server."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LiveGPS"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Stage" value="50"/>
     30                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     31            </manifest>
     32        </jar>
     33    </target>
     34    <target name="revision">
    3835        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3936            <env key="LANG" value="C"/>
     
    4441        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    4542        <delete file="REVISION"/>
    46 <!-- create jar file -->
    47         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    48             <manifest>
    49                 <attribute name="Plugin-Class" value="${plugin.class}" />
    50                 <attribute name="Plugin-Description" value="${plugin.description}" />
    51                 <attribute name="Plugin-Mainversion" value="1180" />
    52                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    53                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    54 <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /-->
    55                 <attribute name="Plugin-Stage" value="${plugin.stage}" />
    56             </manifest>
    57         </jar>
    5843    </target>
    59     <target name="compile" depends="init">
    60         <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    61             <compilerarg value="-Xlint:deprecation"/>
    62             <classpath>
    63                 <pathelement path="${josm.build.dir}/build"/>
    64                 <fileset dir="${josm.build.dir}/lib">
    65                     <include name="../core/build/josm.jar"/>
    66                     <include name="**/*.jar"/>
    67                 </fileset>
    68                 <pathelement location="${plugin.jar}"/>
    69             </classpath>
    70         </javac>
     44    <target name="clean">
     45        <delete dir="${plugin.build.dir}"/>
     46        <delete file="${plugin.jar}"/>
    7147    </target>
    7248    <target name="install" depends="dist">
     49        <property environment="env"/>
     50        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     51            <and>
     52                <os family="windows"/>
     53            </and>
     54        </condition>
    7355        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    74         <copy file="liveGPS.conf" todir="${josm.plugins.dir}/livegps/" />
    75     </target>
    76     <target name="clean">
    77         <delete dir="${plugin.build.dir}" />
    78         <delete file="${plugin.jar}" />
    7956    </target>
    8057</project>
  • applications/editors/josm/plugins/measurement/build.xml

    r12780 r14003  
    11<project name="measurement" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"             location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    176    <property name="ant.build.javac.target" value="1.5"/>
    18     <target name="dist" depends="compile">
    19 <!-- images -->
    20         <copy todir="build/images">
    21             <fileset dir="images" />
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    2220        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Raphael Mack, Reza Mohammadi"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments, area surrounded by a (simple) closed way and create measurement paths (which also can be imported from a gps layer)."/>
     27                <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     29            </manifest>
     30        </jar>
     31    </target>
     32    <target name="revision">
    2333        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2434            <env key="LANG" value="C"/>
     
    2939        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3040        <delete file="REVISION"/>
    31         <jar destfile="${plugin.jar}" basedir="build">
    32             <manifest>
    33                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin" />
    34                 <attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments and create measurement paths (which also can be imported from a gps layer)" />
    35                 <attribute name="Plugin-Author" value="mail@raphael-mack.de" />
    36                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    37                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    38                 <attribute name="Plugin-Mainversion" value="1180" />
    39             </manifest>
    40         </jar>
    41     </target>
    42     <target name="compile" depends="init">
    43         <echo message="creating ${plugin.jar}"/>
    44         <javac srcdir="src" classpath="${josm}" destdir="build">
    45             <compilerarg value="-Xlint:deprecation"/>
    46         </javac>
    47     </target>
    48     <target name="init">
    49         <mkdir dir="${plugin.build.dir}" />
    5041    </target>
    5142    <target name="clean">
    52         <delete dir="${plugin.build.dir}" />
    53         <delete file="${plugin.jar}" />
     43        <delete dir="${plugin.build.dir}"/>
     44        <delete file="${plugin.jar}"/>
    5445    </target>
    5546    <target name="install" depends="dist">
     47        <property environment="env"/>
     48        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     49            <and>
     50                <os family="windows"/>
     51            </and>
     52        </condition>
    5653        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5754    </target>
  • applications/editors/josm/plugins/nearclick/build.xml

    r12781 r14003  
    11<project name="nearclick" default="dist" basedir=".">
    2 <!-- compilation properties -->
    3     <property name="josm.build.dir"   value="../../core"/>
    4     <property name="josm.home.dir"    value="${user.home}/.josm"/>
    5     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    6     <property name="plugin.build.dir" value="build"/>
    7     <property name="plugin.dist.dir"  value="../../dist"/>
    8     <property name="plugin.name"      value="${ant.project.name}"/>
    9     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    10 <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
    11     <property name="josm" location="../../core/dist/josm-custom.jar" />
    12 <!-- target directory to place the plugin in -->
    13 <!-- Windows has a different home directory scheme then unix/linux -->
    14 <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
    15 <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
    16     <property name="plugins" location="${user.home}/Application Data/JOSM/plugins" ></property>
    17 <!-- you should not need to modify anything below this! -->
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    186    <property name="ant.build.javac.target" value="1.5"/>
    197    <target name="init">
    20         <mkdir dir="build"></mkdir>
     8        <mkdir dir="${plugin.build.dir}"/>
    219    </target>
    2210    <target name="compile" depends="init">
    2311        <echo message="creating ${plugin.jar}"/>
    24         <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
    25             <include name="**/*.java" />
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    2615        </javac>
    2716    </target>
    28     <target name="dist" depends="compile">
    29 <!-- define the version of the jar file -->
     17    <target name="dist" depends="compile,revision">
     18        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     19            <manifest>
     20                <attribute name="Author" value="Imi, David Earl"/>
     21                <attribute name="Plugin-Class" value="nearclick.NearClickPlugin"/>
     22                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     23                <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)."/>
     24                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Nearclick"/>
     25                <attribute name="Plugin-Mainversion" value="1465"/>
     26                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     27            </manifest>
     28        </jar>
     29    </target>
     30    <target name="revision">
    3031        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3132            <env key="LANG" value="C"/>
     
    3536        </exec>
    3637        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    37 <!-- delete intermediate file -->
    3838        <delete file="REVISION"/>
    39         <jar destfile="${plugin.jar}" basedir="build">
    40             <manifest>
    41                 <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
    42                 <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)." />
    43                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    44                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    45                 <attribute name="Plugin-Mainversion" value="1180" />
    46             </manifest>
    47         </jar>
    4839    </target>
    4940    <target name="clean">
    50         <delete dir="${plugin.build.dir}" />
    51         <delete file="${plugin.jar}" />
    52     </target>
    53     <target name="clean_install">
    54         <delete file="${plugins}/nearclick.jar" />
     41        <delete dir="${plugin.build.dir}"/>
     42        <delete file="${plugin.jar}"/>
    5543    </target>
    5644    <target name="install" depends="dist">
    57         <copy file="${plugin.jar}" todir="${plugins}"/>
     45        <property environment="env"/>
     46        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     47            <and>
     48                <os family="windows"/>
     49            </and>
     50        </condition>
     51        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5852    </target>
    5953</project>
  • applications/editors/josm/plugins/openstreetbugs/build.xml

    r12780 r14003  
    11<project name="openstreetbugs" default="dist" basedir=".">
    2 <!-- the path to JOSM source code (project directory) -->
    3     <property name="josm.base.dir" value="../../core" />
    4     <property name="josm.dist.dir" value="../../dist" />
    5 <!--a osm file, which will be loaded, when running the test target -->
    6     <property name="osmfile" value="/tmp/hoe.osm" />
    7 <!-- compilation properties -->
    8     <property name="josm.build.dir" value="${josm.base.dir}/build" />
    9     <property name="josm.home.dir" value="${user.home}/.josm" />
    10     <property name="josm" location="${josm.base.dir}/dist/josm-custom.jar" />
    11     <property name="lib.dir" value="lib" />
    12     <property name="plugin.build.dir" value="build" />
    13     <property name="plugin.name" value="${ant.project.name}" />
    14     <property name="plugin.jar" value="${plugin.build.dir}/${plugin.name}.jar" />
    15     <property name="ant.build.javac.target" value="1.5" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     6    <property name="ant.build.javac.target" value="1.5"/>
    167    <target name="init">
    17         <mkdir dir="${plugin.build.dir}" />
     8        <mkdir dir="${plugin.build.dir}"/>
    189    </target>
    1910    <target name="compile" depends="init">
    20         <echo message="creating ${plugin.jar}" />
    21         <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true">
    22             <include name="**/*.java" />
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    2315        </javac>
    2416    </target>
    25     <target name="dist" depends="clean, compile">
    26 <!-- copy images to jar -->
     17    <target name="dist" depends="compile,revision">
    2718        <copy todir="${plugin.build.dir}/images">
    28             <fileset dir="images" />
     19            <fileset dir="images"/>
    2920        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Henrik Niehaus"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osb.OsbPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    3034        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3135            <env key="LANG" value="C"/>
     
    3640        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3741        <delete file="REVISION"/>
    38 <!-- create the jar file -->
    39         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    40             <manifest>
    41                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osb.OsbPlugin" />
    42                 <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs" />
    43                 <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
    44                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
    45                 <attribute name="Plugin-Mainversion" value="1180"/>
    46                 <attribute name="Author" value="Henrik Niehaus" />
    47             </manifest>
    48         </jar>
    49         <copy todir="${josm.dist.dir}" file="${plugin.jar}" />
    5042    </target>
    51 <!-- clean target -->
    5243    <target name="clean">
    53         <delete dir="build" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
    5446    </target>
    5547    <target name="install" depends="dist">
    56         <condition property="isWindows">
    57             <os family="windows" />
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
    5853        </condition>
    59         <condition property="isUnix">
    60             <os family="unix" />
    61         </condition>
    62         <antcall target="install_win" />
    63         <antcall target="install_linux" />
    64     </target>
    65     <target name="install_win" if="isWindows">
    66         <property environment="env"/>
    67         <copy file="${plugin.jar}" todir="${env.APPDATA}/JOSM/plugins" />
    68     </target>
    69     <target name="install_linux" if="isUnix">
    70         <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins" />
    71     </target>
    72     <target name="test" depends="install">
    73         <java jar="${josm}" fork="true">
    74             <arg value="${osmfile}" />
    75             <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" />
    76         </java>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    7755    </target>
    7856</project>
  • applications/editors/josm/plugins/openvisible/build.xml

    r12780 r14003  
    11<project name="openvisible" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir" value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="plugin.build.dir" value="build"/>
    13     <property name="plugin.dist.dir" value="../../dist"/>
    14     <property name="plugin.name" value="${ant.project.name}"/>
    15     <property name="plugin.jar" value="${plugin.name}.jar"/>
    16     <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/>
    17     <property name="plugin.stage" value="50"/>
    18     <property name="plugin.class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
    19 <!-- update site meta data -->
    20     <property name="plugin.site.file" value="josm-site.xml"/>
    21     <property name="plugin.site.description" value="Josm's OpenVisible Update Site"/>
    22     <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/>
    23     <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    246    <property name="ant.build.javac.target" value="1.5"/>
    25     <target name="dist" depends="compile,site">
    26 <!-- images -->
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
    2718        <copy todir="${plugin.build.dir}/images">
    28             <fileset dir="images" />
     19            <fileset dir="images"/>
    2920        </copy>
    30 <!-- copy configuration xml files
    31      <copy todir="${plugin.build.dir}">
    32        <fileset dir="src">
    33          <include name="*.xml"/>
    34        </fileset>
    35      </copy>
    36      -->
    37         <mkdir dir="${plugin.dist.dir}"/>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Christof Dallermassl"/>
     24                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
     27                <attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Stage" value="50"/>
     30                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     31            </manifest>
     32        </jar>
     33    </target>
     34    <target name="revision">
    3835        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3936            <env key="LANG" value="C"/>
     
    4441        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    4542        <delete file="REVISION"/>
    46 <!-- create jar file -->
    47         <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}">
    48             <manifest>
    49                 <attribute name="Plugin-Class" value="${plugin.class}" />
    50                 <attribute name="Plugin-Description" value="${plugin.description}" />
    51                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    52                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    53                 <attribute name="Plugin-Mainversion" value="1180" />
    54                 <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
    55                 <attribute name="Plugin-Stage" value="${plugin.stage}" />
    56             </manifest>
    57         </jar>
    5843    </target>
    59     <target name="compile" depends="init">
    60         <echo message="creating ${plugin.jar}"/>
    61         <mkdir dir="${plugin.build.dir}"/>
    62         <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    63             <classpath>
    64                 <pathelement path="${josm.build.dir}/build"/>
    65                 <fileset dir="${josm.build.dir}/lib">
    66                     <include name="**/*.jar"/>
    67                 </fileset>
    68 <!--
    69             <fileset dir="lib">
    70               <include name="**/*.jar"/>
    71             </fileset>
    72             -->
    73             </classpath>
    74         </javac>
     44    <target name="clean">
     45        <delete dir="${plugin.build.dir}"/>
     46        <delete file="${plugin.jar}"/>
    7547    </target>
    7648    <target name="install" depends="dist">
    77         <copy file="${plugin.dist.dir}/${plugin.jar}" todir="${josm.plugins.dir}"/>
    78 <!--
    79     <copy todir="${josm.home.dir}/plugins">
    80           <fileset dir="lib">
    81             <include name="**/*.jar"/>
    82           </fileset>
    83     </copy>
    84     -->
    85     </target>
    86     <target name="init">
    87         <echo>java version: ${java.version}</echo>
    88     </target>
    89 <!-- write site description for the given plugin so josm will accept it -->
    90     <target name="site">
    91         <echo message="creating site description in ${plugin.site.file}"/>
    92         <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    93   &lt;plugins>
    94   &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    95   &lt;name>${ant.project.name}&lt;/name>
    96   &lt;description>${plugin.description}&lt;/description>
    97   &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
    98   &lt;/plugin>
    99   &lt;/plugins>
    100 </echo>
    101     </target>
    102 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    103     <target name="site-full-donotuse">
    104         <echo message="creating site description in ${plugin.site.file}"/>
    105         <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    106     &lt;site version="1.0">
    107     &lt;!-- meta data of site -->
    108 &lt;site-info>
    109 &lt;site-name>${plugin.site.description}&lt;/site-name>
    110 &lt;site-url>${plugin.site.url}&lt;/site-url>
    111 &lt;/site-info>
    112 
    113 &lt;!-- plugins available on this site -->
    114 &lt;plugins>
    115 &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    116 &lt;name>${ant.project.name}&lt;/name>
    117 &lt;description>${plugin.description}&lt;/description>
    118 &lt;resources>
    119 &lt;resource src="${plugin.site.url}${plugin.jar}"
    120 target="${josm.home.dir}/plugins/${plugin.jar}"/>
    121 &lt;/resources>
    122 &lt;/plugin>
    123 &lt;/plugins>
    124 &lt;/site>
    125 </echo>
    126     </target>
    127 <!-- upload the site description and the jar file via ssh -->
    128     <target name="upload" depends="dist,site">
    129         <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    130         <exec executable="scp">
    131             <arg value="${plugin.dist.dir}/${plugin.jar}"/>
    132             <arg value="${plugin.site.file}"/>
    133             <arg value="${plugin.site.upload.target}"/>
    134         </exec>
    135     </target>
    136     <target name="clean">
    137         <delete dir="${plugin.build.dir}" />
    138         <delete dir="${plugin.site.file}" />
    139         <delete file="${plugin.dist.dir}/${plugin.jar}" />
     49        <property environment="env"/>
     50        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     51            <and>
     52                <os family="windows"/>
     53            </and>
     54        </condition>
     55        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    14056    </target>
    14157</project>
  • applications/editors/josm/plugins/osmarender/build.xml

    r12780 r14003  
    11<project name="osmarender" default="install" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    17     <property name="josm" location="../../core/dist/josm-custom.jar" />
    18     <property name="stylesheets" location="./stylesheets" />
    19     <property name="xslt" location="./xslt" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    206    <property name="ant.build.javac.target" value="1.5"/>
    21     <target name="compile">
     7    <property name="stylesheets"            location="./stylesheets"/>
     8    <property name="xslt"                   location="./xslt"/>
     9    <target name="init">
     10        <mkdir dir="${plugin.build.dir}"/>
     11    </target>
     12    <target name="compile" depends="init">
    2213        <echo message="creating ${plugin.jar}"/>
    23         <mkdir dir="${plugin.build.dir}"></mkdir>
    24         <mkdir dir="${plugin.dist.dir}"></mkdir>
    25         <javac srcdir="src" debug="true" classpath="${josm}" destdir="${plugin.build.dir}">
    26             <include name="**/*.java" />
     14        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     15            <compilerarg value="-Xlint:deprecation"/>
     16            <compilerarg value="-Xlint:unchecked"/>
    2717        </javac>
    2818    </target>
    29     <target name="dist"  depends="compile">
     19    <target name="dist" depends="compile,revision">
    3020        <copy todir="${plugin.build.dir}" file="${xslt}/osmarender.xsl"/>
    31         <copy tofile="${plugin.build.dir}/osm-map-features.xml"
    32       file="${stylesheets}/osm-map-features-z17.xml"/>
    33         <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
     21        <copy tofile="${plugin.build.dir}/osm-map-features.xml" file="${stylesheets}/osm-map-features-z17.xml"/>
     22        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     23            <manifest>
     24                <attribute name="Author" value="80n"/>
     25                <attribute name="Plugin-Class" value="OsmarenderPlugin"/>
     26                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     27                <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image."/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
     34        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3435            <env key="LANG" value="C"/>
    35             <arg value="../getrevision.pl"/>
    36             <arg value="xslt"/>
    37             <arg value="stylesheets"/>
     36            <arg value="info"/>
     37            <arg value="--xml"/>
     38            <arg value="."/>
    3839        </exec>
    3940        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    4041        <delete file="REVISION"/>
    41         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    42             <manifest>
    43                 <attribute name="Plugin-Class" value="OsmarenderPlugin" />
    44                 <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image" />
    45                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    46                 <attribute name="Plugin-Mainversion" value="1180"/>
    47                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    48             </manifest>
    49         </jar>
    5042    </target>
    5143    <target name="clean">
    52         <delete dir="${plugin.build.dir}" />
    53         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
    5446    </target>
    55     <target name="install" depends="compile,dist">
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
    5654        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5755    </target>
  • applications/editors/josm/plugins/plastic_laf/build.xml

    r12781 r14003  
    11<project name="plastic_laf" default="dist" basedir=".">
    2 <!-- compilation properties -->
    3     <property name="josm.build.dir"   value="../../core"/>
    4     <property name="josm.home.dir"    value="${user.home}/.josm"/>
    5     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    6     <property name="plugin.build.dir" value="build"/>
    7     <property name="plugin.dist.dir"  value="../../dist"/>
    8     <property name="plugin.name"      value="${ant.project.name}"/>
    9     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    106    <property name="ant.build.javac.target" value="1.5"/>
    11     <target name="dist">
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
    1211        <echo message="creating ${plugin.jar}"/>
    13         <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" />
    14         <javac srcdir="src" destdir="${plugin.build.dir}">
    15             <include name="**/*.java" />
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    1615        </javac>
    17 <!-- define the version of the jar file -->
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <unjar dest="${plugin.build.dir}" src="lib/looks-2.2.1.jar"/>
     19        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     20            <manifest>
     21                <attribute name="Author" value="Imi"/>
     22                <attribute name="Plugin-Class" value="plastic_laf.Plugin"/>
     23                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     24                <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel."/>
     25                <attribute name="Plugin-Early" value="true"/>
     26                <attribute name="Plugin-Link" value="http://www.jgoodies.com/"/>
     27                <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     29            </manifest>
     30        </jar>
     31    </target>
     32    <target name="revision">
    1833        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    1934            <env key="LANG" value="C"/>
     
    2338        </exec>
    2439        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    25 <!-- delete intermediate file -->
    2640        <delete file="REVISION"/>
    27         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    28             <manifest>
    29                 <attribute name="Plugin-Class" value="plastic_laf.Plugin" />
    30                 <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
    31                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    32                 <attribute name="Plugin-Early" value="true" />
    33                 <attribute name="Plugin-Mainversion" value="1180" />
    34                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    35             </manifest>
    36         </jar>
    3741    </target>
    3842    <target name="clean">
    39         <delete dir="${plugin.build.dir}" />
    40         <delete file="${plugin.jar}" />
     43        <delete dir="${plugin.build.dir}"/>
     44        <delete file="${plugin.jar}"/>
     45    </target>
     46    <target name="install" depends="dist">
     47        <property environment="env"/>
     48        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     49            <and>
     50                <os family="windows"/>
     51            </and>
     52        </condition>
     53        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4154    </target>
    4255</project>
  • applications/editors/josm/plugins/remotecontrol/build.xml

    r13313 r14003  
    11<project name="remotecontrol" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
    19         <copy todir="${plugin.build.dir}/images" >
    20             <fileset dir="images" />
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    2120        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Frederik Ramm"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Let other applications send commands to JOSM."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/RemoteControl"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2234        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2335            <env key="LANG" value="C"/>
     
    2840        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2941        <delete file="REVISION"/>
    30         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    31             <manifest>
    32                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin"/>
    33                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    34                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    35                 <attribute name="Plugin-Description" value="A plugin allowing other applications to send commands to JOSM." />
    36                 <attribute name="Plugin-Mainversion" value="1180"/>
    37                 <attribute name="Author" value="Frederik Ramm &lt;frederik@remote.org&gt;"/>
    38             </manifest>
    39         </jar>
    4042    </target>
    4143    <target name="clean">
    42         <delete dir="${plugin.build.dir}" />
    43         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4455    </target>
    4556</project>
  • applications/editors/josm/plugins/slippymap/build.xml

    r12780 r14003  
    11<project name="slippymap" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    176    <property name="ant.build.javac.target" value="1.5"/>
    18     <target name="dist" depends="compile">
    19 <!-- images -->
    20         <copy todir="build/images">
    21             <fileset dir="images" />
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15        </javac>
     16    </target>
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    2220        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Frederik Ramm"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.slippymap.SlippyMapPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Displays a slippy map grid in JOSM. Can load tiles from slippy map as background and request updates."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/SlippyMap"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2334        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2435            <env key="LANG" value="C"/>
     
    2940        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3041        <delete file="REVISION"/>
    31 <!-- create josm-custom.jar -->
    32         <jar destfile="${plugin.jar}" basedir="build">
    33             <manifest>
    34                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.slippymap.SlippyMapPlugin" />
    35                 <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" />
    36                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    37                 <attribute name="Plugin-Mainversion" value="1180"/>
    38                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    39             </manifest>
    40         </jar>
    41     </target>
    42     <target name="compile" depends="init">
    43         <echo message="creating ${plugin.jar}"/>
    44         <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build">
    45             <compilerarg value="-Xlint:deprecation"/>
    46         </javac>
    47     </target>
    48     <target name="init">
    49         <mkdir dir="${plugin.build.dir}" />
    5042    </target>
    5143    <target name="clean">
    52         <delete dir="${plugin.build.dir}" />
    53         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
    5446    </target>
    5547    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
    5654        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5755    </target>
  • applications/editors/josm/plugins/surveyor/build.xml

    r13332 r14003  
    11<project name="surveyor" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1111    <target name="compile" depends="init">
    1212        <echo message="creating ${plugin.jar}"/>
    13         <javac srcdir="src" destdir="${plugin.build.dir}" debug="true">
     13        <javac srcdir="src" debug="false" destdir="${plugin.build.dir}">
    1414            <compilerarg value="-Xlint:deprecation"/>
    1515            <compilerarg value="-Xlint:unchecked"/>
     
    2020        </javac>
    2121    </target>
    22     <target name="dist" depends="compile">
     22    <target name="dist" depends="compile,revision">
     23        <copy todir="${plugin.build.dir}/">
     24            <fileset dir="resources">
     25                <include name="*.xml"/>
     26                <include name="audio/*"/>
     27            </fileset>
     28        </copy>
     29        <copy todir="${plugin.build.dir}/images">
     30            <fileset dir="images"/>
     31        </copy>
     32        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     33            <manifest>
     34                <attribute name="Author" value="Christof Dallermassl"/>
     35                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
     36                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     37                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
     38                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
     39                <attribute name="Plugin-Mainversion" value="1326"/>
     40                <attribute name="Plugin-Requires" value="livegps"/>
     41                <attribute name="Plugin-Stage" value="60"/>
     42                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     43            </manifest>
     44        </jar>
     45    </target>
     46    <target name="revision">
    2347        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2448            <env key="LANG" value="C"/>
     
    2953        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3054        <delete file="REVISION"/>
    31         <copy todir="${plugin.build.dir}/">
    32             <fileset dir="resources">
    33                 <include name="*.xml"/>
    34                 <include name="audio/*"/>
    35             </fileset>
    36         </copy>
    37         <copy todir="${plugin.build.dir}/images" >
    38             <fileset dir="images" />
    39         </copy>
    40         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    41             <manifest>
    42                 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
    43                 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
    44                 <attribute name="Plugin-Stage" value="60" />
    45                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    46                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    47                 <attribute name="Plugin-Mainversion" value="1326" />
    48                 <attribute name="Plugin-Requires" value="livegps" />
    49             </manifest>
    50         </jar>
    5155    </target>
    5256    <target name="clean">
    53         <delete dir="${plugin.build.dir}" />
    54         <delete file="${plugin.jar}" />
     57        <delete dir="${plugin.build.dir}"/>
     58        <delete file="${plugin.jar}"/>
     59    </target>
     60    <target name="install" depends="dist">
     61        <property environment="env"/>
     62        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     63            <and>
     64                <os family="windows"/>
     65            </and>
     66        </condition>
     67        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5568    </target>
    5669</project>
  • applications/editors/josm/plugins/tagging-preset-tester/build.xml

    r13620 r14003  
    11<project name="tagging-preset-tester" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" destdir="${plugin.build.dir}" classpath="${josm}">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    1415        </javac>
    1516    </target>
    16     <target name="dist" depends="compile">
    17         <copy todir="${plugin.build.dir}/images" >
    18             <fileset dir="images" />
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    1920        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Imi"/>
     24                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester"/>
     25                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction"/>
     26                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     27                <attribute name="Plugin-Description" value="Adds a tagging preset tester to the help menu, which helps you developing of tagging presets (quick preview of the dialog that will popup). You can start the jar-file as standalone as well."/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2034        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2135            <env key="LANG" value="C"/>
     
    2640        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2741        <delete file="REVISION"/>
    28         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    29             <manifest>
    30                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    31                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    32                 <attribute name="Plugin-Description" value="Make the Tagging Preset Tester tool available in the help menu." />
    33                 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester" />
    34                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction" />
    35                 <attribute name="Plugin-Mainversion" value="1364" />
    36             </manifest>
    37         </jar>
    3842    </target>
    3943    <target name="clean">
    40         <delete dir="${plugin.build.dir}" />
    41         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4255    </target>
    4356</project>
  • applications/editors/josm/plugins/tcxplugin/build.xml

    r12780 r14003  
    11<project name="tcx-support" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    17     <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
    18     <property name="plugin.description" value="Adds support for TCX files."/>
    19     <property name="plugin.stage" value="100"/>
    20     <property name="plugin.class" value="org.openstreetmap.josm.plugins.TcxPlugin"/>
    21 <!-- update site meta data -->
    22     <property name="plugin.site.file" value="josm-site.xml"/>
    23     <property name="plugin.site.description" value=""/>
    24     <property name="plugin.site.url" value=""/>
    25     <property name="plugin.site.upload.target" value=""/>
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     3    <property name="plugin.dist.dir"        value="../../dist"/>
     4    <property name="plugin.build.dir"       value="build"/>
     5    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    266    <property name="ant.build.javac.target" value="1.5"/>
    27 <!-- All jar files necessary to run only JOSM (no tests) -->
    28     <fileset id="josm_required_libs" dir="lib"></fileset>
    29     <target name="dist" depends="compile,site">
    30 <!-- jars -->
    31         <unjar dest="build">
    32             <fileset refid="josm_required_libs" />
     7    <target name="init">
     8        <mkdir dir="${plugin.build.dir}"/>
     9    </target>
     10    <target name="compile" depends="init">
     11        <echo message="creating ${plugin.jar}"/>
     12        <javac srcdir="src" debug="false" destdir="${plugin.build.dir}">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
     15            <classpath>
     16                <pathelement location="${josm}"/>
     17                <fileset dir="lib">
     18                    <include name="**/*.jar"/>
     19                </fileset>
     20            </classpath>
     21        </javac>
     22    </target>
     23    <target name="dist" depends="compile,revision">
     24        <unjar dest="${plugin.build.dir}">
     25            <fileset dir="lib"/>
    3326        </unjar>
    34 <!-- images -->
    35         <copy todir="build/images">
    36             <fileset dir="images" />
     27        <copy todir="${plugin.build.dir}/images">
     28            <fileset dir="images"/>
    3729        </copy>
     30        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     31            <manifest>
     32                <attribute name="Author" value="Adrian Stabiszewski"/>
     33                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.TcxPlugin"/>
     34                <attribute name="Plugin-Description" value="Directly load TCX files from JOSM."/>
     35                <attribute name="Plugin-Stage" value="100"/>
     36                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     37                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     38                <attribute name="Plugin-Mainversion" value="1465"/>
     39            </manifest>
     40        </jar>
     41    </target>
     42    <target name="revision">
    3843        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    3944            <env key="LANG" value="C"/>
     
    4449        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    4550        <delete file="REVISION"/>
    46 <!-- create jar file -->
    47         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    48             <manifest>
    49                 <attribute name="Plugin-Class" value="${plugin.class}" />
    50                 <attribute name="Plugin-Description" value="${plugin.description}" />
    51                 <attribute name="Plugin-Stage" value="${plugin.stage}" />
    52                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    53                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    54                 <attribute name="Plugin-Mainversion" value="1180" />
    55 <!--        <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />-->
    56             </manifest>
    57         </jar>
    5851    </target>
    59     <target name="compile" depends="init">
    60         <echo message="creating ${plugin.jar}"/>
    61         <mkdir dir="${plugin.build.dir}"/>
    62         <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    63             <classpath>
    64                 <pathelement path="${josm.build.dir}/build"/>
    65                 <fileset dir="${josm.build.dir}/lib">
    66                     <include name="**/*.jar"/>
    67                 </fileset>
    68                 <fileset dir="./lib">
    69                     <include name="**/*.jar"/>
    70                 </fileset>
    71             </classpath>
    72         </javac>
     52    <target name="clean">
     53        <delete dir="${plugin.build.dir}"/>
     54        <delete file="${plugin.jar}"/>
    7355    </target>
    7456    <target name="install" depends="dist">
     57        <property environment="env"/>
     58        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     59            <and>
     60                <os family="windows"/>
     61            </and>
     62        </condition>
    7563        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    7664    </target>
    77     <target name="init">
    78         <echo>java version: ${java.version}</echo>
    79     </target>
    80     <target name="clean">
    81         <delete dir="${plugin.build.dir}" />
    82         <delete dir="${plugin.site.file}" />
    83         <delete file="${plugin.jar}" />
    84     </target>
    85 <!-- write site description for the given plugin so josm will accept it -->
    86     <target name="site">
    87         <echo message="creating site description in ${plugin.site.file}"/>
    88         <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    89   &lt;plugins>
    90   &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    91   &lt;name>${ant.project.name}&lt;/name>
    92   &lt;description>${plugin.description}&lt;/description>
    93   &lt;resource>${plugin.site.url}${plugin.jar}&lt;/resource>
    94   &lt;/plugin>
    95   &lt;/plugins>
    96 </echo>
    97     </target>
    98 <!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    99     <target name="site-full-donotuse">
    100         <echo message="creating site description in ${plugin.site.file}"/>
    101         <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    102     &lt;site version="1.0">
    103     &lt;!-- meta data of site -->
    104 &lt;site-info>
    105 &lt;site-name>${plugin.site.description}&lt;/site-name>
    106 &lt;site-url>${plugin.site.url}&lt;/site-url>
    107 &lt;/site-info>
    108 
    109 &lt;!-- plugins available on this site -->
    110 &lt;plugins>
    111 &lt;plugin id="${ant.project.name}" version="${plugin.version}">
    112 &lt;name>${ant.project.name}&lt;/name>
    113 &lt;description>${plugin.description}&lt;/description>
    114 &lt;resources>
    115 &lt;resource src="${plugin.site.url}${plugin.jar}"
    116 target="${josm.home.dir}/plugins/${plugin.jar}"/>
    117 &lt;/resources>
    118 &lt;/plugin>
    119 &lt;/plugins>
    120 &lt;/site>
    121 </echo>
    122     </target>
    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>
    13265</project>
  • applications/editors/josm/plugins/terracer/build.xml

    r13587 r14003  
    11<project name="terracer" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
    19         <copy todir="${plugin.build.dir}/images" >
    20             <fileset dir="images" />
     17    <target name="dist" depends="compile,revision">
     18        <copy todir="${plugin.build.dir}/images">
     19            <fileset dir="images"/>
    2120        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Matt Amos"/>
     24                <attribute name="Plugin-Class" value="terracer.TerracerPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Make terraced houses out of single blocks."/>
     27                <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     29            </manifest>
     30        </jar>
     31    </target>
     32    <target name="revision">
    2233        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2334            <env key="LANG" value="C"/>
     
    2839        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2940        <delete file="REVISION"/>
    30         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    31             <manifest>
    32                 <attribute name="Plugin-Class" value="terracer.TerracerPlugin" />
    33                 <attribute name="Plugin-Description" value="Easy creation of individual terraced houses." />
    34                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
    35                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    36                 <attribute name="Plugin-Mainversion" value="1280" />
    37             </manifest>
    38         </jar>
    3941    </target>
    4042    <target name="clean">
    41         <delete dir="${plugin.build.dir}" />
    42         <delete file="${plugin.jar}" />
     43        <delete dir="${plugin.build.dir}"/>
     44        <delete file="${plugin.jar}"/>
     45    </target>
     46    <target name="install" depends="dist">
     47        <property environment="env"/>
     48        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     49            <and>
     50                <os family="windows"/>
     51            </and>
     52        </condition>
     53        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4354    </target>
    4455</project>
  • applications/editors/josm/plugins/usertools/build.xml

    r13055 r14003  
    11<project name="usertools" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
     18        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     19            <manifest>
     20                <attribute name="Author" value="Tim Waters"/>
     21                <attribute name="Plugin-Class" value="usertools.UserToolsPlugin"/>
     22                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     23                <attribute name="Plugin-Description" value="Tools to work with authors/users. Selects map data that belongs to selected user, opens browser showing selected author profile page."/>
     24                <attribute name="Plugin-Mainversion" value="1465"/>
     25                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     26            </manifest>
     27        </jar>
     28    </target>
     29    <target name="revision">
    1930        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2031            <env key="LANG" value="C"/>
     
    2536        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2637        <delete file="REVISION"/>
    27         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    28             <manifest>
    29                 <attribute name="Plugin-Class" value="usertools.UserToolsPlugin" />
    30                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    31                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    32                 <attribute name="Plugin-Description" value="Tools to help work with authors/users.&lt;br&gt; Used with the author panel alt-a).&lt;br&gt; Opens up user profile and selects user's stuff on the map" />
    33                 <attribute name="Plugin-Mainversion" value="1213" />
    34             </manifest>
    35         </jar>
    3638    </target>
    3739    <target name="clean">
    38         <delete dir="${plugin.build.dir}" />
    39         <delete file="${plugin.jar}" />
     40        <delete dir="${plugin.build.dir}"/>
     41        <delete file="${plugin.jar}"/>
     42    </target>
     43    <target name="install" depends="dist">
     44        <property environment="env"/>
     45        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     46            <and>
     47                <os family="windows"/>
     48            </and>
     49        </condition>
     50        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4051    </target>
    4152</project>
  • applications/editors/josm/plugins/utilsplugin/build.xml

    r13723 r14003  
    11<project name="utilsplugin" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    1515        </javac>
    1616    </target>
    17     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
    1818        <copy todir="${plugin.build.dir}/images">
    1919            <fileset dir="images"/>
    2020        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Martijn van Oosterhout"/>
     24                <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="Several utilities that make your life easier: e.g. simplify way, join areas, jump to position."/>
     27                <attribute name="Plugin-Mainversion" value="1465"/>
     28                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     29            </manifest>
     30        </jar>
     31    </target>
     32    <target name="revision">
    2133        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2234            <env key="LANG" value="C"/>
     
    2739        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2840        <delete file="REVISION"/>
    29         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    30             <manifest>
    31                 <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
    32                 <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
    33                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    34                 <attribute name="Plugin-Mainversion" value="1373"/>
    35                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    36                 <attribute name="Author" value="Martijn van Oosterhout"/>
    37             </manifest>
    38         </jar>
    3941    </target>
    4042    <target name="clean">
    41         <delete dir="${plugin.build.dir}" />
    42         <delete file="${plugin.jar}" />
     43        <delete dir="${plugin.build.dir}"/>
     44        <delete file="${plugin.jar}"/>
     45    </target>
     46    <target name="install" depends="dist">
     47        <property environment="env"/>
     48        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     49            <and>
     50                <os family="windows"/>
     51            </and>
     52        </condition>
     53        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4354    </target>
    4455</project>
  • applications/editors/josm/plugins/validator/build.xml

    r13332 r14003  
    11<project name="validator" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" encoding="UTF-8">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
    1918        <copy todir="${plugin.build.dir}/images">
    2019            <fileset dir="images"/>
    2120        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Francisco R. Santos"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="An OSM data validator. It checks for problems in data, and provides fixes for the common ones. Spellcheck integrated for tag names."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Validator"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2234        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2335            <env key="LANG" value="C"/>
     
    2840        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2941        <delete file="REVISION"/>
    30         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    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-Mainversion" value="1200"/>
    36                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    37                 <attribute name="Author" value="Francisco R. Santos"/>
    38             </manifest>
    39         </jar>
    4042    </target>
    4143    <target name="clean">
    42         <delete dir="${plugin.build.dir}" />
    43         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4455    </target>
    4556</project>
  • applications/editors/josm/plugins/wmsplugin/build.xml

    r13584 r14003  
    11<project name="wmsplugin" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
    1918        <copy todir="${plugin.build.dir}/resources">
    2019            <fileset dir="resources"/>
    2120        </copy>
    22         <copy todir="${plugin.build.dir}/images" >
    23             <fileset dir="images" />
     21        <copy todir="${plugin.build.dir}/images">
     22            <fileset dir="images"/>
    2423        </copy>
     24        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     25            <manifest>
     26                <attribute name="Author" value="Tim Waters, Petr Dlouhý"/>
     27                <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin"/>
     28                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     29                <attribute name="Plugin-Description" value="Display georeferenced images as background in JOSM (WMS servers, Yahoo, ...)."/>
     30                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMSPlugin"/>
     31                <attribute name="Plugin-Mainversion" value="1465"/>
     32                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     33                <attribute name="de.Plugin-Link" value="http://wiki.openstreetmap.org/wiki/DE:JOSM/Plugins/WMSPlugin"/>
     34            </manifest>
     35        </jar>
     36    </target>
     37    <target name="revision">
    2538        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2639            <env key="LANG" value="C"/>
     
    3144        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3245        <delete file="REVISION"/>
    33         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    34             <manifest>
    35                 <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
    36                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    37                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    38                 <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
    39                 <attribute name="Plugin-Mainversion" value="1379" />
    40             </manifest>
    41         </jar>
    4246    </target>
    4347    <target name="clean">
    44         <delete dir="${plugin.build.dir}" />
    45         <delete file="${plugin.jar}" />
     48        <delete dir="${plugin.build.dir}"/>
     49        <delete file="${plugin.jar}"/>
     50    </target>
     51    <target name="install" depends="dist">
     52        <property environment="env"/>
     53        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     54            <and>
     55                <os family="windows"/>
     56            </and>
     57        </condition>
     58        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4659    </target>
    4760</project>
Note: See TracChangeset for help on using the changeset viewer.