Changeset 12780 in osm


Ignore:
Timestamp:
2009-01-01T18:55:45+01:00 (16 years ago)
Author:
stoecker
Message:

removed tab stop usage

Location:
applications/editors/josm/plugins
Files:
2 deleted
48 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/DirectUpload/LICENSE

    r11949 r12780  
    11
    2                     GNU GENERAL PUBLIC LICENSE
    3                        Version 2, June 1991
     2            GNU GENERAL PUBLIC LICENSE
     3               Version 2, June 1991
    44
    55 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
    6         51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     6    51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    77 Everyone is permitted to copy and distribute verbatim copies
    88 of this license document, but changing it is not allowed.
    99
    10                             Preamble
     10                Preamble
    1111
    1212  The licenses for most software are designed to take away your
     
    5959
    6060
    61                     GNU GENERAL PUBLIC LICENSE
     61            GNU GENERAL PUBLIC LICENSE
    6262   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    6363
     
    261261of promoting the sharing and reuse of software generally.
    262262
    263                             NO WARRANTY
     263                NO WARRANTY
    264264
    265265  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
     
    283283POSSIBILITY OF SUCH DAMAGES.
    284284
    285                      END OF TERMS AND CONDITIONS
    286 
    287 
    288             How to Apply These Terms to Your New Programs
     285             END OF TERMS AND CONDITIONS
     286
     287
     288        How to Apply These Terms to Your New Programs
    289289
    290290  If you develop a new program, and you want it to be of the greatest
  • applications/editors/josm/plugins/DirectUpload/README

    r11949 r12780  
    1 Directly uploads GPX from active layer in JOSM to OpenStreetMap Server. 
     1Directly uploads GPX from active layer in JOSM to OpenStreetMap Server.
    22This currently uses OSM Api 0.5.
    33
  • applications/editors/josm/plugins/DirectUpload/build.xml

    r12588 r12780  
    11<project name="DirectUpload" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="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 
    11   <!-- point to your JOSM directory -->
    12   <property name="josm" location="../../core/dist/josm-custom.jar" />
    13 
    14   <property name="ant.build.javac.target" value="1.5"/>
    15  
    16   <target name="init">
    17     <mkdir dir="${plugin.build.dir}"/>
    18   </target>
    19 
    20   <target name="compile" depends="init">
    21     <echo message="creating ${plugin.jar}"/>
    22     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
    23       <compilerarg value="-Xlint:deprecation"/>
    24       <include name="**/*.java" />
    25     </javac>
    26   </target>
    27 
    28 
    29   <target name="dist" depends="clean, compile">
    30     <copy todir="build/images">
    31       <fileset dir="images"/>
    32     </copy>
    33     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    34       <env key="LANG" value="C"/>
    35       <arg value="info"/>
    36       <arg value="--xml"/>
    37       <arg value="."/>
    38     </exec>
    39     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    40     <delete file="REVISION"/>
    41     <jar destfile="${plugin.jar}" basedir="build">
    42       <manifest>
    43 
    44         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" />
    45         <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" />
    46         <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" />
    47         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    48         <attribute name="Plugin-Mainversion" value="1180"/>
    49         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    50       </manifest>
    51     </jar>
    52   </target>
    53 
    54   <!-- clean target -->
    55   <target name="clean">
    56     <delete dir="${plugin.build.dir}" />
    57     <delete file="${plugin.jar}" />
    58   </target>
    59 
    60   <target name="install" depends="dist">
    61     <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    62   </target>
    63 
    64   <target name="test" depends="install">
    65     <java jar="${josm}" fork="true">
    66     </java>
    67   </target>
    68        
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="plugin.build.dir" value="build"/>
     6    <property name="plugin.dist.dir"  value="../../dist"/>
     7    <property name="plugin.name"      value="${ant.project.name}"/>
     8    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     9<!-- point to your JOSM directory -->
     10    <property name="josm" location="../../core/dist/josm-custom.jar" />
     11    <property name="ant.build.javac.target" value="1.5"/>
     12    <target name="init">
     13        <mkdir dir="${plugin.build.dir}"/>
     14    </target>
     15    <target name="compile" depends="init">
     16        <echo message="creating ${plugin.jar}"/>
     17        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
     18            <compilerarg value="-Xlint:deprecation"/>
     19            <include name="**/*.java" />
     20        </javac>
     21    </target>
     22    <target name="dist" depends="clean, compile">
     23        <copy todir="build/images">
     24            <fileset dir="images"/>
     25        </copy>
     26        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     27            <env key="LANG" value="C"/>
     28            <arg value="info"/>
     29            <arg value="--xml"/>
     30            <arg value="."/>
     31        </exec>
     32        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     33        <delete file="REVISION"/>
     34        <jar destfile="${plugin.jar}" basedir="build">
     35            <manifest>
     36                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" />
     37                <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" />
     38                <attribute name="Plugin-Author" value="Subhodip Biswas :subhodipbiswas@gmail.com" />
     39                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     40                <attribute name="Plugin-Mainversion" value="1180"/>
     41                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     42            </manifest>
     43        </jar>
     44    </target>
     45<!-- clean target -->
     46    <target name="clean">
     47        <delete dir="${plugin.build.dir}" />
     48        <delete file="${plugin.jar}" />
     49    </target>
     50    <target name="install" depends="dist">
     51        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
     52    </target>
     53    <target name="test" depends="install">
     54        <java jar="${josm}" fork="true"></java>
     55    </target>
    6956</project>
  • applications/editors/josm/plugins/DirectUpload/nbproject/build-impl.xml

    r11949 r12780  
    2222<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="DirectUpload-impl">
    2323    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    24     <!-- 
     24    <!--
    2525                ======================
    26                 INITIALIZATION SECTION 
     26                INITIALIZATION SECTION
    2727                ======================
    2828            -->
  • applications/editors/josm/plugins/agpifoj/README

    r10122 r12780  
    33FEATURES
    44
    5 - Access by a new menu item in the 'File' menu. This menu loads pictures and 
     5- Access by a new menu item in the 'File' menu. This menu loads pictures and
    66  makes a new layer from them in the map view.
    7 - Displays the images in a ToggleDialog (so it appears as a panel on the right 
    8   of the screen and can be shown/hidden with a click on a button of the left 
     7- Displays the images in a ToggleDialog (so it appears as a panel on the right
     8  of the screen and can be shown/hidden with a click on a button of the left
    99  toolbar. It can be set in a separate window by clicking the sticky button)
    1010- Loads geotag data from exif or correlate pictures with GPS tracks.
    11 - Displays the pictures as a little camera icon in the map view (this improves 
     11- Displays the pictures as a little camera icon in the map view (this improves
    1212  the speed of loading large sets of pictures). The selected picture appears in
    13   red. 
    14 - Easy zoom in/out of the image with the mouse wheel. Hability to move the 
    15   image by clicking and/or dragging on it with mouse left button, or to select 
     13  red.
     14- Easy zoom in/out of the image with the mouse wheel. Hability to move the
     15  image by clicking and/or dragging on it with mouse left button, or to select
    1616  the part of the image to zoom in by dragging the right button.
    17 - Displays the altitude and speed of the photo when available from the GPS 
     17- Displays the altitude and speed of the photo when available from the GPS
    1818  track.
    19 - Hability to synchronize a same set of photos with many GPS tracks (choose 
    20   item 'Correlate to GPX' in the contextual menu of the layer). If a  picture 
    21   set and a GPS track were badly time-synchronized, just load again the same 
     19- Hability to synchronize a same set of photos with many GPS tracks (choose
     20  item 'Correlate to GPX' in the contextual menu of the layer). If a  picture
     21  set and a GPS track were badly time-synchronized, just load again the same
    2222  GPX track on the layer, by specifying a different offset and/or timezone.
    2323- Adds a viewport to the left toolbar : with all these plug-ins that add buttons
    24   to that toolbar, some of them became inaccessible. This adds some little 
     24  to that toolbar, some of them became inaccessible. This adds some little
    2525  arrows on top and bottom of the toolbar.
    2626
    27 NOTE 
    28 For the user who used to use the 'Import images' option on GPS layers, the 
     27NOTE
     28For the user who used to use the 'Import images' option on GPS layers, the
    2929timezone is the opposite : it is greater than 0 when going to the east of
    3030Greenwich Meridian.
     
    3232INSTALL
    3333
    34 To install, put the agpifoj.jar in the JOSM plugin directory. Then in JOSM, 
    35 select the menu Edit / Preferences and the plugins tab. Check the agpifoj 
    36 plugin check-box, and restart JOSM. You'll seee the AgPiFoj menu item in 
     34To install, put the agpifoj.jar in the JOSM plugin directory. Then in JOSM,
     35select the menu Edit / Preferences and the plugins tab. Check the agpifoj
     36plugin check-box, and restart JOSM. You'll seee the AgPiFoj menu item in
    3737the 'File' menu.
    3838
    39 BUILD 
     39BUILD
    4040
    4141The source code is in the agpifoj.jar : unzip it.
     
    4848CONTRIBUTION
    4949
    50 I got inspiration and some code from the Geotagged plugin (by Rob Neild) 
    51 and the core JOSM source code (by Immanuel Scholz and others). This plugin is 
    52 delivered under the GPL licence terms. It also uses the jpeg metadata 
     50I got inspiration and some code from the Geotagged plugin (by Rob Neild)
     51and the core JOSM source code (by Immanuel Scholz and others). This plugin is
     52delivered under the GPL licence terms. It also uses the jpeg metadata
    5353extraction code is from Drew Noakes (bundled with Josm).
    5454
  • applications/editors/josm/plugins/agpifoj/build.xml

    r12588 r12780  
    11<project name="agpifoj" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"   value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"             location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir" value="build"/>
    16   <property name="plugin.dist.dir"  value="../../dist"/>
    17   <property name="plugin.name"      value="${ant.project.name}"/>
    18   <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <target name="dist" depends="compile">
    23     <copy todir="build">
    24       <fileset dir=".">
    25         <include name="CHANGELOG"/>
    26         <include name="LICENSE"/>
    27         <include name="README" />
    28       </fileset>
    29     </copy>
    30 
    31     <!-- images -->
    32     <copy todir="build/images">
    33       <fileset dir="images" />
    34     </copy>
    35 
    36     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    37       <env key="LANG" value="C"/>
    38       <arg value="info"/>
    39       <arg value="--xml"/>
    40       <arg value="."/>
    41     </exec>
    42     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    43     <delete file="REVISION"/>
    44 
    45     <jar destfile="${plugin.jar}" basedir="build">
    46       <manifest>
    47         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.agpifoj.AgpifojPlugin" />
    48         <attribute name="Plugin-Description" value="An other geotag plugin for josm. Correlates pictures with GPS tracks, or import Exif geotagged pictures." />
    49         <attribute name="Plugin-Early" value="false" />
    50         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    51         <attribute name="Plugin-Mainversion" value="1180"/>
    52         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    53       </manifest>
    54     </jar>
    55   </target>
    56 
    57   <target name="compile" depends="init">
    58     <echo message="creating ${plugin.jar}"/>
    59     <javac srcdir="src" classpath="${josm}" destdir="build">
    60       <compilerarg value="-Xlint:deprecation"/>
    61     </javac>
    62   </target>
    63 
    64   <target name="init">
    65     <mkdir dir="${plugin.build.dir}" />
    66   </target>
    67 
    68   <target name="clean">
    69     <delete dir="${plugin.build.dir}" />
    70     <delete file="${plugin.jar}" />
    71   </target>
    72 
    73   <target name="install" depends="dist">
    74     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    75   </target>
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile">
     19        <copy todir="build">
     20            <fileset dir=".">
     21                <include name="CHANGELOG"/>
     22                <include name="LICENSE"/>
     23                <include name="README" />
     24            </fileset>
     25        </copy>
     26<!-- images -->
     27        <copy todir="build/images">
     28            <fileset dir="images" />
     29        </copy>
     30        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     31            <env key="LANG" value="C"/>
     32            <arg value="info"/>
     33            <arg value="--xml"/>
     34            <arg value="."/>
     35        </exec>
     36        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     37        <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}" />
     57    </target>
     58    <target name="clean">
     59        <delete dir="${plugin.build.dir}" />
     60        <delete file="${plugin.jar}" />
     61    </target>
     62    <target name="install" depends="dist">
     63        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     64    </target>
    7665</project>
  • applications/editors/josm/plugins/build.xml

    r12599 r12780  
    11<project name="josm-plugins" default="build" basedir=".">
    2 
    3 
    4   <target name="compile_josm">
    5     <ant dir="../core" target="dist" />
    6   </target>
    7 
    8   <target name="compile" depends="compile_josm">
    9   </target>
    10 
    11   <target name="build" depends="dist">
    12   </target>
    13 
    14   <target name="dist" depends="compile">
    15     <mkdir dir="../dist"/>
    16     <ant        dir="agpifoj"           antfile="build.xml"     target="dist"/>
    17     <ant        dir="colorscheme"       antfile="build.xml"     target="dist"/>
    18     <ant        dir="DirectUpload"      antfile="build.xml"     target="dist"/>
    19     <ant        dir="globalsat"         antfile="build.xml"     target="dist"/>
    20     <ant        dir="imagewaypoint"     antfile="build.xml"     target="dist"/>
    21     <ant        dir="lakewalker"        antfile="build.xml"     target="dist"/>
    22     <ant        dir="livegps"           antfile="build.xml"     target="dist"/>
    23     <ant        dir="measurement"       antfile="build.xml"     target="dist"/>
    24     <ant        dir="namefinder"        antfile="build.xml"     target="dist"/>
    25     <ant        dir="nearclick"         antfile="build.xml"     target="dist"/>
    26     <ant        dir="openvisible"       antfile="build.xml"     target="dist"/>
    27     <ant        dir="osmarender"        antfile="build.xml"     target="dist"/>
    28     <ant        dir="plastic_laf"       antfile="build.xml"     target="dist"/>
    29     <ant        dir="pluginmanager"     antfile="build.xml"     target="dist"/>
    30     <ant        dir="remotecontrol"     antfile="build.xml"     target="dist"/>
    31     <ant        dir="slippymap"         antfile="build.xml"     target="dist"/>
    32     <ant        dir="slippy_map_chooser"        antfile="build.xml"     target="dist"/>
    33     <ant        dir="surveyor"          antfile="build.xml"     target="dist"/>
    34     <ant        dir="tagging-preset-tester"     antfile="build.xml"     target="dist"/>
    35     <ant        dir="tcxplugin"         antfile="build.xml"     target="dist"/>
    36     <ant        dir="utilsplugin"       antfile="build.xml"     target="dist"/>
    37     <ant        dir="validator"         antfile="build.xml"     target="dist"/>
    38     <ant        dir="waypoints"         antfile="build.xml"     target="dist"/>
    39     <ant        dir="wmsplugin"         antfile="build.xml"     target="dist"/>
    40   </target>
    41 
    42   <target name="build_defect" depends="compile">
    43     <ant        dir="duplicateway"      antfile="build.xml"     target="dist"/>
    44     <ant        dir="grid"              antfile="build.xml"     target="dist"/>
    45     <ant        dir="navigator"         antfile="build.xml"     target="dist"/>
    46   </target>
    47 
    48   <target name="clean">
    49     <ant        dir="agpifoj"           antfile="build.xml"     target="clean"/>
    50     <ant        dir="colorscheme"       antfile="build.xml"     target="clean"/>
    51     <ant        dir="duplicateway"      antfile="build.xml"     target="clean"/>
    52     <ant        dir="globalsat"         antfile="build.xml"     target="clean"/>
    53     <ant        dir="grid"              antfile="build.xml"     target="clean"/>
    54     <ant        dir="imagewaypoint"     antfile="build.xml"     target="clean"/>
    55     <ant        dir="lakewalker"        antfile="build.xml"     target="clean"/>
    56     <ant        dir="livegps"           antfile="build.xml"     target="clean"/>
    57     <ant        dir="measurement"       antfile="build.xml"     target="clean"/>
    58     <ant        dir="namefinder"        antfile="build.xml"     target="clean"/>
    59     <ant        dir="navigator"         antfile="build.xml"     target="clean"/>
    60     <ant        dir="nearclick"         antfile="build.xml"     target="clean"/>
    61     <ant        dir="openvisible"       antfile="build.xml"     target="clean"/>
    62     <ant        dir="osmarender"        antfile="build.xml"     target="clean"/>
    63     <ant        dir="plastic_laf"       antfile="build.xml"     target="clean"/>
    64     <ant        dir="pluginmanager"     antfile="build.xml"     target="clean"/>
    65     <ant        dir="remotecontrol"     antfile="build.xml"     target="clean"/>
    66     <ant        dir="slippymap"         antfile="build.xml"     target="clean"/>
    67     <ant        dir="slippy_map_chooser"        antfile="build.xml"     target="clean"/>
    68     <ant        dir="surveyor"          antfile="build.xml"     target="clean"/>
    69     <ant        dir="tagging-preset-tester"     antfile="build.xml"     target="clean"/>
    70     <ant        dir="tcxplugin"         antfile="build.xml"     target="clean"/>
    71     <ant        dir="utilsplugin"       antfile="build.xml"     target="clean"/>
    72     <ant        dir="validator"         antfile="build.xml"     target="clean"/>
    73     <ant        dir="waypoints"         antfile="build.xml"     target="clean"/>
    74     <ant        dir="wmsplugin"         antfile="build.xml"     target="clean"/>
    75   </target>
    76 
    77   <target name="clean_install">
    78   </target>
    79 
    80   <target name="install" depends="dist">
    81   </target>
    82 
     2    <target name="compile_josm">
     3        <ant dir="../core" target="dist" />
     4    </target>
     5    <target name="compile" depends="compile_josm"></target>
     6    <target name="build" depends="dist"></target>
     7    <target name="dist" depends="compile">
     8        <mkdir dir="../dist"/>
     9        <ant antfile="build.xml" target="dist" dir="agpifoj"/>
     10        <ant antfile="build.xml" target="dist" dir="colorscheme"/>
     11        <ant antfile="build.xml" target="dist" dir="DirectUpload"/>
     12        <ant antfile="build.xml" target="dist" dir="globalsat"/>
     13        <ant antfile="build.xml" target="dist" dir="imagewaypoint"/>
     14        <ant antfile="build.xml" target="dist" dir="lakewalker"/>
     15        <ant antfile="build.xml" target="dist" dir="livegps"/>
     16        <ant antfile="build.xml" target="dist" dir="measurement"/>
     17        <ant antfile="build.xml" target="dist" dir="namefinder"/>
     18        <ant antfile="build.xml" target="dist" dir="nearclick"/>
     19        <ant antfile="build.xml" target="dist" dir="openvisible"/>
     20        <ant antfile="build.xml" target="dist" dir="osmarender"/>
     21        <ant antfile="build.xml" target="dist" dir="plastic_laf"/>
     22        <ant antfile="build.xml" target="dist" dir="pluginmanager"/>
     23        <ant antfile="build.xml" target="dist" dir="remotecontrol"/>
     24        <ant antfile="build.xml" target="dist" dir="slippymap"/>
     25        <ant antfile="build.xml" target="dist" dir="slippy_map_chooser"/>
     26        <ant antfile="build.xml" target="dist" dir="surveyor"/>
     27        <ant antfile="build.xml" target="dist" dir="tagging-preset-tester"/>
     28        <ant antfile="build.xml" target="dist" dir="tcxplugin"/>
     29        <ant antfile="build.xml" target="dist" dir="utilsplugin"/>
     30        <ant antfile="build.xml" target="dist" dir="validator"/>
     31        <ant antfile="build.xml" target="dist" dir="waypoints"/>
     32        <ant antfile="build.xml" target="dist" dir="wmsplugin"/>
     33    </target>
     34    <target name="build_defect" depends="compile">
     35        <ant antfile="build.xml" target="dist" dir="duplicateway"/>
     36        <ant antfile="build.xml" target="dist" dir="grid"/>
     37        <ant antfile="build.xml" target="dist" dir="navigator"/>
     38    </target>
     39    <target name="clean">
     40        <ant antfile="build.xml" target="clean" dir="agpifoj"/>
     41        <ant antfile="build.xml" target="clean" dir="colorscheme"/>
     42        <ant antfile="build.xml" target="clean" dir="duplicateway"/>
     43        <ant antfile="build.xml" target="clean" dir="globalsat"/>
     44        <ant antfile="build.xml" target="clean" dir="grid"/>
     45        <ant antfile="build.xml" target="clean" dir="imagewaypoint"/>
     46        <ant antfile="build.xml" target="clean" dir="lakewalker"/>
     47        <ant antfile="build.xml" target="clean" dir="livegps"/>
     48        <ant antfile="build.xml" target="clean" dir="measurement"/>
     49        <ant antfile="build.xml" target="clean" dir="namefinder"/>
     50        <ant antfile="build.xml" target="clean" dir="navigator"/>
     51        <ant antfile="build.xml" target="clean" dir="nearclick"/>
     52        <ant antfile="build.xml" target="clean" dir="openvisible"/>
     53        <ant antfile="build.xml" target="clean" dir="osmarender"/>
     54        <ant antfile="build.xml" target="clean" dir="plastic_laf"/>
     55        <ant antfile="build.xml" target="clean" dir="pluginmanager"/>
     56        <ant antfile="build.xml" target="clean" dir="remotecontrol"/>
     57        <ant antfile="build.xml" target="clean" dir="slippymap"/>
     58        <ant antfile="build.xml" target="clean" dir="slippy_map_chooser"/>
     59        <ant antfile="build.xml" target="clean" dir="surveyor"/>
     60        <ant antfile="build.xml" target="clean" dir="tagging-preset-tester"/>
     61        <ant antfile="build.xml" target="clean" dir="tcxplugin"/>
     62        <ant antfile="build.xml" target="clean" dir="utilsplugin"/>
     63        <ant antfile="build.xml" target="clean" dir="validator"/>
     64        <ant antfile="build.xml" target="clean" dir="waypoints"/>
     65        <ant antfile="build.xml" target="clean" dir="wmsplugin"/>
     66    </target>
     67    <target name="clean_install"></target>
     68    <target name="install" depends="dist"></target>
    8369</project>
  • applications/editors/josm/plugins/colorscheme/build.xml

    r12588 r12780  
    11<project name="colorscheme" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11  
    12   <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})."/>
    13   <property name="plugin.class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
    14 
    15   <!-- update site meta data -->
    16   <property name="plugin.site.file" value="josm-site.xml"/>
    17   <property name="plugin.site.description" value="Josm's ColorScheme Plugin Update Site"/>
    18   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/colorscheme/"/>
    19   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/colorscheme/"/>
    20 
    21   <property name="ant.build.javac.target" value="1.5"/>
    22  
    23   <target name="dist" depends="compile, site">
    24     <echo message="creating ${plugin.jar}"/>
    25     <!-- images -->
    26     <!--
    27          <copy todir="${plugin.build.dir}/images">
    28            <fileset dir="src/images" />
    29          </copy>
    30          -->
    31     <!-- copy configuration xml files -->
    32     <copy todir="${plugin.build.dir}">
    33       <fileset dir="src">
    34         <include name="*.xml"/>
    35       </fileset>
    36     </copy>
    37    
    38     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    39       <env key="LANG" value="C"/>
    40       <arg value="info"/>
    41       <arg value="--xml"/>
    42       <arg value="."/>
    43     </exec>
    44     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    45     <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-Version" value="${version.entry.commit.revision}"/>
    52         <attribute name="Plugin-Mainversion" value="1180"/>
    53         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    54       </manifest>
    55     </jar>
    56   </target>
    57 
    58   <target name="compile" depends="init">
    59     <mkdir dir="${plugin.build.dir}"/>
    60     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    61       <classpath>
    62         <pathelement path="${josm.build.dir}/build"/>
    63         <fileset dir="${josm.build.dir}/lib">
    64           <include name="**/*.jar"/>
    65         </fileset>
    66       </classpath>
    67     </javac>
    68   </target>
    69 
    70   <target name="install" depends="dist">
    71     <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
    72   </target>
    73 
    74   <target name="init">
    75     <echo>java version: ${java.version}</echo>
    76   </target>
    77 
    78   <target name="clean">
    79     <delete dir="${plugin.site.file}" />
    80     <delete dir="${plugin.build.dir}" />
    81     <delete file="${plugin.jar}" />
    82   </target>
    83 
    84   <!-- write site description for the given plugin so josm will accept it -->
    85   <target name="site">
    86     <echo message="creating site description in ${plugin.site.file}"/>
    87     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     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/"/>
     17    <property name="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile, site">
     19        <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 -->
     27        <copy todir="${plugin.build.dir}">
     28            <fileset dir="src">
     29                <include name="*.xml"/>
     30            </fileset>
     31        </copy>
     32        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     33            <env key="LANG" value="C"/>
     34            <arg value="info"/>
     35            <arg value="--xml"/>
     36            <arg value="."/>
     37        </exec>
     38        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     39        <delete file="REVISION"/>
     40<!-- 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>
     50    </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>
     61    </target>
     62    <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 -->
    8877  &lt;plugins>
    8978  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    9483  &lt;/plugins>
    9584</echo>
    96 </target>
    97 
     85    </target>
    9886<!-- 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"?>
     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"?>
    10290    &lt;site version="1.0">
    10391    &lt;!-- meta data of site -->
     
    120108&lt;/site>
    121109</echo>
    122 </target>
    123 
     110    </target>
    124111<!-- upload the site description and the jar file via ssh -->
    125 <target name="upload" depends="dist,site">
    126   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    127   <exec executable="scp">
    128     <arg value="${plugin.jar}"/>
    129     <arg value="${plugin.site.file}"/>
    130     <arg value="${plugin.site.upload.target}"/>
    131   </exec>
    132 </target>
    133 
     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>
     119    </target>
    134120</project>
  • applications/editors/josm/plugins/duplicateway/build.xml

    r12588 r12780  
    11<project name="Duplicate-Way" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <property name="ant.build.javac.target" value="1.5"/>
    13  
    14   <target name="init">
    15     <mkdir dir="${plugin.build.dir}"/>
    16   </target>
    17 
    18 
    19   <target name="compile" depends="init">
    20     <echo message="creating ${plugin.jar}"/>
    21     <mkdir dir="build"></mkdir>
    22     <mkdir dir="${plugin.build.dir}/images"></mkdir>
    23     <copy todir="build">
    24       <fileset dir="${plugin.build.dir}" casesensitive="yes">
    25         <filename name="**/*.class"/>
    26       </fileset>
    27     </copy>
    28     <copy todir="${plugin.build.dir}/images">
    29       <fileset dir="images" casesensitive="yes">
    30         <filename name="**/*.png"/>
    31       </fileset>
    32     </copy>
    33     <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
    34       <include name="**/*.java" />
    35     </javac>
    36   </target>
    37 
    38   <target name="dist" depends="compile">
    39     <jar destfile="${plugin.jar}" basedir="build">
    40       <manifest>
    41         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" />
    42         <attribute name="Plugin-Description" value="Duplicate Ways with an offset" />
    43         <attribute name="Plugin-Version" value="0.1"/>
    44         <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>"/>
    45       </manifest>
    46     </jar>
    47   </target>
    48 
    49   <target name="clean">
    50     <delete dir="${plugin.build.dir}" />
    51     <delete file="${plugin.jar}" />
    52   </target>
    53 
    54   <target name="install" depends="dist">
    55     <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    56   </target>
    57 
     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="ant.build.javac.target" value="1.5"/>
     11    <target name="init">
     12        <mkdir dir="${plugin.build.dir}"/>
     13    </target>
     14    <target name="compile" depends="init">
     15        <echo message="creating ${plugin.jar}"/>
     16        <mkdir dir="build"></mkdir>
     17        <mkdir dir="${plugin.build.dir}/images"></mkdir>
     18        <copy todir="build">
     19            <fileset dir="${plugin.build.dir}" casesensitive="yes">
     20                <filename name="**/*.class"/>
     21            </fileset>
     22        </copy>
     23        <copy todir="${plugin.build.dir}/images">
     24            <fileset dir="images" casesensitive="yes">
     25                <filename name="**/*.png"/>
     26            </fileset>
     27        </copy>
     28        <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     29            <include name="**/*.java" />
     30        </javac>
     31    </target>
     32    <target name="dist" depends="compile">
     33        <jar destfile="${plugin.jar}" basedir="build">
     34            <manifest>
     35                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.duplicateway.DuplicateWayPlugin" />
     36                <attribute name="Plugin-Description" value="Duplicate Ways with an offset" />
     37                <attribute name="Plugin-Version" value="0.1"/>
     38                <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>"/>
     39            </manifest>
     40        </jar>
     41    </target>
     42    <target name="clean">
     43        <delete dir="${plugin.build.dir}" />
     44        <delete file="${plugin.jar}" />
     45    </target>
     46    <target name="install" depends="dist">
     47        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
     48    </target>
    5849</project>
  • applications/editors/josm/plugins/globalsat/build.xml

    r12588 r12780  
    11<project name="globalsat" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"   value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"             location="../../core/dist/josm-custom.jar" />
    15   <property name="RXTX"             location="./libs/RXTXcomm.jar" />
    16   <property name="plugin.build.dir" value="build"/>
    17   <property name="plugin.dist.dir"  value="../../dist"/>
    18   <property name="plugin.name"      value="${ant.project.name}"/>
    19   <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    20 
    21   <property name="ant.build.javac.target" value="1.5"/>
    22 
    23   <path id="classpath">
    24     <fileset id="RXTX" file="${RXTX}"/>
    25     <fileset file="${josm}"/>
    26   </path>
    27 
    28   <target name="dist" depends="compile">
    29     <unjar dest="build">
    30       <fileset refid="RXTX" />
    31     </unjar>
    32     <!-- images -->
    33     <copy todir="build/images">
    34       <fileset dir="images" />
    35     </copy>
    36 
    37     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    38       <env key="LANG" value="C"/>
    39       <arg value="info"/>
    40       <arg value="--xml"/>
    41       <arg value="."/>
    42     </exec>
    43     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    44     <delete file="REVISION"/>
    45 
    46     <jar destfile="${plugin.jar}" basedir="build">
    47       <manifest>
    48         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin" />
    49         <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." />
    50         <attribute name="Plugin-Author" value="ramack@raphael-mack.de" />
    51         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    52         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    53         <attribute name="Plugin-Mainversion" value="1180"/>
    54       </manifest>
    55     </jar>
    56   </target>
    57 
    58   <target name="compile" depends="init">
    59     <echo message="creating ${plugin.jar}"/>
    60     <javac srcdir="src" classpathref="classpath" destdir="build">
    61       <compilerarg value="-Xlint:deprecation"/>
    62     </javac>
    63   </target>
    64 
    65   <target name="init">
    66     <mkdir dir="${plugin.build.dir}" />
    67   </target>
    68 
    69   <target name="clean">
    70     <delete dir="${plugin.build.dir}" />
    71     <delete file="${plugin.jar}" />
    72   </target>
    73 
    74   <target name="install" depends="dist">
    75     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    76   </target>
     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"/>
     18    <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" />
     30        </copy>
     31        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     32            <env key="LANG" value="C"/>
     33            <arg value="info"/>
     34            <arg value="--xml"/>
     35            <arg value="."/>
     36        </exec>
     37        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     38        <delete file="REVISION"/>
     39        <jar destfile="${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}" />
     58    </target>
     59    <target name="clean">
     60        <delete dir="${plugin.build.dir}" />
     61        <delete file="${plugin.jar}" />
     62    </target>
     63    <target name="install" depends="dist">
     64        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     65    </target>
    7766</project>
  • applications/editors/josm/plugins/grid/build.xml

    r7287 r12780  
    11<project name="grid" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11  
    12  
    13   <!-- point to your JOSM directory -->
    14   <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" />
    15 
    16   <property name="ant.build.javac.target" value="1.5"/>
    17 
    18   <target name="init">
    19     <mkdir dir="build"></mkdir>
    20     <mkdir dir="dist"></mkdir>
    21   </target>
    22 
    23   <target name="compile" depends="init">
    24     <echo message="creating ${plugin.jar}"/>
    25     <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
    26       <include name="**/*.java" />
    27     </javac>
    28   </target>
    29 
    30   <target name="dist" depends="compile">
    31     <copy todir="build/images" >
    32       <fileset dir="images" />
    33     </copy>
    34     <jar destfile="${plugin.jar}" basedir="build">
    35       <manifest>
    36         <attribute name="Plugin-Class" value="grid.GridPlugin" />
    37         <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
    38       </manifest>
    39     </jar>
    40   </target>
    41 
    42   <target name="clean">
    43     <delete dir="${plugin.build.dir}" />
    44     <delete file="${plugin.jar}" />
    45   </target>
    46 
    47   <target name="install" depends="dist">
    48     <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    49   </target>
    50 
    51 
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="josm"         location="../../core/dist/josm-custom.jar" />
     6    <property name="plugin.build.dir" value="build"/>
     7    <property name="plugin.dist.dir"  value="../../dist"/>
     8    <property name="plugin.name"      value="${ant.project.name}"/>
     9    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     10<!-- point to your JOSM directory -->
     11    <property name="josm" location="${josm.build.dir}/dist/josm-custom.jar" />
     12    <property name="ant.build.javac.target" value="1.5"/>
     13    <target name="init">
     14        <mkdir dir="build"></mkdir>
     15        <mkdir dir="dist"></mkdir>
     16    </target>
     17    <target name="compile" depends="init">
     18        <echo message="creating ${plugin.jar}"/>
     19        <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     20            <include name="**/*.java" />
     21        </javac>
     22    </target>
     23    <target name="dist" depends="compile">
     24        <copy todir="build/images" >
     25            <fileset dir="images" />
     26        </copy>
     27        <jar destfile="${plugin.jar}" basedir="build">
     28            <manifest>
     29                <attribute name="Plugin-Class" value="grid.GridPlugin" />
     30                <attribute name="Plugin-Description" value="Provide a background layer that displays a map grid" />
     31            </manifest>
     32        </jar>
     33    </target>
     34    <target name="clean">
     35        <delete dir="${plugin.build.dir}" />
     36        <delete file="${plugin.jar}" />
     37    </target>
     38    <target name="install" depends="dist">
     39        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
     40    </target>
    5241</project>
  • applications/editors/josm/plugins/imagewaypoint/build.xml

    r12588 r12780  
    11<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 
    11         <target name="dist" depends="compile">
    12 
    13                 <copy todir="build/images">
    14                         <fileset dir="images" />
    15                 </copy>
    16 
    17     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    18       <env key="LANG" value="C"/>
    19       <arg value="info"/>
    20       <arg value="--xml"/>
    21       <arg value="."/>
    22     </exec>
    23     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    24     <delete file="REVISION"/>
    25 
    26                 <delete file="${plugin.jar}"/>
    27                 <jar destfile="${plugin.jar}" basedir="build">
    28                         <manifest>
    29                                 <attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin" />
    30                                 <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." />
    31                                 <attribute name="Plugin-Early" value="false" />
    32         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    33         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    34         <attribute name="Plugin-Mainversion" value="1180" />
    35                         </manifest>
    36                 </jar>
    37         </target>
    38 
    39   <target name="compile" depends="init">
    40     <echo message="creating ${plugin.jar}"/>
    41     <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
    42       <compilerarg value="-Xlint:deprecation"/>
    43       <compilerarg value="-Xlint:unchecked"/>
    44       <include name="**/*.java" />
    45     </javac>
    46   </target>
    47 
    48         <target name="init">
    49                 <mkdir dir="build" />
    50         </target>
    51 
    52         <target name="clean">
    53                 <delete dir="build" />
    54         </target>
     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" />
     13        </copy>
     14        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     15            <env key="LANG" value="C"/>
     16            <arg value="info"/>
     17            <arg value="--xml"/>
     18            <arg value="."/>
     19        </exec>
     20        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     21        <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" />
     44    </target>
     45    <target name="clean">
     46        <delete dir="build" />
     47    </target>
    5548</project>
  • applications/editors/josm/plugins/lakewalker/build.xml

    r12588 r12780  
    11<project name="lakewalker" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19  
    20   <property name="josm" location="../../core/dist/josm-custom.jar" />
    21 
    22   <property name="ant.build.javac.target" value="1.5"/>
    23 
    24   <target name="init">
    25     <mkdir dir="${plugin.build.dir}"/>
    26   </target>
    27 
    28   <target name="compile" depends="init">
    29     <echo message="creating ${plugin.jar}"/>
    30     <mkdir dir="build"></mkdir>
    31     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
    32           <include name="**/*.java" />
    33         </javac>
    34     <mkdir dir="build/images"></mkdir>
    35     <copy todir="build">
    36       <fileset dir="${plugin.build.dir}" casesensitive="yes">
    37         <filename name="**/*.class"/>
    38       </fileset>
    39     </copy>
    40     <copy todir="build/images">
    41       <fileset dir="images" casesensitive="yes">
    42         <filename name="**/*.png"/>
    43       </fileset>
    44     </copy>
    45   </target>
    46 
    47   <target name="dist" depends="compile">
    48     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    49       <env key="LANG" value="C"/>
    50       <arg value="info"/>
    51       <arg value="--xml"/>
    52       <arg value="."/>
    53     </exec>
    54     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    55     <delete file="REVISION"/>
    56     <jar destfile="${plugin.jar}" basedir="build">
    57       <manifest>
    58         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
    59         <attribute name="Plugin-Description" value="Interface to Lakewalker module" />
    60         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    61         <attribute name="Plugin-Mainversion" value="1180"/>
    62         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    63         <attribute name="Author" value="Brent Easton &lt;b.easton@uws.edu.au>, Jason Reid &lt;jrreid@ucalgary.ca>"/>
    64         <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
    65       </manifest>
    66     </jar>
    67   </target>
    68 
    69   <target name="clean">
    70     <delete dir="${plugin.build.dir}" />
    71     <delete file="${plugin.jar}" />
    72   </target>
    73 
    74   <target name="install" depends="dist">
    75     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    76         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR1"></mkdir>
    77         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR2"></mkdir>
    78         <mkdir dir="${josm.plugins.dir}/Lakewalker/IR3"></mkdir>
    79   </target>
    80 
     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="ant.build.javac.target" value="1.5"/>
     19    <target name="init">
     20        <mkdir dir="${plugin.build.dir}"/>
     21    </target>
     22    <target name="compile" depends="init">
     23        <echo message="creating ${plugin.jar}"/>
     24        <mkdir dir="build"></mkdir>
     25        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     26            <include name="**/*.java" />
     27        </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>
     33        </copy>
     34        <copy todir="build/images">
     35            <fileset dir="images" casesensitive="yes">
     36                <filename name="**/*.png"/>
     37            </fileset>
     38        </copy>
     39    </target>
     40    <target name="dist" depends="compile">
     41        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     42            <env key="LANG" value="C"/>
     43            <arg value="info"/>
     44            <arg value="--xml"/>
     45            <arg value="."/>
     46        </exec>
     47        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     48        <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>
     60    </target>
     61    <target name="clean">
     62        <delete dir="${plugin.build.dir}" />
     63        <delete file="${plugin.jar}" />
     64    </target>
     65    <target name="install" depends="dist">
     66        <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>
     70    </target>
    8171</project>
  • applications/editors/josm/plugins/livegps/README

    r6711 r12780  
    1414  running the gpsd
    1515
    16 Some problems exist! 
     16Some problems exist!
    1717
  • applications/editors/josm/plugins/livegps/build.xml

    r12598 r12780  
    11<project name="livegps" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <!--<property name="josm.build.dir"   value="../../JOSM/"/> -->
    13   <property name="josm.build.dir"       value="../../core/"/>
    14   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    15   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    16   <property name="plugin.build.dir"     value="build"/>
    17   <property name="plugin.dist.dir"      value="../../dist"/>
    18   <property name="plugin.name"          value="${ant.project.name}"/>
    19   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    20  
    21   <property name="plugin.jar" value="../../dist/${plugin.name}.jar"/>
    22   <property name="livegpsplugin.jar" value="${josm.home.dir}/plugins/livegps.jar"/>
    23  
    24   <!-- plugin meta data (enter new version number if anything changed!) -->
    25   <property name="plugin.description" value="Allow live GPS feed from a gpsd server (V${plugin.version})."/>
    26   <property name="plugin.stage" value="50"/>
    27   <property name="plugin.class" value="livegps.LiveGpsPlugin"/>
    28  
    29   <!-- update site meta data -->
    30   <property name="plugin.site.file" value="josm-site.xml"/>
    31   <property name="plugin.site.description" value="Josm's LiveGps Update Site"/>
    32   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/livegps/"/>
    33   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/livegps/"/>
    34  
    35   <property name="ant.build.javac.target" value="1.5"/>
    36 
    37   <target name="init">
    38     <mkdir dir="${plugin.build.dir}"/>
    39   </target>
    40 
    41   <target name="dist" depends="compile">
    42     <!-- images -->
    43     <copy todir="${plugin.build.dir}/images">
    44       <fileset dir="images" />
    45     </copy>     
    46     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    47       <env key="LANG" value="C"/>
    48       <arg value="info"/>
    49       <arg value="--xml"/>
    50       <arg value="."/>
    51     </exec>
    52     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    53     <delete file="REVISION"/>
    54 
    55     <!-- create jar file -->
    56     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    57       <manifest>
    58         <attribute name="Plugin-Class" value="${plugin.class}" />
    59         <attribute name="Plugin-Description" value="${plugin.description}" />
    60         <attribute name="Plugin-Mainversion" value="1180" />
    61         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    62         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    63         <!--attribute name="Plugin-Dependencies" value="org.eigenheimstrasse.josm" /-->
    64         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    65       </manifest>
    66     </jar>
    67   </target>
    68 
    69   <target name="compile" depends="init">
    70     <javac srcdir="livegps" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    71       <compilerarg value="-Xlint:deprecation"/>
    72       <classpath>
    73         <pathelement path="${josm.build.dir}/build"/>
    74         <fileset dir="${josm.build.dir}/lib">
    75           <include name="../core/build/josm.jar"/>
    76           <include name="**/*.jar"/>
    77         </fileset>
    78         <pathelement location="${plugin.jar}"/>
    79       </classpath>
    80     </javac>
    81   </target>
    82 
    83   <target name="install" depends="dist">
    84     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    85         <copy file="liveGPS.conf" todir="${josm.plugins.dir}/livegps/" />
    86   </target>
    87 
    88   <target name="clean">
    89     <delete dir="${plugin.build.dir}" />
    90     <delete file="${plugin.jar}" />
    91   </target>
     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/"/>
     29    <property name="ant.build.javac.target" value="1.5"/>
     30    <target name="init">
     31        <mkdir dir="${plugin.build.dir}"/>
     32    </target>
     33    <target name="dist" depends="compile">
     34<!-- images -->
     35        <copy todir="${plugin.build.dir}/images">
     36            <fileset dir="images" />
     37        </copy>
     38        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     39            <env key="LANG" value="C"/>
     40            <arg value="info"/>
     41            <arg value="--xml"/>
     42            <arg value="."/>
     43        </exec>
     44        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     45        <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>
     58    </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>
     71    </target>
     72    <target name="install" depends="dist">
     73        <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}" />
     79    </target>
    9280</project>
  • applications/editors/josm/plugins/measurement/build.xml

    r12598 r12780  
    11<project name="measurement" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"   value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"             location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir" value="build"/>
    16   <property name="plugin.dist.dir"  value="../../dist"/>
    17   <property name="plugin.name"      value="${ant.project.name}"/>
    18   <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <target name="dist" depends="compile">
    23     <!-- images -->
    24     <copy todir="build/images">
    25       <fileset dir="images" />
    26     </copy>
    27 
    28     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    29       <env key="LANG" value="C"/>
    30       <arg value="info"/>
    31       <arg value="--xml"/>
    32       <arg value="."/>
    33     </exec>
    34     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    35     <delete file="REVISION"/>
    36 
    37     <jar destfile="${plugin.jar}" basedir="build">
    38       <manifest>
    39         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin" />
    40         <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)" />
    41         <attribute name="Plugin-Author" value="mail@raphael-mack.de" />
    42         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    43         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    44         <attribute name="Plugin-Mainversion" value="1180" />
    45       </manifest>
    46     </jar>
    47   </target>
    48 
    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 
    56   <target name="init">
    57     <mkdir dir="${plugin.build.dir}" />
    58   </target>
    59 
    60   <target name="clean">
    61     <delete dir="${plugin.build.dir}" />
    62     <delete file="${plugin.jar}" />
    63   </target>
    64 
    65   <target name="install" depends="dist">
    66     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    67   </target>
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile">
     19<!-- images -->
     20        <copy todir="build/images">
     21            <fileset dir="images" />
     22        </copy>
     23        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     24            <env key="LANG" value="C"/>
     25            <arg value="info"/>
     26            <arg value="--xml"/>
     27            <arg value="."/>
     28        </exec>
     29        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     30        <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}" />
     50    </target>
     51    <target name="clean">
     52        <delete dir="${plugin.build.dir}" />
     53        <delete file="${plugin.jar}" />
     54    </target>
     55    <target name="install" depends="dist">
     56        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     57    </target>
    6858</project>
  • applications/editors/josm/plugins/namefinder/README

    r4307 r12780  
    11A very simple implementation of a Name Finder that will
    2 add a "place" tab to the download dialog and connect to 
     2add a "place" tab to the download dialog and connect to
    33David Earl's name finder service to get results.
    44
  • applications/editors/josm/plugins/namefinder/build.xml

    r12598 r12780  
    11<project name="namefinder" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <property name="ant.build.javac.target" value="1.5"/>
    13  
    14   <!-- init target -->
    15   <target name="init">
    16     <mkdir dir="${plugin.build.dir}" />
    17   </target>
    18  
    19   <!-- clean target -->
    20   <target name="clean">
    21     <delete dir="${plugin.build.dir}" />
    22     <delete file="${plugin.jar}" />
    23   </target>
    24  
    25   <!-- compile target -->
    26   <target name="compile" depends="init">
    27     <echo message="creating ${plugin.jar}"/>
    28     <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    29       <classpath>
    30         <pathelement path="${josm.build.dir}/build"/>
    31         <pathelement path="${josm.build.dir}/src"/>
    32         <fileset dir="${josm.build.dir}/lib">
    33           <include name="**/*.jar"/>
    34         </fileset>
    35       </classpath>
    36     </javac>
    37   </target>
    38  
    39   <!-- dist target - create jar file -->
    40   <target name="dist" depends="compile">
    41     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    42       <env key="LANG" value="C"/>
    43       <arg value="info"/>
    44       <arg value="--xml"/>
    45       <arg value="."/>
    46     </exec>
    47     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    48     <delete file="REVISION"/>
    49     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    50       <manifest>
    51         <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" />
    52         <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" />
    53         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    54         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    55         <attribute name="Plugin-Mainversion" value="1180" />
    56       </manifest>
    57     </jar>
    58   </target>
    59  
    60   <!-- install target - copy jar file to plugin destination -->
    61   <target name="install" depends="dist">
    62     <copy file="../../dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
    63   </target>
    64  
     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="ant.build.javac.target" value="1.5"/>
     11<!-- init target -->
     12    <target name="init">
     13        <mkdir dir="${plugin.build.dir}" />
     14    </target>
     15<!-- clean target -->
     16    <target name="clean">
     17        <delete dir="${plugin.build.dir}" />
     18        <delete file="${plugin.jar}" />
     19    </target>
     20<!-- compile target -->
     21    <target name="compile" depends="init">
     22        <echo message="creating ${plugin.jar}"/>
     23        <javac srcdir="namefinder" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     24            <classpath>
     25                <pathelement path="${josm.build.dir}/build"/>
     26                <pathelement path="${josm.build.dir}/src"/>
     27                <fileset dir="${josm.build.dir}/lib">
     28                    <include name="**/*.jar"/>
     29                </fileset>
     30            </classpath>
     31        </javac>
     32    </target>
     33<!-- dist target - create jar file -->
     34    <target name="dist" depends="compile">
     35        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     36            <env key="LANG" value="C"/>
     37            <arg value="info"/>
     38            <arg value="--xml"/>
     39            <arg value="."/>
     40        </exec>
     41        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     42        <delete file="REVISION"/>
     43        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     44            <manifest>
     45                <attribute name="Plugin-Class" value="namefinder.NameFinderPlugin" />
     46                <attribute name="Plugin-Description" value="Allows selection of download areas by name, using an external service" />
     47                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     48                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     49                <attribute name="Plugin-Mainversion" value="1180" />
     50            </manifest>
     51        </jar>
     52    </target>
     53<!-- install target - copy jar file to plugin destination -->
     54    <target name="install" depends="dist">
     55        <copy file="../../dist/${ant.project.name}.jar" todir="${josm.home.dir}/plugins" />
     56    </target>
    6557</project>
    66 
  • applications/editors/josm/plugins/navigator/build.xml

    r7287 r12780  
    11<project name="navigator" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11  
    12   <!-- plugin meta data (enter new version number if anything changed!) -->
    13   <property name="plugin.version" value="0.3.1"/>
    14   <property name="plugin.description" value="Provides navigation/autorouting functionality (V${plugin.version})."/>
    15   <property name="plugin.stage" value="50"/>
    16   <property name="plugin.class" value="at.dallermassl.josm.plugin.navigator.NavigatorPlugin"/>
    17  
    18   <!-- update site meta data -->
    19   <property name="plugin.site.file" value="josm-site.xml"/>
    20   <property name="plugin.site.description" value="Josm's Surveyor Update Site"/>
    21   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/>
    22   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/>
    23 
    24   <property name="ant.build.javac.target" value="1.5"/>
    25  
    26 
    27   <target name="dist" depends="compile,site">
    28     <!-- images -->
    29     <copy todir="${plugin.build.dir}/images">
    30       <fileset dir="src/images" />
    31     </copy>
    32     <!-- copy configuration xml files
    33          <copy todir="${plugin.build.dir}">
    34            <fileset dir="src">
    35              <include name="*.xml"/>
    36            </fileset>
    37          </copy>
    38          -->
    39    
    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="${plugin.version}" />
    46         <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
    47         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    48       </manifest>
    49     </jar>
    50   </target>
    51 
    52   <target name="compile" depends="init">
    53     <echo message="creating ${plugin.jar}"/>
    54     <mkdir dir="${plugin.build.dir}"/>
    55 
    56     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    57       <classpath>
    58         <pathelement path="${josm.build.dir}/build"/>
    59         <fileset dir="${josm.build.dir}/lib">
    60           <include name="**/*.jar"/>
    61         </fileset>
    62         <fileset dir="lib">
    63           <include name="**/*.jar"/>
    64         </fileset>
    65       </classpath>
    66     </javac>
    67   </target>
    68 
    69   <target name="install" depends="dist">
    70     <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
    71     <copy todir="${josm.home.dir}/plugins">
    72       <fileset dir="lib">
    73         <include name="**/*.jar"/>
    74       </fileset>
    75     </copy>
    76   </target>
    77 
    78   <target name="init">
    79     <echo>java version: ${java.version}</echo>
    80   </target>
    81 
    82   <target name="clean">
    83     <delete dir="${plugin.build.dir}" />
    84     <delete dir="${plugin.site.file}" />
    85     <delete file="${plugin.jar}" />
    86   </target>
    87 
    88   <!-- write site description for the given plugin so josm will accept it -->
    89   <target name="site">
    90     <echo message="creating site description in ${plugin.site.file}"/>
    91     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="josm"         location="../../core/dist/josm-custom.jar" />
     6    <property name="plugin.build.dir" value="build"/>
     7    <property name="plugin.dist.dir"  value="../../dist"/>
     8    <property name="plugin.name"      value="${ant.project.name}"/>
     9    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     10<!-- plugin meta data (enter new version number if anything changed!) -->
     11    <property name="plugin.version" value="0.3.1"/>
     12    <property name="plugin.description" value="Provides navigation/autorouting functionality (V${plugin.version})."/>
     13    <property name="plugin.stage" value="50"/>
     14    <property name="plugin.class" value="at.dallermassl.josm.plugin.navigator.NavigatorPlugin"/>
     15<!-- update site meta data -->
     16    <property name="plugin.site.file" value="josm-site.xml"/>
     17    <property name="plugin.site.description" value="Josm's Surveyor Update Site"/>
     18    <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/>
     19    <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/>
     20    <property name="ant.build.javac.target" value="1.5"/>
     21    <target name="dist" depends="compile,site">
     22<!-- images -->
     23        <copy todir="${plugin.build.dir}/images">
     24            <fileset dir="src/images" />
     25        </copy>
     26<!-- copy configuration xml files
     27     <copy todir="${plugin.build.dir}">
     28       <fileset dir="src">
     29         <include name="*.xml"/>
     30       </fileset>
     31     </copy>
     32     -->
     33<!-- create jar file -->
     34        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     35            <manifest>
     36                <attribute name="Plugin-Class" value="${plugin.class}" />
     37                <attribute name="Plugin-Description" value="${plugin.description}" />
     38                <attribute name="Plugin-Version" value="${plugin.version}" />
     39                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
     40                <attribute name="Plugin-Stage" value="${plugin.stage}" />
     41            </manifest>
     42        </jar>
     43    </target>
     44    <target name="compile" depends="init">
     45        <echo message="creating ${plugin.jar}"/>
     46        <mkdir dir="${plugin.build.dir}"/>
     47        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     48            <classpath>
     49                <pathelement path="${josm.build.dir}/build"/>
     50                <fileset dir="${josm.build.dir}/lib">
     51                    <include name="**/*.jar"/>
     52                </fileset>
     53                <fileset dir="lib">
     54                    <include name="**/*.jar"/>
     55                </fileset>
     56            </classpath>
     57        </javac>
     58    </target>
     59    <target name="install" depends="dist">
     60        <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
     61        <copy todir="${josm.home.dir}/plugins">
     62            <fileset dir="lib">
     63                <include name="**/*.jar"/>
     64            </fileset>
     65        </copy>
     66    </target>
     67    <target name="init">
     68        <echo>java version: ${java.version}</echo>
     69    </target>
     70    <target name="clean">
     71        <delete dir="${plugin.build.dir}" />
     72        <delete dir="${plugin.site.file}" />
     73        <delete file="${plugin.jar}" />
     74    </target>
     75<!-- write site description for the given plugin so josm will accept it -->
     76    <target name="site">
     77        <echo message="creating site description in ${plugin.site.file}"/>
     78        <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
    9279  &lt;plugins>
    9380  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    9885  &lt;/plugins>
    9986</echo>
    100 </target>
    101 
     87    </target>
    10288<!-- 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"?>
     89    <target name="site-full-donotuse">
     90        <echo message="creating site description in ${plugin.site.file}"/>
     91        <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    10692    &lt;site version="1.0">
    10793    &lt;!-- meta data of site -->
     
    124110&lt;/site>
    125111</echo>
    126 </target>
    127 
    128 
     112    </target>
    129113<!-- upload the site description and the jar file via ssh -->
    130 <target name="upload" depends="dist,site">
    131   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    132   <exec executable="scp">
    133     <arg value="${plugin.jar}"/>
    134     <arg value="${plugin.site.file}"/>
    135     <arg value="${plugin.site.upload.target}"/>
    136   </exec>
    137 </target>
    138 
     114    <target name="upload" depends="dist,site">
     115        <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
     116        <exec executable="scp">
     117            <arg value="${plugin.jar}"/>
     118            <arg value="${plugin.site.file}"/>
     119            <arg value="${plugin.site.upload.target}"/>
     120        </exec>
     121    </target>
    139122</project>
  • applications/editors/josm/plugins/nearclick/build.xml

    r12598 r12780  
    11<project name="nearclick" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
    13   <property name="josm" location="../../core/dist/josm-custom.jar" />
    14   <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
    15  
    16   <!-- target directory to place the plugin in -->
    17   <!-- Windows has a different home directory scheme then unix/linux -->
    18   <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
    19   <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
    20   <property name="plugins" location="${user.home}/Application Data/JOSM/plugins" ></property>
    21 
    22   <!-- you should not need to modify anything below this! -->
    23 
    24   <property name="ant.build.javac.target" value="1.5"/>
    25 
    26 
    27   <target name="init">
    28     <mkdir dir="build"></mkdir>
    29     <mkdir dir="dist"></mkdir>
    30   </target>
    31 
    32   <target name="compile" depends="init">
    33     <echo message="creating ${plugin.jar}"/>
    34     <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
    35       <include name="**/*.java" />
    36     </javac>
    37   </target>
    38 
    39   <target name="dist" depends="compile">
    40     <!-- define the version of the jar file -->
    41     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    42       <env key="LANG" value="C"/>
    43       <arg value="info"/>
    44       <arg value="--xml"/>
    45       <arg value="."/>
    46     </exec>
    47     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    48         <!-- delete intermediate file -->
    49     <delete file="REVISION"/>
    50     <jar destfile="${plugin.jar}" basedir="build">
    51       <manifest>
    52         <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
    53         <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)." />
    54         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    55         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    56         <attribute name="Plugin-Mainversion" value="1180" />
    57       </manifest>
    58     </jar>
    59   </target>
    60 
    61   <target name="clean">
    62     <delete dir="${plugin.build.dir}" />
    63     <delete file="${plugin.jar}" />
    64   </target>
    65  
    66   <target name="clean_install">
    67     <delete file="${plugins}/nearclick.jar" />
    68   </target>
    69 
    70   <target name="install" depends="dist">
    71     <copy file="${plugin.jar}" todir="${plugins}"/>
    72   </target>
    73 
     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<!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
     13<!-- target directory to place the plugin in -->
     14<!-- Windows has a different home directory scheme then unix/linux -->
     15<!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
     16<!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
     17    <property name="plugins" location="${user.home}/Application Data/JOSM/plugins" ></property>
     18<!-- you should not need to modify anything below this! -->
     19    <property name="ant.build.javac.target" value="1.5"/>
     20    <target name="init">
     21        <mkdir dir="build"></mkdir>
     22        <mkdir dir="dist"></mkdir>
     23    </target>
     24    <target name="compile" depends="init">
     25        <echo message="creating ${plugin.jar}"/>
     26        <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
     27            <include name="**/*.java" />
     28        </javac>
     29    </target>
     30    <target name="dist" depends="compile">
     31<!-- define the version of the jar file -->
     32        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     33            <env key="LANG" value="C"/>
     34            <arg value="info"/>
     35            <arg value="--xml"/>
     36            <arg value="."/>
     37        </exec>
     38        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     39<!-- delete intermediate file -->
     40        <delete file="REVISION"/>
     41        <jar destfile="${plugin.jar}" basedir="build">
     42            <manifest>
     43                <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
     44                <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)." />
     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="1180" />
     48            </manifest>
     49        </jar>
     50    </target>
     51    <target name="clean">
     52        <delete dir="${plugin.build.dir}" />
     53        <delete file="${plugin.jar}" />
     54    </target>
     55    <target name="clean_install">
     56        <delete file="${plugins}/nearclick.jar" />
     57    </target>
     58    <target name="install" depends="dist">
     59        <copy file="${plugin.jar}" todir="${plugins}"/>
     60    </target>
    7461</project>
  • applications/editors/josm/plugins/openlayers/README

    r8748 r12780  
    33This plugin is a proof of concept, and so it is at a very first stage.
    44
    5 What it does: 
     5What it does:
    66    * It downloads a Yahoo satellite background image of the current view port (well, sort of)
    77
    88What it does NOT:
    99    * Everything else :-)
    10  
     10
    1111What needs to be done:
    1212    * Fix positions
  • applications/editors/josm/plugins/openlayers/build.xml

    r8748 r12780  
    11<project name="openlayers" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                     location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <!-- All jar files needed -->
    23   <fileset id="required_libs" dir="lib">
    24     <include name="cobra.jar"/>
    25     <include name="js.jar"/>
    26     <include name="ehcache-1.4.1.jar"/>
    27     <include name="backport-util-concurrent-3.0.jar"/> <!-- needed by ehcache -->
    28     <include name="commons-logging-1.0.4.jar"/> <!--needed by ehcache -->
    29   </fileset>
    30 
    31   <target name="init">
    32     <mkdir dir="build"></mkdir>
    33     <mkdir dir="dist"></mkdir>
    34   </target>
    35        
    36   <target name="compile" depends="init">
    37     <echo message="creating ${plugin.jar}"/>
    38     <javac srcdir="src" debug="true" destdir="build">
    39         <classpath>
    40             <path path="../../core/dist/josm-custom.jar"/>
    41             <fileset refid="required_libs"/>
    42         </classpath>
    43     </javac>
    44   </target>
    45        
    46   <target name="dist" depends="compile">
    47         <!-- jars -->
    48         <!-- TODO: instead of adding library code to the plugin jar, JOSM should
    49              have some kind of library dir loaded in the classpath -->
    50         <unjar dest="build">
    51                 <fileset refid="required_libs" />
    52         </unjar>
    53 
    54         <!-- images -->
    55     <copy todir="build/images">
    56       <fileset dir="images" />
    57     </copy>
    58        
    59         <!--resources -->
    60     <copy todir="build/resources">
    61       <fileset dir="resources" />
    62     </copy>
    63    
    64     <!-- create josm-custom.jar -->
    65     <jar destfile="${plugin.jar}" basedir="build">
    66       <manifest>
    67         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
    68         <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
    69         <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
    70       </manifest>
    71     </jar>
    72   </target>
    73  
    74   <target name="clean">
    75     <delete dir="${plugin.build.dir}" />
    76     <delete file="${plugin.jar}" />
    77   </target>
    78  
    79   <target name="install" depends="dist">
    80     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    81   </target>
    82 
     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="ant.build.javac.target" value="1.5"/>
     18<!-- All jar files needed -->
     19    <fileset id="required_libs" dir="lib">
     20        <include name="cobra.jar"/>
     21        <include name="js.jar"/>
     22        <include name="ehcache-1.4.1.jar"/>
     23        <include name="backport-util-concurrent-3.0.jar"/>
     24<!-- needed by ehcache -->
     25        <include name="commons-logging-1.0.4.jar"/>
     26<!--needed by ehcache -->
     27    </fileset>
     28    <target name="init">
     29        <mkdir dir="build"></mkdir>
     30        <mkdir dir="dist"></mkdir>
     31    </target>
     32    <target name="compile" depends="init">
     33        <echo message="creating ${plugin.jar}"/>
     34        <javac srcdir="src" debug="true" destdir="build">
     35            <classpath>
     36                <path path="../../core/dist/josm-custom.jar"/>
     37                <fileset refid="required_libs"/>
     38            </classpath>
     39        </javac>
     40    </target>
     41    <target name="dist" depends="compile">
     42<!-- jars -->
     43<!-- TODO: instead of adding library code to the plugin jar, JOSM should
     44         have some kind of library dir loaded in the classpath -->
     45        <unjar dest="build">
     46            <fileset refid="required_libs" />
     47        </unjar>
     48<!-- images -->
     49        <copy todir="build/images">
     50            <fileset dir="images" />
     51        </copy>
     52<!--resources -->
     53        <copy todir="build/resources">
     54            <fileset dir="resources" />
     55        </copy>
     56<!-- create josm-custom.jar -->
     57        <jar destfile="${plugin.jar}" basedir="build">
     58            <manifest>
     59                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
     60                <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
     61                <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
     62            </manifest>
     63        </jar>
     64    </target>
     65    <target name="clean">
     66        <delete dir="${plugin.build.dir}" />
     67        <delete file="${plugin.jar}" />
     68    </target>
     69    <target name="install" depends="dist">
     70        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     71    </target>
    8372</project>
  • applications/editors/josm/plugins/openlayers/resources/ehcache.xml

    r8748 r12780  
    55    ==========================
    66    An ehcache.xml corresponds to a single CacheManager.
    7    
     7
    88    See instructions below or the ehcache schema (ehcache.xsd) on how to configure.
    99
     
    170170    Sets the maximum number of objects that will be created in memory
    171171
    172         maxElementsOnDisk:
     172    maxElementsOnDisk:
    173173    Sets the maximum number of objects that will be maintained in the DiskStore
    174         The default value is zero, meaning unlimited.
     174    The default value is zero, meaning unlimited.
    175175
    176176    eternal:
     
    211211    Each spool buffer is used only by its cache. If you get OutOfMemory errors consider
    212212    lowering this value. To improve DiskStore performance consider increasing it. Trace level
    213     logging in the DiskStore will show if put back ups are occurring. 
     213    logging in the DiskStore will show if put back ups are occurring.
    214214
    215215    memoryStoreEvictionPolicy:
     
    468468    </cache>
    469469
    470    
     470
    471471
    472472
  • applications/editors/josm/plugins/openlayers/resources/yahoo.html

    r8748 r12780  
    11<html xmlns="http://www.w3.org/1999/xhtml">
    22  <head>
    3         <!-- The map can not be set to 100%. It hangs -->
     3    <!-- The map can not be set to 100%. It hangs -->
    44    <style type="text/css">
    55        #map {
     
    1111    <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
    1212    <script type="text/javascript">
    13         // There seems to be a problem with this function and the Java JS engine, as the computed style 
    14         // does not have the function getPropertyValue.
    15                 OpenLayers.Element.getStyle =  function(element, style) {
    16                 element = OpenLayers.Util.getElement(element);
    17                 var value = element.style[OpenLayers.String.camelize(style)];
    18                 if (!value) {
    19                     if (document.defaultView && 
    20                         document.defaultView.getComputedStyle && false) {
    21                        
    22                         var css = document.defaultView.getComputedStyle(element, null);
    23                         value = css ? css.getPropertyValue(style) : null;
    24                     } else if (element.currentStyle) {
    25                         value = element.currentStyle[OpenLayers.String.camelize(style)];
    26                     }
    27                 }
    28            
    29                 var positions = ['left', 'top', 'right', 'bottom'];
    30                 if (window.opera &&
    31                     (OpenLayers.Util.indexOf(positions,style) != -1) &&
    32                     (OpenLayers.Element.getStyle(element, 'position') == 'static')) { 
    33                     value = 'auto';
    34                 }
    35            
    36                 return value == 'auto' ? null : value;
    37             }
     13        // There seems to be a problem with this function and the Java JS engine, as the computed style
     14        // does not have the function getPropertyValue.
     15        OpenLayers.Element.getStyle =  function(element, style) {
     16            element = OpenLayers.Util.getElement(element);
     17            var value = element.style[OpenLayers.String.camelize(style)];
     18            if (!value) {
     19                if (document.defaultView &&
     20                    document.defaultView.getComputedStyle && false) {
     21
     22                    var css = document.defaultView.getComputedStyle(element, null);
     23                    value = css ? css.getPropertyValue(style) : null;
     24                } else if (element.currentStyle) {
     25                    value = element.currentStyle[OpenLayers.String.camelize(style)];
     26                }
     27            }
     28
     29            var positions = ['left', 'top', 'right', 'bottom'];
     30            if (window.opera &&
     31                (OpenLayers.Util.indexOf(positions,style) != -1) &&
     32                (OpenLayers.Element.getStyle(element, 'position') == 'static')) {
     33                value = 'auto';
     34            }
     35
     36            return value == 'auto' ? null : value;
     37        }
    3838    </script>
    3939    <script type="text/javascript">
     
    5656            var mapDiv = document.getElementById("map");
    5757            if( !mapDiv ) return;
    58            
     58
    5959            mapDiv.style.width = width;
    6060            mapDiv.style.height = height;
    61            
     61
    6262            if( map )
    6363                map.updateSize();
    6464        }
    65        
     65
    6666        function zoomMapToExtent(left, bottom, right, top)
    6767        {
    6868            if( !map ) return;
    69            
     69
    7070            map.zoomToExtent( new OpenLayers.Bounds(left, bottom, right, top) );
    7171            var extent = map.getExtent();
     
    7878    </script>
    7979  </head>
    80  
     80
    8181  <body onload="init()" style="overflow:hidden; margin: 0; padding: 0;">
    8282    <div id="overlay" style="background:white;opacity:0.5;z-index:10;">
  • applications/editors/josm/plugins/openstreetbugs/LICENSE.txt

    r11157 r12780  
    771. Redistributions of source code must retain the above copyright notice,
    88   this list of conditions and the following disclaimer.
    9 2. Redistributions in binary form must reproduce the above copyright notice, 
    10    this list of conditions and the following disclaimer in the documentation 
     92. Redistributions in binary form must reproduce the above copyright notice,
     10   this list of conditions and the following disclaimer in the documentation
    1111   and/or other materials provided with the distribution.
    12 3. Neither the name of the project nor the names of its 
    13    contributors may be used to endorse or promote products derived from this 
     123. Neither the name of the project nor the names of its
     13   contributors may be used to endorse or promote products derived from this
    1414   software without specific prior written permission.
    1515
  • applications/editors/josm/plugins/openstreetbugs/build.xml

    r12590 r12780  
    11<project name="openstreetbugs" default="dist" basedir=".">
    2 
    3         <!-- the path to JOSM source code (project directory) -->
    4         <property name="josm.base.dir" value="../../core" />
    5 
    6         <property name="josm.dist.dir" value="../../dist" />
    7 
    8         <!--a osm file, which will be loaded, when running the test target -->
    9         <property name="osmfile" value="/tmp/hoe.osm" />
    10 
    11         <!-- compilation properties -->
    12         <property name="josm.build.dir" value="${josm.base.dir}/build" />
    13         <property name="josm.home.dir" value="${user.home}/.josm" />
    14         <property name="josm" location="${josm.base.dir}/dist/josm-custom.jar" />
    15         <property name="lib.dir" value="lib" />
    16         <property name="plugin.build.dir" value="build" />
    17         <property name="plugin.name" value="${ant.project.name}" />
    18         <property name="plugin.jar" value="${plugin.build.dir}/${plugin.name}.jar" />
    19 
    20         <property name="ant.build.javac.target" value="1.5" />
    21 
    22         <target name="init">
    23                 <mkdir dir="${plugin.build.dir}" />
    24         </target>
    25 
    26         <target name="compile" depends="init">
    27                 <echo message="creating ${plugin.jar}" />
    28                 <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true">
    29                         <include name="**/*.java" />
    30                 </javac>
    31         </target>
    32 
    33         <target name="dist" depends="clean, compile">
    34 
    35                 <!-- copy images to jar -->
    36                 <copy todir="${plugin.build.dir}/images">
    37                         <fileset dir="images" />
    38                 </copy>
    39 
    40     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    41       <env key="LANG" value="C"/>
    42       <arg value="info"/>
    43       <arg value="--xml"/>
    44       <arg value="."/>
    45     </exec>
    46     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    47     <delete file="REVISION"/>
    48                 <!-- create the jar file -->
    49                 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    50                         <manifest>
    51                                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osb.OsbPlugin" />
    52                                 <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs" />
    53                                 <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
    54                                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
    55                                 <attribute name="Plugin-Mainversion" value="1180"/>
    56                                 <attribute name="Author" value="Henrik Niehaus" />
    57                         </manifest>
    58                 </jar>
    59 
    60                 <copy todir="${josm.dist.dir}" file="${plugin.jar}" />
    61         </target>
    62 
    63         <!-- clean target -->
    64         <target name="clean">
    65                 <delete dir="build" />
    66         </target>
    67 
    68         <target name="install" depends="dist">
    69                 <condition property="isWindows">
    70                         <os family="windows" />
    71                 </condition>
    72                 <condition property="isUnix">
    73                         <os family="unix" />
    74                 </condition>
    75                 <antcall target="install_win" />
    76                 <antcall target="install_linux" />
    77         </target>
    78 
    79         <target name="install_win" if="isWindows">
    80                 <property environment="env"/>
    81                 <copy file="${plugin.jar}" todir="${env.APPDATA}/JOSM/plugins" />
    82         </target>
    83 
    84         <target name="install_linux" if="isUnix">
    85                 <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins" />
    86         </target>
    87 
    88         <target name="test" depends="install">
    89                 <java jar="${josm}" fork="true">
    90                         <arg value="${osmfile}" />
    91                         <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" />
    92                 </java>
    93         </target>
    94 
     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" />
     16    <target name="init">
     17        <mkdir dir="${plugin.build.dir}" />
     18    </target>
     19    <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" />
     23        </javac>
     24    </target>
     25    <target name="dist" depends="clean, compile">
     26<!-- copy images to jar -->
     27        <copy todir="${plugin.build.dir}/images">
     28            <fileset dir="images" />
     29        </copy>
     30        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     31            <env key="LANG" value="C"/>
     32            <arg value="info"/>
     33            <arg value="--xml"/>
     34            <arg value="."/>
     35        </exec>
     36        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     37        <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}" />
     50    </target>
     51<!-- clean target -->
     52    <target name="clean">
     53        <delete dir="build" />
     54    </target>
     55    <target name="install" depends="dist">
     56        <condition property="isWindows">
     57            <os family="windows" />
     58        </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>
     77    </target>
    9578</project>
  • applications/editors/josm/plugins/openvisible/build.xml

    r12588 r12780  
    11<project name="openvisible" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir" value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    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="${plugin.name}.jar"/>
    18  
    19   <property name="plugin.description" value="Allows opening gpx/osm files that intersect the currently visible screen area (V${plugin.version})."/>
    20   <property name="plugin.stage" value="50"/>
    21   <property name="plugin.class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
    22  
    23   <!-- update site meta data -->
    24   <property name="plugin.site.file" value="josm-site.xml"/>
    25   <property name="plugin.site.description" value="Josm's OpenVisible Update Site"/>
    26   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/${ant.project.name}/"/>
    27   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/${ant.project.name}/"/>
    28 
    29   <property name="ant.build.javac.target" value="1.5"/>
    30  
    31 
    32   <target name="dist" depends="compile,site">
    33     <!-- images -->
    34     <copy todir="${plugin.build.dir}/images">
    35       <fileset dir="images" />
    36     </copy>
    37     <!-- copy configuration xml files
    38          <copy todir="${plugin.build.dir}">
    39            <fileset dir="src">
    40              <include name="*.xml"/>
    41            </fileset>
    42          </copy>
    43          -->
    44    
    45     <mkdir dir="${plugin.dist.dir}"/>
    46    
    47     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    48       <env key="LANG" value="C"/>
    49       <arg value="info"/>
    50       <arg value="--xml"/>
    51       <arg value="."/>
    52     </exec>
    53     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    54     <delete file="REVISION"/>
    55     <!-- create jar file -->
    56     <jar destfile="${plugin.dist.dir}/${plugin.jar}" basedir="${plugin.build.dir}">
    57       <manifest>
    58         <attribute name="Plugin-Class" value="${plugin.class}" />
    59         <attribute name="Plugin-Description" value="${plugin.description}" />
    60         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    61         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    62         <attribute name="Plugin-Mainversion" value="1180" />
    63         <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5" />
    64         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    65       </manifest>
    66     </jar>
    67   </target>
    68 
    69   <target name="compile" depends="init">
    70     <echo message="creating ${plugin.jar}"/>
    71     <mkdir dir="${plugin.build.dir}"/>
    72     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    73       <classpath>
    74         <pathelement path="${josm.build.dir}/build"/>
    75         <fileset dir="${josm.build.dir}/lib">
    76           <include name="**/*.jar"/>
    77         </fileset>
    78         <!--
     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}/"/>
     24    <property name="ant.build.javac.target" value="1.5"/>
     25    <target name="dist" depends="compile,site">
     26<!-- images -->
     27        <copy todir="${plugin.build.dir}/images">
     28            <fileset dir="images" />
     29        </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}"/>
     38        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     39            <env key="LANG" value="C"/>
     40            <arg value="info"/>
     41            <arg value="--xml"/>
     42            <arg value="."/>
     43        </exec>
     44        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     45        <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>
     58    </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<!--
    7969            <fileset dir="lib">
    8070              <include name="**/*.jar"/>
    8171            </fileset>
    8272            -->
    83       </classpath>
    84     </javac>
    85   </target>
    86 
    87   <target name="install" depends="dist">
    88     <copy file="${plugin.dist.dir}/${plugin.jar}" todir="${josm.plugins.dir}"/>
    89     <!--
    90         <copy todir="${josm.home.dir}/plugins">
    91           <fileset dir="lib">
     73            </classpath>
     74        </javac>
     75    </target>
     76    <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">
    9281            <include name="**/*.jar"/>
    93           </fileset>
    94         </copy>
    95         -->
    96   </target>
    97 
    98   <target name="init">
    99     <echo>java version: ${java.version}</echo>
    100   </target>
    101 
    102   <!-- write site description for the given plugin so josm will accept it -->
    103   <target name="site">
    104     <echo message="creating site description in ${plugin.site.file}"/>
    105     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     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 -->
    10693  &lt;plugins>
    10794  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    11299  &lt;/plugins>
    113100</echo>
    114 </target>
    115 
     101    </target>
    116102<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    117 <target name="site-full-donotuse">
    118   <echo message="creating site description in ${plugin.site.file}"/>
    119   <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
     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"?>
    120106    &lt;site version="1.0">
    121107    &lt;!-- meta data of site -->
     
    138124&lt;/site>
    139125</echo>
    140 </target>
    141 
    142 
     126    </target>
    143127<!-- upload the site description and the jar file via ssh -->
    144 <target name="upload" depends="dist,site">
    145   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    146   <exec executable="scp">
    147     <arg value="${plugin.dist.dir}/${plugin.jar}"/>
    148     <arg value="${plugin.site.file}"/>
    149     <arg value="${plugin.site.upload.target}"/>
    150   </exec>
    151 </target>
    152 
    153 <target name="clean">
    154   <delete dir="${plugin.build.dir}" />
    155   <delete dir="${plugin.site.file}" />
    156   <delete file="${plugin.dist.dir}/${plugin.jar}" />
    157 </target>
    158 
     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}" />
     140    </target>
    159141</project>
  • applications/editors/josm/plugins/osmarender/build.xml

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

    r12598 r12780  
    1  <project name="plastic_laf" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <property name="ant.build.javac.target" value="1.5"/>
    13 
    14   <target name="dist">
    15     <echo message="creating ${plugin.jar}"/>
    16    <mkdir dir="dist"></mkdir>
    17     <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" />
    18     <javac srcdir="src" destdir="${plugin.build.dir}">
    19       <include name="**/*.java" />
    20     </javac>
    21     <!-- define the version of the jar file -->
    22     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    23       <env key="LANG" value="C"/>
    24       <arg value="info"/>
    25       <arg value="--xml"/>
    26       <arg value="."/>
    27     </exec>
    28     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    29         <!-- delete intermediate file -->
    30     <delete file="REVISION"/>
    31     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    32       <manifest>
    33         <attribute name="Plugin-Class" value="plastic_laf.Plugin" />
    34         <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
    35         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    36         <attribute name="Plugin-Early" value="true" />
    37         <attribute name="Plugin-Mainversion" value="1180" />
    38         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    39       </manifest>
    40     </jar>
    41   </target>
    42 
    43   <target name="clean">
    44     <delete dir="${plugin.build.dir}" />
    45     <delete file="${plugin.jar}" />
    46   </target>
    47 
     1<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"/>
     10    <property name="ant.build.javac.target" value="1.5"/>
     11    <target name="dist">
     12        <echo message="creating ${plugin.jar}"/>
     13        <mkdir dir="dist"></mkdir>
     14        <unjar dest="${plugin.build.dir}" src="lib/looks-2.0.4.jar" />
     15        <javac srcdir="src" destdir="${plugin.build.dir}">
     16            <include name="**/*.java" />
     17        </javac>
     18<!-- define the version of the jar file -->
     19        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     20            <env key="LANG" value="C"/>
     21            <arg value="info"/>
     22            <arg value="--xml"/>
     23            <arg value="."/>
     24        </exec>
     25        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     26<!-- delete intermediate file -->
     27        <delete file="REVISION"/>
     28        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     29            <manifest>
     30                <attribute name="Plugin-Class" value="plastic_laf.Plugin" />
     31                <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel" />
     32                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     33                <attribute name="Plugin-Early" value="true" />
     34                <attribute name="Plugin-Mainversion" value="1180" />
     35                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     36            </manifest>
     37        </jar>
     38    </target>
     39    <target name="clean">
     40        <delete dir="${plugin.build.dir}" />
     41        <delete file="${plugin.jar}" />
     42    </target>
    4843</project>
  • applications/editors/josm/plugins/pluginmanager/build.xml

    r12588 r12780  
    11<project name="pluginmanager" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <!-- compilation properties -->
    13   <property name="josm.build.dir" value="../../core"/>
    14   <property name="josm.home.dir" value="${user.home}/.josm"/>
    15   <property name="plugin.build.dir" value="bin"/>
    16   <property name="plugin.name" value="${ant.project.name}"/>
    17   <property name="plugin.jar" value="${plugin.name}.jar"/>
    18  
    19   <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/>
    20   <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/>
    21 
    22   <!-- update site meta data -->
    23   <property name="plugin.site.file" value="josm-site.xml"/>
    24   <property name="plugin.site.description" value="Josm's PluginManager Update Site"/>
    25   <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/pluginmanager/"/>
    26   <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/pluginmanager/"/>
    27 
    28   <property name="ant.build.javac.target" value="1.5"/>
    29  
    30 
    31   <target name="dist" depends="compile, site">
    32     <!-- images -->
    33     <!--
    34          <copy todir="${plugin.build.dir}/images">
    35            <fileset dir="src/images" />
    36          </copy>
    37          -->
    38     <!-- copy configuration xml files -->
    39     <copy todir="${plugin.build.dir}">
    40       <fileset dir="src">
    41         <include name="*.xml"/>
    42       </fileset>
    43     </copy>
    44    
    45     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    46       <env key="LANG" value="C"/>
    47       <arg value="info"/>
    48       <arg value="--xml"/>
    49       <arg value="."/>
    50     </exec>
    51     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    52     <delete file="REVISION"/>
    53     <!-- create jar file -->
    54     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    55       <manifest>
    56         <attribute name="Plugin-Class" value="${plugin.class}" />
    57         <attribute name="Plugin-Description" value="${plugin.description}" />
    58         <attribute name="Plugin-Mainversion" value="1180" />
    59         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    60         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    61       </manifest>
    62     </jar>
    63   </target>
    64 
    65   <target name="compile" depends="init">
    66     <echo message="creating ${plugin.jar}"/>
    67     <mkdir dir="${plugin.build.dir}"/>
    68     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    69       <classpath>
    70         <pathelement path="${josm.build.dir}/build"/>
    71         <fileset dir="${josm.build.dir}/lib">
    72           <include name="**/*.jar"/>
    73         </fileset>
    74       </classpath>
    75     </javac>
    76   </target>
    77 
    78   <target name="install" depends="dist">
    79     <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
    80   </target>
    81 
    82   <target name="init">
    83     <echo>java version: ${java.version}</echo>
    84   </target>
    85 
    86   <target name="clean">
    87     <delete dir="${plugin.build.dir}" />
    88     <delete dir="${plugin.site.file}" />
    89     <delete file="${plugin.jar}" />
    90   </target>
    91 
    92   <!-- write site description for the given plugin -->
    93   <target name="site">
    94     <echo message="creating site description in ${plugin.site.file}"/>
    95     <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
     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<!-- compilation properties -->
     11    <property name="josm.build.dir" value="../../core"/>
     12    <property name="josm.home.dir" value="${user.home}/.josm"/>
     13    <property name="plugin.build.dir" value="bin"/>
     14    <property name="plugin.name" value="${ant.project.name}"/>
     15    <property name="plugin.jar" value="${plugin.name}.jar"/>
     16    <property name="plugin.description" value="Manage plugins and provide update mechanism (V${plugin.version})."/>
     17    <property name="plugin.class" value="at.dallermassl.josm.plugin.pluginmanager.PluginManagerPlugin"/>
     18<!-- update site meta data -->
     19    <property name="plugin.site.file" value="josm-site.xml"/>
     20    <property name="plugin.site.description" value="Josm's PluginManager Update Site"/>
     21    <property name="plugin.site.url" value="http://www.tegmento.org/~cdaller/josm/pluginmanager/"/>
     22    <property name="plugin.site.upload.target" value="cdaller@www.tegmento.org:public_html/josm/pluginmanager/"/>
     23    <property name="ant.build.javac.target" value="1.5"/>
     24    <target name="dist" depends="compile, site">
     25<!-- images -->
     26<!--
     27     <copy todir="${plugin.build.dir}/images">
     28       <fileset dir="src/images" />
     29     </copy>
     30     -->
     31<!-- copy configuration xml files -->
     32        <copy todir="${plugin.build.dir}">
     33            <fileset dir="src">
     34                <include name="*.xml"/>
     35            </fileset>
     36        </copy>
     37        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     38            <env key="LANG" value="C"/>
     39            <arg value="info"/>
     40            <arg value="--xml"/>
     41            <arg value="."/>
     42        </exec>
     43        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     44        <delete file="REVISION"/>
     45<!-- create jar file -->
     46        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     47            <manifest>
     48                <attribute name="Plugin-Class" value="${plugin.class}" />
     49                <attribute name="Plugin-Description" value="${plugin.description}" />
     50                <attribute name="Plugin-Mainversion" value="1180" />
     51                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     52                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     53            </manifest>
     54        </jar>
     55    </target>
     56    <target name="compile" depends="init">
     57        <echo message="creating ${plugin.jar}"/>
     58        <mkdir dir="${plugin.build.dir}"/>
     59        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     60            <classpath>
     61                <pathelement path="${josm.build.dir}/build"/>
     62                <fileset dir="${josm.build.dir}/lib">
     63                    <include name="**/*.jar"/>
     64                </fileset>
     65            </classpath>
     66        </javac>
     67    </target>
     68    <target name="install" depends="dist">
     69        <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
     70    </target>
     71    <target name="init">
     72        <echo>java version: ${java.version}</echo>
     73    </target>
     74    <target name="clean">
     75        <delete dir="${plugin.build.dir}" />
     76        <delete dir="${plugin.site.file}" />
     77        <delete file="${plugin.jar}" />
     78    </target>
     79<!-- write site description for the given plugin -->
     80    <target name="site">
     81        <echo message="creating site description in ${plugin.site.file}"/>
     82        <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
    9683      &lt;site version="1.0">
    9784      &lt;!-- meta data of site -->
     
    114101  &lt;/site>
    115102</echo>
    116 </target>
    117 
     103    </target>
    118104<!-- upload the site description and the jar file via ssh -->
    119 <target name="upload" depends="dist,site">
    120   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    121   <exec executable="scp">
    122     <arg value="${plugin.jar}"/>
    123     <arg value="${plugin.site.file}"/>
    124     <arg value="${plugin.site.upload.target}"/>
    125   </exec>
    126 </target>
    127 
     105    <target name="upload" depends="dist,site">
     106        <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
     107        <exec executable="scp">
     108            <arg value="${plugin.jar}"/>
     109            <arg value="${plugin.site.file}"/>
     110            <arg value="${plugin.site.upload.target}"/>
     111        </exec>
     112    </target>
    128113</project>
  • applications/editors/josm/plugins/pluginmanager/site/josm-site.xml

    r3416 r12780  
    33  <!-- meta data of site -->
    44  <site-info>
    5           <site-name>Update Site of Christof Dallermassl</site-name>
    6           <site-url>http://www.tegmento.org/~cdaller/josm/</site-url>
     5      <site-name>Update Site of Christof Dallermassl</site-name>
     6      <site-url>http://www.tegmento.org/~cdaller/josm/</site-url>
    77  </site-info>
    88
     
    1414    <site ref="http://www.tegmento.org/~cdaller/josm/colorscheme/"/>
    1515  </sites>
    16 </site> 
     16</site>
  • applications/editors/josm/plugins/remotecontrol/README

    r9465 r12780  
    1 A plugin for JOSM that listens for commands on a TCP port (8111). 
    2 It can be used to tell JOSM to zoom to an area and download data. 
    3 Details are found on the Wiki page, 
     1A plugin for JOSM that listens for commands on a TCP port (8111).
     2It can be used to tell JOSM to zoom to an area and download data.
     3Details are found on the Wiki page,
    44
    55http://wiki.openstreetmap.org/index.php/JOSM/Plugins/RemoteControl
  • applications/editors/josm/plugins/remotecontrol/build.xml

    r12588 r12780  
    11<project name="remotecontrol" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <property name="ant.build.javac.target" value="1.5"/>
    13  
    14   <target name="init">
    15     <mkdir dir="${plugin.build.dir}"/>
    16   </target>
    17 
    18   <target name="compile" depends="init">
    19     <echo message="creating ${plugin.jar}"/>
    20     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
    21       <include name="**/*.java" />
    22     </javac>
    23   </target>
    24 
    25   <target name="dist" depends="compile">
    26     <copy todir="${plugin.build.dir}/images">
    27       <fileset dir="images"/>
    28     </copy>
    29     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    30       <env key="LANG" value="C"/>
    31       <arg value="info"/>
    32       <arg value="--xml"/>
    33       <arg value="."/>
    34     </exec>
    35     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    36     <delete file="REVISION"/>
    37     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    38       <manifest>
    39         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin"/>
    40         <attribute name="Plugin-Description" value="A plugin allowing other applications to send commands to JOSM." />
    41         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    42         <attribute name="Plugin-Mainversion" value="1180"/>
    43         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    44         <attribute name="Author" value="Frederik Ramm &lt;frederik@remote.org&gt;"/>
    45       </manifest>
    46     </jar>
    47   </target>
    48 
    49   <target name="clean">
    50     <delete dir="${plugin.build.dir}" />
    51     <delete file="${plugin.jar}" />
    52   </target>
    53  
    54   <target name="install" depends="dist">
    55     <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    56   </target>
    57 
    58   <target name="test" depends="install">
    59     <java jar="${josm}" fork="true"/>
    60   </target>
    61 
     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="ant.build.javac.target" value="1.5"/>
     11    <target name="init">
     12        <mkdir dir="${plugin.build.dir}"/>
     13    </target>
     14    <target name="compile" depends="init">
     15        <echo message="creating ${plugin.jar}"/>
     16        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     17            <include name="**/*.java" />
     18        </javac>
     19    </target>
     20    <target name="dist" depends="compile">
     21        <copy todir="${plugin.build.dir}/images">
     22            <fileset dir="images"/>
     23        </copy>
     24        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     25            <env key="LANG" value="C"/>
     26            <arg value="info"/>
     27            <arg value="--xml"/>
     28            <arg value="."/>
     29        </exec>
     30        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     31        <delete file="REVISION"/>
     32        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     33            <manifest>
     34                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin"/>
     35                <attribute name="Plugin-Description" value="A plugin allowing other applications to send commands to JOSM." />
     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                <attribute name="Author" value="Frederik Ramm &lt;frederik@remote.org&gt;"/>
     40            </manifest>
     41        </jar>
     42    </target>
     43    <target name="clean">
     44        <delete dir="${plugin.build.dir}" />
     45        <delete file="${plugin.jar}" />
     46    </target>
     47    <target name="install" depends="dist">
     48        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
     49    </target>
     50    <target name="test" depends="install">
     51        <java jar="${josm}" fork="true"/>
     52    </target>
    6253</project>
  • applications/editors/josm/plugins/slippy_map_chooser/build.xml

    r12598 r12780  
    11<project name="slippy_map_chooser" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"   value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"             location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir" value="build"/>
    16   <property name="plugin.dist.dir"  value="../../dist"/>
    17   <property name="plugin.name"      value="${ant.project.name}"/>
    18   <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <target name="dist" depends="compile">
    23     <!-- images -->
    24     <copy todir="build/images">
    25       <fileset dir="images" />
    26     </copy>
    27     <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
    28       <env key="LANG" value="C"/>
    29       <arg value="../getrevision.pl"/>
    30       <arg value="src_jmv"/>
    31     </exec>
    32     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    33     <delete file="REVISION"/>
    34 
    35     <jar destfile="${plugin.jar}" basedir="build">
    36         <manifest>
    37           <attribute name="Plugin-Class" value="SlippyMapChooserPlugin" />
    38             <attribute name="Plugin-Description" value="Adds a new download dialog that allows to select the download rectangle on the slippy map. With this plugin it's possible to download ways and gpx logs without knowing the coordinates of the desired download rectangle - just navigate to the desired area by zooming and moving the slippy map, mark the area with a rectangle and click download. Works great together with the namefinder plugin!" />
    39             <attribute name="Plugin-Author" value="slippy_map_chooser@freakmail.de" />
    40             <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    41             <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    42             <attribute name="Plugin-Mainversion" value="1180" />
    43         </manifest>
    44     </jar>
    45   </target>
    46 
    47   <target name="compile" depends="init">
    48     <echo message="creating ${plugin.jar}"/>
    49     <javac srcdir="src;src_jmv" classpath="${josm}" destdir="build" debug="true"/>
    50   </target>
    51 
    52   <target name="init">
    53     <mkdir dir="${plugin.build.dir}" />
    54   </target>
    55 
    56   <target name="clean">
    57     <delete dir="${plugin.build.dir}" />
    58     <delete file="${plugin.jar}" />
    59   </target>
    60 
    61   <target name="install" depends="dist">
    62     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    63   </target>
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile">
     19<!-- images -->
     20        <copy todir="build/images">
     21            <fileset dir="images" />
     22        </copy>
     23        <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
     24            <env key="LANG" value="C"/>
     25            <arg value="../getrevision.pl"/>
     26            <arg value="src_jmv"/>
     27        </exec>
     28        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     29        <delete file="REVISION"/>
     30        <jar destfile="${plugin.jar}" basedir="build">
     31            <manifest>
     32                <attribute name="Plugin-Class" value="SlippyMapChooserPlugin" />
     33                <attribute name="Plugin-Description" value="Adds a new download dialog that allows to select the download rectangle on the slippy map. With this plugin it's possible to download ways and gpx logs without knowing the coordinates of the desired download rectangle - just navigate to the desired area by zooming and moving the slippy map, mark the area with a rectangle and click download. Works great together with the namefinder plugin!" />
     34                <attribute name="Plugin-Author" value="slippy_map_chooser@freakmail.de" />
     35                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     36                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     37                <attribute name="Plugin-Mainversion" value="1180" />
     38            </manifest>
     39        </jar>
     40    </target>
     41    <target name="compile" depends="init">
     42        <echo message="creating ${plugin.jar}"/>
     43        <javac srcdir="src;src_jmv" classpath="${josm}" destdir="build" debug="true"/>
     44    </target>
     45    <target name="init">
     46        <mkdir dir="${plugin.build.dir}" />
     47    </target>
     48    <target name="clean">
     49        <delete dir="${plugin.build.dir}" />
     50        <delete file="${plugin.jar}" />
     51    </target>
     52    <target name="install" depends="dist">
     53        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     54    </target>
    6455</project>
  • applications/editors/josm/plugins/slippymap/build.xml

    r12588 r12780  
    11<project name="slippymap" default="dist" basedir=".">
    2 
    3 
    4   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    5   <property environment="env"/>
    6   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    7     <and>
    8       <os family="windows"/>
    9     </and>
    10   </condition>
    11 
    12   <!-- compilation properties -->
    13   <property name="josm.build.dir"       value="../../core"/>
    14   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    15   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    16   <property name="plugin.build.dir"     value="build"/>
    17   <property name="plugin.dist.dir"      value="../../dist"/>
    18   <property name="plugin.name"          value="${ant.project.name}"/>
    19   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    20 
    21   <property name="ant.build.javac.target" value="1.5"/>
    22  
    23 
    24   <target name="dist" depends="compile">
    25     <!-- images -->
    26     <copy todir="build/images">
    27       <fileset dir="images" />
    28     </copy>
    29     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    30       <env key="LANG" value="C"/>
    31       <arg value="info"/>
    32       <arg value="--xml"/>
    33       <arg value="."/>
    34     </exec>
    35     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    36     <delete file="REVISION"/>
    37    
    38     <!-- create josm-custom.jar -->
    39     <jar destfile="${plugin.jar}" basedir="build">
    40       <manifest>
    41         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.slippymap.SlippyMapPlugin" />
    42         <attribute name="Plugin-Description" value="Displays a slippy map tile grid, and tile status info" />
    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 
    50   <target name="compile" depends="init">
    51     <echo message="creating ${plugin.jar}"/>
    52     <javac srcdir="src" classpath="../../core/dist/josm-custom.jar" destdir="build">
    53       <compilerarg value="-Xlint:deprecation"/>
    54     </javac>
    55   </target>
    56  
    57   <target name="init">
    58     <mkdir dir="${plugin.build.dir}" />
    59   </target>
    60  
    61   <target name="clean">
    62     <delete dir="${plugin.build.dir}" />
    63     <delete file="${plugin.jar}" />
    64   </target>
    65  
    66   <target name="install" depends="dist">
    67     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    68   </target>
    69 
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="dist" depends="compile">
     19<!-- images -->
     20        <copy todir="build/images">
     21            <fileset dir="images" />
     22        </copy>
     23        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     24            <env key="LANG" value="C"/>
     25            <arg value="info"/>
     26            <arg value="--xml"/>
     27            <arg value="."/>
     28        </exec>
     29        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     30        <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}" />
     50    </target>
     51    <target name="clean">
     52        <delete dir="${plugin.build.dir}" />
     53        <delete file="${plugin.jar}" />
     54    </target>
     55    <target name="install" depends="dist">
     56        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     57    </target>
    7058</project>
  • applications/editors/josm/plugins/surveyor/build.xml

    r12598 r12780  
    11<project name="surveyor" default="dist" basedir=".">
    2  
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
    21 
    22   <property name="plugin.description" value="Allow adding markers/nodes on current gps positions."/>
    23   <property name="plugin.stage" value="60"/>
    24   <property name="plugin.class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
    25 
    26   <property name="ant.build.javac.target" value="1.5"/>
    27 
    28 
    29   <target name="dist" depends="compile">
    30     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    31       <env key="LANG" value="C"/>
    32       <arg value="info"/>
    33       <arg value="--xml"/>
    34       <arg value="."/>
    35     </exec>
    36     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    37     <delete file="REVISION"/>
    38 
    39     <!-- images -->
    40     <copy todir="${plugin.build.dir}/">
    41       <fileset dir="resources">
    42         <include name="*.xml"/>
    43         <include name="audio/*"/>
    44       </fileset>
    45     </copy>
    46    
    47     <!-- create jar file -->
    48     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    49       <manifest>
    50         <attribute name="Plugin-Class" value="${plugin.class}" />
    51         <attribute name="Plugin-Description" value="${plugin.description}" />
    52         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    53         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    54         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    55         <attribute name="Plugin-Mainversion" value="1180" />
    56       </manifest>
    57     </jar>
    58   </target>
    59 
    60   <target name="compile" depends="init">
    61     <echo message="creating ${plugin.jar}"/>
    62     <mkdir dir="${plugin.build.dir}"/>
    63     <copy todir="build/images" >
    64       <fileset dir="images" />
    65     </copy>
    66     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    67       <compilerarg value="-Xlint:deprecation"/>
    68       <compilerarg value="-Xlint:unchecked"/>
    69       <classpath>
    70         <pathelement path="${josm.build.dir}/build"/>
    71         <fileset dir="${josm.build.dir}/lib">
    72           <include name="**/*.jar"/>
    73         </fileset>
    74         <pathelement location="${livegpsplugin.jar}"/>
    75       </classpath>
    76     </javac>
    77   </target>
    78  
    79   <target name="install" depends="dist">
    80     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    81   </target>
    82 
    83   <target name="init">
    84     <echo>java version: ${java.version}</echo>
    85   </target>
    86 
    87   <target name="clean">
    88     <delete dir="${plugin.build.dir}" />
    89     <delete file="${plugin.jar}" />
    90   </target>
     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="Allow adding markers/nodes on current gps positions."/>
     19    <property name="plugin.stage" value="60"/>
     20    <property name="plugin.class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
     21    <property name="ant.build.javac.target" value="1.5"/>
     22    <target name="dist" depends="compile">
     23        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     24            <env key="LANG" value="C"/>
     25            <arg value="info"/>
     26            <arg value="--xml"/>
     27            <arg value="."/>
     28        </exec>
     29        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     30        <delete file="REVISION"/>
     31<!-- images -->
     32        <copy todir="${plugin.build.dir}/">
     33            <fileset dir="resources">
     34                <include name="*.xml"/>
     35                <include name="audio/*"/>
     36            </fileset>
     37        </copy>
     38<!-- create jar file -->
     39        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     40            <manifest>
     41                <attribute name="Plugin-Class" value="${plugin.class}" />
     42                <attribute name="Plugin-Description" value="${plugin.description}" />
     43                <attribute name="Plugin-Stage" value="${plugin.stage}" />
     44                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     45                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     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        <mkdir dir="${plugin.build.dir}"/>
     53        <copy todir="build/images" >
     54            <fileset dir="images" />
     55        </copy>
     56        <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
     57            <compilerarg value="-Xlint:deprecation"/>
     58            <compilerarg value="-Xlint:unchecked"/>
     59            <classpath>
     60                <pathelement path="${josm.build.dir}/build"/>
     61                <fileset dir="${josm.build.dir}/lib">
     62                    <include name="**/*.jar"/>
     63                </fileset>
     64                <pathelement location="${livegpsplugin.jar}"/>
     65            </classpath>
     66        </javac>
     67    </target>
     68    <target name="install" depends="dist">
     69        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     70    </target>
     71    <target name="init">
     72        <echo>java version: ${java.version}</echo>
     73    </target>
     74    <target name="clean">
     75        <delete dir="${plugin.build.dir}" />
     76        <delete file="${plugin.jar}" />
     77    </target>
    9178</project>
  • applications/editors/josm/plugins/surveyor/changelog.txt

    r3962 r12780  
    22
    332007-08-02: PlayAudioAction is able to read wav files from classpath and from urls
    4            
     4
    55            It also plays the audio file in the background, so the PlayAudioAction can
    66            be set as the first action without delaying the setting of the waypoint/nodes
  • applications/editors/josm/plugins/surveyor/resources/surveyor.xml

    r6163 r12780  
    22<surveyor columns="4" width="1300" height="0">
    33  <!-- icons can either be absolute paths or relative paths to the .josm directory -->
    4   <!-- action class: either fully qualified classnames or if not found, 
     4  <!-- action class: either fully qualified classnames or if not found,
    55       package at.dallermassl.josm.plugin.surveyor.action is assumed -->
    66  <button label="Tunnel Start" hotkey="T" icon="tunnel">
     
    9090    <action class="SetWaypointAction" params="Residential"/>
    9191  </button>
    92   <!-- 
     92  <!--
    9393  <button label="Test" hotkey="shift X">
    9494    <action class="PlayAudioAction" params="resource://audio/KDE_Window_Iconify.wav"/>
  • applications/editors/josm/plugins/tagging-preset-tester/build.xml

    r12588 r12780  
    11<project name="tagging-preset-tester" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <property name="ant.build.javac.target" value="1.5"/>
    13 
    14   <target name="compile">
    15     <echo message="creating ${plugin.jar}"/>
    16     <mkdir dir="build"/>
    17     <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar">
    18       <compilerarg value="-Xlint:deprecation"/>
    19     </javac>
    20   </target>
    21 
    22   <target name="dist" depends="compile">
    23     <mkdir dir="dist"/>
    24     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    25       <env key="LANG" value="C"/>
    26       <arg value="info"/>
    27       <arg value="--xml"/>
    28       <arg value="."/>
    29     </exec>
    30     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    31     <delete file="REVISION"/>
    32     <jar destfile="${plugin.jar}" basedir="build">
    33       <manifest>
    34         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    35         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    36         <attribute name="Plugin-Description" value="Make the Tagging Preset Tester tool available in the help menu." />
    37         <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester" />
    38         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction" />
    39         <attribute name="Plugin-Mainversion" value="1180" />
    40       </manifest>
    41       <fileset dir="."><include name="images/*"/></fileset>
    42     </jar>
    43   </target>
    44  
    45   <target name="clean">
    46     <delete dir="${plugin.build.dir}" />
    47     <delete file="${plugin.jar}" />
    48   </target>
    49 
     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="ant.build.javac.target" value="1.5"/>
     11    <target name="compile">
     12        <echo message="creating ${plugin.jar}"/>
     13        <mkdir dir="build"/>
     14        <javac srcdir="src" destdir="build" classpath="../../core/dist/josm-custom.jar">
     15            <compilerarg value="-Xlint:deprecation"/>
     16        </javac>
     17    </target>
     18    <target name="dist" depends="compile">
     19        <mkdir dir="dist"/>
     20        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     21            <env key="LANG" value="C"/>
     22            <arg value="info"/>
     23            <arg value="--xml"/>
     24            <arg value="."/>
     25        </exec>
     26        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     27        <delete file="REVISION"/>
     28        <jar destfile="${plugin.jar}" basedir="build">
     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="1180" />
     36            </manifest>
     37            <fileset dir=".">
     38                <include name="images/*"/>
     39            </fileset>
     40        </jar>
     41    </target>
     42    <target name="clean">
     43        <delete dir="${plugin.build.dir}" />
     44        <delete file="${plugin.jar}" />
     45    </target>
    5046</project>
  • applications/editors/josm/plugins/tcxplugin/build.xml

    r12588 r12780  
    11<project name="tcx-support" default="dist" basedir=".">
    2  
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="livegpsplugin.jar" value="../../dist/livegps.jar"/>
    21  
    22   <property name="plugin.description" value="Adds support for TCX files."/>
    23   <property name="plugin.stage" value="100"/>
    24   <property name="plugin.class" value="org.openstreetmap.josm.plugins.TcxPlugin"/>
    25  
    26   <!-- update site meta data -->
    27   <property name="plugin.site.file" value="josm-site.xml"/>
    28   <property name="plugin.site.description" value=""/>
    29   <property name="plugin.site.url" value=""/>
    30   <property name="plugin.site.upload.target" value=""/>
    31 
    32   <property name="ant.build.javac.target" value="1.5"/>
    33  
    34         <!-- All jar files necessary to run only JOSM (no tests) -->
    35         <fileset id="josm_required_libs" dir="lib">
    36         </fileset>
    37        
    38  
    39   <target name="dist" depends="compile,site">
    40         <!-- jars -->
    41         <unjar dest="build">
    42                 <fileset refid="josm_required_libs" />
    43         </unjar>
    44         <!-- images -->
    45         <copy todir="build/images">
    46                 <fileset dir="images" />
    47         </copy>
    48 
    49        
    50    
    51     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    52       <env key="LANG" value="C"/>
    53       <arg value="info"/>
    54       <arg value="--xml"/>
    55       <arg value="."/>
    56     </exec>
    57     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    58     <delete file="REVISION"/>
    59     <!-- create jar file -->
    60     <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    61       <manifest>
    62         <attribute name="Plugin-Class" value="${plugin.class}" />
    63         <attribute name="Plugin-Description" value="${plugin.description}" />
    64         <attribute name="Plugin-Stage" value="${plugin.stage}" />
    65         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    66         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    67         <attribute name="Plugin-Mainversion" value="1180" />
     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=""/>
     26    <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" />
     33        </unjar>
     34<!-- images -->
     35        <copy todir="build/images">
     36            <fileset dir="images" />
     37        </copy>
     38        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     39            <env key="LANG" value="C"/>
     40            <arg value="info"/>
     41            <arg value="--xml"/>
     42            <arg value="."/>
     43        </exec>
     44        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     45        <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" />
    6855<!--        <attribute name="Class-Path" value="lib/jaxb-api.jar;lib/jaxb-impl.jar" />-->
    69       </manifest>
    70     </jar>
    71   </target>
    72 
    73   <target name="compile" depends="init">
    74     <echo message="creating ${plugin.jar}"/>
    75     <mkdir dir="${plugin.build.dir}"/>
    76     <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    77       <classpath>
    78                 <pathelement path="${josm.build.dir}/build"/>
    79                 <fileset dir="${josm.build.dir}/lib">
    80                         <include name="**/*.jar"/>
    81                 </fileset>
    82                 <fileset dir="./lib">
    83                         <include name="**/*.jar"/>
    84                 </fileset>
    85       </classpath>
    86     </javac>
    87   </target>
    88  
    89   <target name="install" depends="dist">
    90     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    91   </target>
    92 
    93   <target name="init">
    94     <echo>java version: ${java.version}</echo>
    95   </target>
    96 
    97   <target name="clean">
    98     <delete dir="${plugin.build.dir}" />
    99     <delete dir="${plugin.site.file}" />
    100     <delete file="${plugin.jar}" />
    101   </target>
    102 
    103   <!-- write site description for the given plugin so josm will accept it -->
    104   <target name="site">
    105     <echo message="creating site description in ${plugin.site.file}"/>
    106     <echo file="${plugin.site.file}">&lt;!-- plugins available on this site -->
     56            </manifest>
     57        </jar>
     58    </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>
     73    </target>
     74    <target name="install" depends="dist">
     75        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     76    </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 -->
    10789  &lt;plugins>
    10890  &lt;plugin id="${ant.project.name}" version="${plugin.version}">
     
    11395  &lt;/plugins>
    11496</echo>
    115 </target>
    116 
     97    </target>
    11798<!-- write site description for the given plugin (not implemented in JOSM as full version yet!) -->
    118 <target name="site-full-donotuse">
    119   <echo message="creating site description in ${plugin.site.file}"/>
    120   <echo file="${plugin.site.file}">&lt;?xml version="1.0"?>
     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"?>
    121102    &lt;site version="1.0">
    122103    &lt;!-- meta data of site -->
     
    139120&lt;/site>
    140121</echo>
    141 </target>
    142 
    143 
     122    </target>
    144123<!-- upload the site description and the jar file via ssh -->
    145 <target name="upload" depends="dist,site">
    146   <echo message="uploading jar and site description to ${plugin.site.upload.target}"/>
    147   <exec executable="scp">
    148     <arg value="${plugin.jar}"/>
    149     <arg value="${plugin.site.file}"/>
    150     <arg value="${plugin.site.upload.target}"/>
    151   </exec>
    152 </target>
    153 
     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>
    154132</project>
  • applications/editors/josm/plugins/utilsplugin/README

    r7283 r12780  
    22and has been mostly merged into josm.
    33
    4 Some of the remaining parts are written by 
     4Some of the remaining parts are written by
    55Frederik Ramm <frederik@remote.org>.
    66
  • applications/editors/josm/plugins/utilsplugin/build.xml

    r12598 r12780  
    11<project name="utilsplugin" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <target name="init">
    23     <mkdir dir="build"/>
    24   </target>
    25 
    26   <target name="compile" depends="init">
    27     <echo message="creating ${plugin.jar}"/>
    28     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
    29        <compilerarg value="-Xlint:deprecation"/>
    30      </javac>
    31   </target>
    32 
    33   <target name="dist" depends="clean, compile">
    34     <copy todir="build/images">
    35       <fileset dir="images"/>
    36     </copy>
    37     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    38       <env key="LANG" value="C"/>
    39       <arg value="info"/>
    40       <arg value="--xml"/>
    41       <arg value="."/>
    42     </exec>
    43     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    44     <delete file="REVISION"/>
    45     <jar destfile="${plugin.jar}" basedir="build">
    46       <manifest>
    47         <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
    48         <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
    49         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    50         <attribute name="Plugin-Mainversion" value="1180"/>
    51         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    52         <attribute name="Author"
    53                    value="(originally) Martijn van Oosterhout &gt;kleptog@svana.org&gt;"/>
    54       </manifest>
    55     </jar>
    56   </target>
    57 
    58   <target name="clean">
    59     <delete dir="${plugin.build.dir}" />
    60     <delete file="${plugin.jar}" />
    61   </target>
    62 
    63   <target name="install" depends="dist">
    64     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    65   </target>
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="init">
     19        <mkdir dir="build"/>
     20    </target>
     21    <target name="compile" depends="init">
     22        <echo message="creating ${plugin.jar}"/>
     23        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     24            <compilerarg value="-Xlint:deprecation"/>
     25        </javac>
     26    </target>
     27    <target name="dist" depends="clean, compile">
     28        <copy todir="build/images">
     29            <fileset dir="images"/>
     30        </copy>
     31        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     32            <env key="LANG" value="C"/>
     33            <arg value="info"/>
     34            <arg value="--xml"/>
     35            <arg value="."/>
     36        </exec>
     37        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     38        <delete file="REVISION"/>
     39        <jar destfile="${plugin.jar}" basedir="build">
     40            <manifest>
     41                <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
     42                <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
     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                <attribute name="Author"
     47           value="(originally) Martijn van Oosterhout &gt;kleptog@svana.org&gt;"/>
     48            </manifest>
     49        </jar>
     50    </target>
     51    <target name="clean">
     52        <delete dir="${plugin.build.dir}" />
     53        <delete file="${plugin.jar}" />
     54    </target>
     55    <target name="install" depends="dist">
     56        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     57    </target>
    6658</project>
  • applications/editors/josm/plugins/validator/build.xml

    r12777 r12780  
    11<project name="validator" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="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 
    11   <!-- point to your JOSM directory -->
    12   <property name="josm" location="../../core/dist/josm-custom.jar" />
    13 
    14   <property name="ant.build.javac.target" value="1.5"/>
    15  
    16   <target name="init">
    17     <mkdir dir="${plugin.build.dir}"/>
    18   </target>
    19 
    20   <target name="compile" depends="init">
    21     <echo message="creating ${plugin.jar}"/>
    22     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
    23       <include name="**/*.java" />
    24     </javac>
    25   </target>
    26 
    27   <target name="dist" depends="clean, compile">
    28     <copy todir="build/images">
    29       <fileset dir="images"/>
    30     </copy>
    31     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    32       <env key="LANG" value="C"/>
    33       <arg value="info"/>
    34       <arg value="--xml"/>
    35       <arg value="."/>
    36     </exec>
    37     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    38     <delete file="REVISION"/>
    39     <jar destfile="${plugin.jar}" basedir="build">
    40       <manifest>
    41         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
    42         <attribute name="Plugin-Description" value="A OSM data validator"/>
    43         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    44         <attribute name="Plugin-Mainversion" value="1200"/>
    45         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    46         <attribute name="Author" value="Francisco R. Santos"/>
    47       </manifest>
    48     </jar>
    49   </target>
    50 
    51   <!-- clean target -->
    52   <target name="clean">
    53     <delete dir="${plugin.build.dir}" />
    54     <delete file="${plugin.jar}" />
    55   </target>
    56 
    57   <target name="install" depends="dist">
    58     <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    59   </target>
    60 
    61   <target name="test" depends="install">
    62     <java jar="${josm}" fork="true">
    63     </java>
    64   </target>
    65 
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="plugin.build.dir" value="build"/>
     6    <property name="plugin.dist.dir"  value="../../dist"/>
     7    <property name="plugin.name"      value="${ant.project.name}"/>
     8    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     9<!-- point to your JOSM directory -->
     10    <property name="josm" location="../../core/dist/josm-custom.jar" />
     11    <property name="ant.build.javac.target" value="1.5"/>
     12    <target name="init">
     13        <mkdir dir="${plugin.build.dir}"/>
     14    </target>
     15    <target name="compile" depends="init">
     16        <echo message="creating ${plugin.jar}"/>
     17        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
     18            <include name="**/*.java" />
     19        </javac>
     20    </target>
     21    <target name="dist" depends="clean, compile">
     22        <copy todir="build/images">
     23            <fileset dir="images"/>
     24        </copy>
     25        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     26            <env key="LANG" value="C"/>
     27            <arg value="info"/>
     28            <arg value="--xml"/>
     29            <arg value="."/>
     30        </exec>
     31        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     32        <delete file="REVISION"/>
     33        <jar destfile="${plugin.jar}" basedir="build">
     34            <manifest>
     35                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
     36                <attribute name="Plugin-Description" value="A OSM data validator"/>
     37                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     38                <attribute name="Plugin-Mainversion" value="1200"/>
     39                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     40                <attribute name="Author" value="Francisco R. Santos"/>
     41            </manifest>
     42        </jar>
     43    </target>
     44<!-- clean target -->
     45    <target name="clean">
     46        <delete dir="${plugin.build.dir}" />
     47        <delete file="${plugin.jar}" />
     48    </target>
     49    <target name="install" depends="dist">
     50        <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
     51    </target>
     52    <target name="test" depends="install">
     53        <java jar="${josm}" fork="true"></java>
     54    </target>
    6655</project>
  • applications/editors/josm/plugins/waypoints/build.xml

    r12598 r12780  
    11<project name="waypoints" default="dist" basedir=".">
    2 
    3   <!-- compilation properties -->
    4   <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
    6   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    7   <property name="plugin.build.dir"     value="build"/>
    8   <property name="plugin.dist.dir"      value="../../dist"/>
    9   <property name="plugin.name"          value="${ant.project.name}"/>
    10   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    11 
    12   <!-- point to your JOSM directory -->
    13   <property name="josm" location="../../core/dist/josm-custom.jar" />
    14 
    15   <property name="ant.build.javac.target" value="1.5"/>
    16 
    17 
    18 
    19   <target name="init">
    20     <mkdir dir="build"></mkdir>
    21     <mkdir dir="dist"></mkdir>
    22   </target>
    23 
    24   <target name="compile" depends="init">
    25     <echo message="creating ${plugin.jar}"/>
    26     <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
    27       <compilerarg value="-Xlint:deprecation"/>
    28       <include name="**/*.java" />
    29     </javac>
    30   </target>
    31 
    32   <target name="dist" depends="compile">
    33     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    34       <env key="LANG" value="C"/>
    35       <arg value="info"/>
    36       <arg value="--xml"/>
    37       <arg value="."/>
    38     </exec>
    39     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    40     <delete file="REVISION"/>
    41     <jar destfile="${plugin.jar}" basedir="build">
    42       <manifest>
    43         <attribute name="Plugin-Class" value="waypoints.WaypointPlugin" />
    44         <attribute name="Plugin-Description" value="Automatic conversion of waypoints in a GPX file to OSM nodes." />
    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="1180" />
    48       </manifest>
    49     </jar>
    50   </target>
    51 
    52   <!-- clean target -->
    53   <target name="clean">
    54     <delete dir="${plugin.build.dir}" />
    55     <delete file="${plugin.jar}" />
    56   </target>
    57 
    58   <target name="install" depends="dist">
    59     <copy file="dist/waypoints.jar" todir="${user.home}/.josm/plugins"/>
    60   </target>
    61 
     2<!-- compilation properties -->
     3    <property name="josm.build.dir"   value="../../core"/>
     4    <property name="josm.home.dir"    value="${user.home}/.josm"/>
     5    <property name="josm"         location="../../core/dist/josm-custom.jar" />
     6    <property name="plugin.build.dir" value="build"/>
     7    <property name="plugin.dist.dir"  value="../../dist"/>
     8    <property name="plugin.name"      value="${ant.project.name}"/>
     9    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     10<!-- point to your JOSM directory -->
     11    <property name="josm" location="../../core/dist/josm-custom.jar" />
     12    <property name="ant.build.javac.target" value="1.5"/>
     13    <target name="init">
     14        <mkdir dir="build"></mkdir>
     15        <mkdir dir="dist"></mkdir>
     16    </target>
     17    <target name="compile" depends="init">
     18        <echo message="creating ${plugin.jar}"/>
     19        <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     20            <compilerarg value="-Xlint:deprecation"/>
     21            <include name="**/*.java" />
     22        </javac>
     23    </target>
     24    <target name="dist" depends="compile">
     25        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     26            <env key="LANG" value="C"/>
     27            <arg value="info"/>
     28            <arg value="--xml"/>
     29            <arg value="."/>
     30        </exec>
     31        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     32        <delete file="REVISION"/>
     33        <jar destfile="${plugin.jar}" basedir="build">
     34            <manifest>
     35                <attribute name="Plugin-Class" value="waypoints.WaypointPlugin" />
     36                <attribute name="Plugin-Description" value="Automatic conversion of waypoints in a GPX file to OSM nodes." />
     37                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     38                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     39                <attribute name="Plugin-Mainversion" value="1180" />
     40            </manifest>
     41        </jar>
     42    </target>
     43<!-- clean target -->
     44    <target name="clean">
     45        <delete dir="${plugin.build.dir}" />
     46        <delete file="${plugin.jar}" />
     47    </target>
     48    <target name="install" depends="dist">
     49        <copy file="dist/waypoints.jar" todir="${user.home}/.josm/plugins"/>
     50    </target>
    6251</project>
  • applications/editors/josm/plugins/wmsplugin/README

    r10382 r12780  
    1010
    1111This plugin has been created by tim <chippy2005@gmail.com>
    12 and has received major contributions from Frederik Ramm 
     12and has received major contributions from Frederik Ramm
    1313<frederik@remote.org>. It is based on the "Landsat" plugin
    1414by Nick Whitelegg <Nick.Whitelegg@solent.ac.uk> and includes
  • applications/editors/josm/plugins/wmsplugin/build.xml

    r12588 r12780  
    11<project name="wmsplugin" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <target name="init">
    23     <mkdir dir="build"></mkdir>
    24     <mkdir dir="dist"></mkdir>
    25   </target>
    26 
    27   <target name="compile" depends="init">
    28     <echo message="creating ${plugin.jar}"/>
    29     <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
    30       <compilerarg value="-Xlint:deprecation"/>
    31       <compilerarg value="-Xlint:unchecked"/>
    32       <include name="**/*.java" />
    33     </javac>
    34   </target>
    35 
    36   <target name="dist" depends="compile">
    37     <copy todir="${plugin.build.dir}/resources">
    38       <fileset dir="resources"/>
    39     </copy>
    40     <copy todir="build/images" >
    41       <fileset dir="images" />
    42     </copy>
    43     <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    44       <env key="LANG" value="C"/>
    45       <arg value="info"/>
    46       <arg value="--xml"/>
    47       <arg value="."/>
    48     </exec>
    49     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    50     <delete file="REVISION"/>
    51 
    52     <jar destfile="${plugin.jar}" basedir="build">
    53       <manifest>
    54         <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
    55         <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    56         <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    57         <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
    58         <attribute name="Plugin-Mainversion" value="1180" />
    59       </manifest>
    60     </jar>
    61   </target>
    62 
    63   <target name="clean">
    64     <delete dir="${plugin.build.dir}" />
    65     <delete file="${plugin.jar}" />
    66   </target>
    67  
    68   <target name="install" depends="dist">
    69     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    70   </target>
    71  
     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="ant.build.javac.target" value="1.5"/>
     18    <target name="init">
     19        <mkdir dir="build"></mkdir>
     20        <mkdir dir="dist"></mkdir>
     21    </target>
     22    <target name="compile" depends="init">
     23        <echo message="creating ${plugin.jar}"/>
     24        <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     25            <compilerarg value="-Xlint:deprecation"/>
     26            <compilerarg value="-Xlint:unchecked"/>
     27            <include name="**/*.java" />
     28        </javac>
     29    </target>
     30    <target name="dist" depends="compile">
     31        <copy todir="${plugin.build.dir}/resources">
     32            <fileset dir="resources"/>
     33        </copy>
     34        <copy todir="build/images" >
     35            <fileset dir="images" />
     36        </copy>
     37        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     38            <env key="LANG" value="C"/>
     39            <arg value="info"/>
     40            <arg value="--xml"/>
     41            <arg value="."/>
     42        </exec>
     43        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     44        <delete file="REVISION"/>
     45        <jar destfile="${plugin.jar}" basedir="build">
     46            <manifest>
     47                <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
     48                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     49                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     50                <attribute name="Plugin-Description" value="Allows external WMS resources to be displayed." />
     51                <attribute name="Plugin-Mainversion" value="1180" />
     52            </manifest>
     53        </jar>
     54    </target>
     55    <target name="clean">
     56        <delete dir="${plugin.build.dir}" />
     57        <delete file="${plugin.jar}" />
     58    </target>
     59    <target name="install" depends="dist">
     60        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     61    </target>
    7262</project>
  • applications/editors/josm/plugins/wmsplugin/resources/ymap.html

    r12491 r12780  
    99            url = url.substring(queryStringPos + 1);
    1010            var variables = url.split ("&");
    11             for (i = 0; i < variables.length; i++) 
     11            for (i = 0; i < variables.length; i++)
    1212            {
    1313                if( !variables[i] )
  • applications/editors/josm/plugins/wmsplugin/src/readme.txt

    r2121 r12780  
    22 Jcoord
    33 readme.txt
    4  
     4
    55 (c) 2006 Jonathan Stott
    6  
     6
    77 Created on 11-Feb-2006
    8  
     8
    99 1.0 - 11 Feb 2006
    1010  - Initial version created from PHPcoord v2.2
     
    1414various co-ordinate systems and converting between them. Currently, OSGB
    1515(Ordnance Survey of Great Britain) grid references, UTM (Universal Transverse
    16 Mercator) references and latitude/longitude are supported. A function is 
     16Mercator) references and latitude/longitude are supported. A function is
    1717also provided to find the surface distance between two points of latitude
    1818and longitude.
Note: See TracChangeset for help on using the changeset viewer.