Ignore:
Timestamp:
2012-10-14T15:25:54+02:00 (12 years ago)
Author:
stoecker
Message:

build script cleanups, i18n update

Location:
applications/editors/josm/plugins
Files:
13 added
276 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/00_plugin_dir_template

    • Property svn:ignore set to
      build
  • applications/editors/josm/plugins/00_plugin_dir_template/build.xml

    r28743 r28807  
    2929-->
    3030<project name="myPluginName" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4394"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.target" value="1.5"/>
    42     <property name="plugin.dist.dir" value="../../dist"/>
    43     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4437    <!--
    4538    **********************************************************
    46     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4740    **********************************************************
    4841    -->
    49     <target name="init">
    50         <mkdir dir="${plugin.build.dir}"/>
    51     </target>
    52     <!--
    53     **********************************************************
    54     ** compile - complies the source tree
    55     **********************************************************
    56     -->
    57     <target name="compile" depends="init">
    58         <echo message="compiling sources for  ${plugin.jar} ... "/>
    59         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    60             <compilerarg value="-Xlint:deprecation"/>
    61             <compilerarg value="-Xlint:unchecked"/>
    62         </javac>
    63     </target>
     42    <import file="../build-common.xml"/>
     43 
    6444    <!--
    6545    **********************************************************
     
    10585        </jar>
    10686    </target>
    107     <!--
    108     **********************************************************
    109     ** revision - extracts the current revision number for the
    110     **    file build.number and stores it in the XML property
    111     **    version.*
    112     **********************************************************
    113     -->
    114     <target name="revision">
    115         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    116             <env key="LANG" value="C"/>
    117             <arg value="info"/>
    118             <arg value="--xml"/>
    119             <arg value="."/>
    120         </exec>
    121         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    122         <delete file="REVISION"/>
    123     </target>
    124     <!--
    125     **********************************************************
    126     ** clean - clean up the build environment
    127     **********************************************************
    128     -->
    129     <target name="clean">
    130         <delete dir="${plugin.build.dir}"/>
    131         <delete file="${plugin.jar}"/>
    132     </target>
    133     <!--
    134     **********************************************************
    135     ** install - install the plugin in your local JOSM installation
    136     **********************************************************
    137     -->
    138     <target name="install" depends="dist">
    139         <property environment="env"/>
    140         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    141             <and>
    142                 <os family="windows"/>
    143             </and>
    144         </condition>
    145         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    146     </target>
    147     <!--
    148     ************************** Publishing the plugin ***********************************
    149     -->
    150     <!--
    151     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    152     ** property ${coreversion.info.entry.revision}
    153     -->
    154     <target name="core-info">
    155         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    156             <env key="LANG" value="C"/>
    157             <arg value="info"/>
    158             <arg value="--xml"/>
    159             <arg value="../../core"/>
    160         </exec>
    161         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    162         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    163         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    164         <delete file="core.info.xml"/>
    165     </target>
    166     <!-- commits the source tree for this plugin -->
    167     <target name="commit-current">
    168         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    169         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    170             <env key="LANG" value="C"/>
    171             <arg value="commit"/>
    172             <arg value="-m '${commit.message}'"/>
    173             <arg value="."/>
    174         </exec>
    175     </target>
    176     <!-- updates (svn up) the source tree for this plugin -->
    177     <target name="update-current">
    178         <echo>Updating plugin source ...</echo>
    179         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    180             <env key="LANG" value="C"/>
    181             <arg value="up"/>
    182             <arg value="."/>
    183         </exec>
    184         <echo>Updating ${plugin.jar} ...</echo>
    185         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    186             <env key="LANG" value="C"/>
    187             <arg value="up"/>
    188             <arg value="../dist/${plugin.jar}"/>
    189         </exec>
    190     </target>
    191     <!-- commits the plugin.jar -->
    192     <target name="commit-dist">
    193         <echo>
    194     ***** Properties of published ${plugin.jar} *****
    195     Commit message    : '${commit.message}'                   
    196     Plugin-Mainversion: ${plugin.main.version}
    197     JOSM build version: ${coreversion.info.entry.revision}
    198     Plugin-Version    : ${version.entry.commit.revision}
    199     ***** / Properties of published ${plugin.jar} *****                   
    200                        
    201     Now commiting ${plugin.jar} ...
    202     </echo>
    203         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    204             <env key="LANG" value="C"/>
    205             <arg value="-m '${commit.message}'"/>
    206             <arg value="commit"/>
    207             <arg value="${plugin.jar}"/>
    208         </exec>
    209     </target>
    210     <!-- make sure svn is present as a command line tool -->
    211     <target name="ensure-svn-present">
    212         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    213             <env key="LANG" value="C"/>
    214             <arg value="--version"/>
    215         </exec>
    216         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    217             <!-- return code not set at all? Most likely svn isn't installed -->
    218             <condition>
    219                 <not>
    220                     <isset property="svn.exit.code"/>
    221                 </not>
    222             </condition>
    223         </fail>
    224         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    225             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    226             <condition>
    227                 <isfailure code="${svn.exit.code}"/>
    228             </condition>
    229         </fail>
    230     </target>
    231     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    232     </target>
    23387</project>
  • applications/editors/josm/plugins/build-common.xml

    r28400 r28807  
    1919    <!-- this is the directory where the plugin jar is copied to -->
    2020    <property name="plugin.dist.dir"        value="../../dist"/>
    21     <property name="ant.build.javac.target" value="1.5"/>
     21    <property name="ant.build.javac.target" value="1.6"/>
     22    <property name="ant.build.javac.source" value="1.6"/>
    2223    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    2324
     
    3738    <target name="compile" depends="init">
    3839        <echo message="compiling sources for ${plugin.jar} ..."/>
    39         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
     40        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    4041            <compilerarg value="-Xlint:deprecation"/>
    4142            <compilerarg value="-Xlint:unchecked"/>
     
    5758        </exec>
    5859        <xmlproperty prefix="version" keepRoot="false" collapseAttributes="true">
    59           <propertyresource name="svn.revision.output"/>
    60         </xmlproperty>
     60            <propertyresource name="svn.revision.output"/>
     61        </xmlproperty>
    6162    </target>
    6263    <!--
     
    176177        </fail>
    177178    </target>
     179
    178180    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     181    </target>
     182
     183    <target name="runjosm" depends="install">
     184        <java jar="${josm}" fork="true">
     185        </java>
     186    </target>
     187
     188    <target name="profilejosm" depends="install">
     189        <nbprofiledirect>
     190        </nbprofiledirect>
     191        <java jar="${josm}" fork="true">
     192            <jvmarg value="${profiler.info.jvmargs.agent}"/>
     193        </java>
    179194    </target>
    180195</project>
  • applications/editors/josm/plugins/build.xml

    r28596 r28807  
    3232        <ant antfile="build.xml" target="dist" dir="geotools"/>
    3333        <ant antfile="build.xml" target="dist" dir="globalsat"/>
     34        <ant antfile="build.xml" target="dist" dir="gpsblam"/>
    3435        <ant antfile="build.xml" target="dist" dir="gpxfilter"/>
    3536        <ant antfile="build.xml" target="dist" dir="graphview"/>
     
    5657        <ant antfile="build.xml" target="dist" dir="native-password-manager"/>
    5758        <ant antfile="build.xml" target="dist" dir="nearclick"/>
     59        <ant antfile="build.xml" target="dist" dir="no_more_mapping"/>
    5860        <ant antfile="build.xml" target="dist" dir="OpeningHoursEditor"/>
    5961        <ant antfile="build.xml" target="dist" dir="opendata"/>
     
    6163        <ant antfile="build.xml" target="dist" dir="openvisible"/>
    6264        <ant antfile="build.xml" target="dist" dir="osmarender"/>
    63         <ant antfile="build.xml" target="dist" dir="pbf"/>
    6465        <ant antfile="build.xml" target="dist" dir="pdfimport"/>
    6566        <ant antfile="build.xml" target="dist" dir="photo_geotagging"/>
    6667        <ant antfile="build.xml" target="dist" dir="piclayer"/>
    6768        <ant antfile="build.xml" target="dist" dir="plastic_laf"/>
     69        <ant antfile="build.xml" target="dist" dir="poly"/>
    6870        <ant antfile="build.xml" target="dist" dir="print"/>
    6971        <ant antfile="build.xml" target="dist" dir="proj4j"/>
     
    99101    <target name="build_defect" depends="compile">
    100102        <ant antfile="build.xml" target="dist" dir="trustosm"/>
     103        <ant antfile="build.xml" target="dist" dir="pbf"/>
    101104    </target>
    102105    <target name="clean">
     106        <ant antfile="build.xml" target="clean" dir="00_plugin_dir_template"/>
    103107        <ant antfile="build.xml" target="clean" dir="addrinterpolation"/>
    104108        <ant antfile="build.xml" target="clean" dir="alignways"/>
     
    123127        <ant antfile="build.xml" target="clean" dir="geotools"/>
    124128        <ant antfile="build.xml" target="clean" dir="globalsat"/>
     129        <ant antfile="build.xml" target="clean" dir="gpsblam"/>
    125130        <ant antfile="build.xml" target="clean" dir="gpxfilter"/>
    126131        <ant antfile="build.xml" target="clean" dir="graphview"/>
     
    147152        <ant antfile="build.xml" target="clean" dir="native-password-manager"/>
    148153        <ant antfile="build.xml" target="clean" dir="nearclick"/>
     154        <ant antfile="build.xml" target="clean" dir="no_more_mapping"/>
    149155        <ant antfile="build.xml" target="clean" dir="OpeningHoursEditor"/>
    150156        <ant antfile="build.xml" target="clean" dir="opendata"/>
     
    157163        <ant antfile="build.xml" target="clean" dir="piclayer"/>
    158164        <ant antfile="build.xml" target="clean" dir="plastic_laf"/>
     165        <ant antfile="build.xml" target="clean" dir="poly"/>
    159166        <ant antfile="build.xml" target="clean" dir="print"/>
    160167        <ant antfile="build.xml" target="clean" dir="proj4j"/>
  • applications/editors/josm/plugins/gpsblam

    • Property svn:ignore set to
      build
  • applications/editors/josm/plugins/gpsblam/build.xml

    r28744 r28807  
    2929-->
    3030<project name="gpsblam" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4394"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.target" value="1.5"/>
    42     <property name="plugin.dist.dir" value="../../dist"/>
    43     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4437    <!--
    4538    **********************************************************
    46     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4740    **********************************************************
    4841    -->
    49     <target name="init">
    50         <mkdir dir="${plugin.build.dir}"/>
    51     </target>
    52     <!--
    53     **********************************************************
    54     ** compile - complies the source tree
    55     **********************************************************
    56     -->
    57     <target name="compile" depends="init">
    58         <echo message="compiling sources for  ${plugin.jar} ... "/>
    59         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    60             <compilerarg value="-Xlint:deprecation"/>
    61             <compilerarg value="-Xlint:unchecked"/>
    62         </javac>
    63     </target>
     42    <import file="../build-common.xml"/>
     43 
    6444    <!--
    6545    **********************************************************
     
    10585        </jar>
    10686    </target>
    107     <!--
    108     **********************************************************
    109     ** revision - extracts the current revision number for the
    110     **    file build.number and stores it in the XML property
    111     **    version.*
    112     **********************************************************
    113     -->
    114     <target name="revision">
    115         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    116             <env key="LANG" value="C"/>
    117             <arg value="info"/>
    118             <arg value="--xml"/>
    119             <arg value="."/>
    120         </exec>
    121         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    122         <delete file="REVISION"/>
    123     </target>
    124     <!--
    125     **********************************************************
    126     ** clean - clean up the build environment
    127     **********************************************************
    128     -->
    129     <target name="clean">
    130         <delete dir="${plugin.build.dir}"/>
    131         <delete file="${plugin.jar}"/>
    132     </target>
    133     <!--
    134     **********************************************************
    135     ** install - install the plugin in your local JOSM installation
    136     **********************************************************
    137     -->
    138     <target name="install" depends="dist">
    139         <property environment="env"/>
    140         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    141             <and>
    142                 <os family="windows"/>
    143             </and>
    144         </condition>
    145         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    146     </target>
    147     <!--
    148     ************************** Publishing the plugin ***********************************
    149     -->
    150     <!--
    151     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    152     ** property ${coreversion.info.entry.revision}
    153     -->
    154     <target name="core-info">
    155         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    156             <env key="LANG" value="C"/>
    157             <arg value="info"/>
    158             <arg value="--xml"/>
    159             <arg value="../../core"/>
    160         </exec>
    161         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    162         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    163         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    164         <delete file="core.info.xml"/>
    165     </target>
    166     <!-- commits the source tree for this plugin -->
    167     <target name="commit-current">
    168         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    169         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    170             <env key="LANG" value="C"/>
    171             <arg value="commit"/>
    172             <arg value="-m '${commit.message}'"/>
    173             <arg value="."/>
    174         </exec>
    175     </target>
    176     <!-- updates (svn up) the source tree for this plugin -->
    177     <target name="update-current">
    178         <echo>Updating plugin source ...</echo>
    179         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    180             <env key="LANG" value="C"/>
    181             <arg value="up"/>
    182             <arg value="."/>
    183         </exec>
    184         <echo>Updating ${plugin.jar} ...</echo>
    185         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    186             <env key="LANG" value="C"/>
    187             <arg value="up"/>
    188             <arg value="../dist/${plugin.jar}"/>
    189         </exec>
    190     </target>
    191     <!-- commits the plugin.jar -->
    192     <target name="commit-dist">
    193         <echo>
    194     ***** Properties of published ${plugin.jar} *****
    195     Commit message    : '${commit.message}'                   
    196     Plugin-Mainversion: ${plugin.main.version}
    197     JOSM build version: ${coreversion.info.entry.revision}
    198     Plugin-Version    : ${version.entry.commit.revision}
    199     ***** / Properties of published ${plugin.jar} *****                   
    200                        
    201     Now commiting ${plugin.jar} ...
    202     </echo>
    203         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    204             <env key="LANG" value="C"/>
    205             <arg value="-m '${commit.message}'"/>
    206             <arg value="commit"/>
    207             <arg value="${plugin.jar}"/>
    208         </exec>
    209     </target>
    210     <!-- make sure svn is present as a command line tool -->
    211     <target name="ensure-svn-present">
    212         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    213             <env key="LANG" value="C"/>
    214             <arg value="--version"/>
    215         </exec>
    216         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    217             <!-- return code not set at all? Most likely svn isn't installed -->
    218             <condition>
    219                 <not>
    220                     <isset property="svn.exit.code"/>
    221                 </not>
    222             </condition>
    223         </fail>
    224         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    225             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    226             <condition>
    227                 <isfailure code="${svn.exit.code}"/>
    228             </condition>
    229         </fail>
    230     </target>
    231     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    232     </target>
    23387</project>
  • applications/editors/josm/plugins/mapdust

    • Property svn:ignore
      •  

        old new  
        11build
         2doc
  • applications/editors/josm/plugins/mapdust/build.xml

    r27852 r28807  
    44    <property name="commit.message" value="MapDust bug reporter plugin"/>
    55    <property name="plugin.main.version" value="4980"/>
    6     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    7     <property name="plugin.build.dir" value="build/classes"/>
    8     <property name="apidoc.dir" value="build/doc"/>
    9     <property name="plugin.src.dir" value="src"/>
    10     <property name="plugin.lib.dir" value="lib"/>
    11     <property name="plugin.dist.dir" value="../../dist"/>
    12     <property name="ant.build.javac.target" value="1.5"/>
    13     <property name="plugin.dist.dir" value="../../dist"/>
    14     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     6
     7    <property name="apidoc.dir" value="doc"/>
     8
     9    <!--
     10    **********************************************************
     11    ** include targets that all plugins have in common
     12    **********************************************************
     13    -->
     14    <import file="../build-common.xml"/>
     15 
    1516    <!-- classpath -->
    1617    <path id="classpath">
     
    1819        <pathelement path="${josm}"/>
    1920    </path>
    20     <!-- clean the build -->
    21     <target name="clean">
    22         <delete dir="${plugin.build.dir}"/>
    23         <delete file="${plugin.jar}"/>
    24     </target>
    25     <!-- initialize the build -->
    26     <target name="init" depends="clean">
    27         <mkdir dir="${plugin.build.dir}"/>
    28     </target>
    29     <!-- compiles the sources -->
     21
     22    <!--
     23    **********************************************************
     24    ** compile - complies the source tree
     25    **********************************************************
     26    -->
    3027    <target name="compile" depends="init">
    31         <echo message="compiling sources for  ${plugin.jar} ... "/>
    32         <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="true" target="1.5" source="1.5">
     28        <echo message="compiling sources for ${plugin.jar} ..."/>
     29        <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    3330            <compilerarg value="-Xlint:deprecation"/>
    3431            <compilerarg value="-Xlint:unchecked"/>
    3532        </javac>
    3633    </target>
     34
     35    <target name="clean">
     36        <delete dir="${plugin.build.dir}"/>
     37        <delete dir="${apidoc.dir}"/>
     38        <delete file="${plugin.jar}"/>
     39    </target>
     40
    3741    <!-- creates the javadocs -->
    3842    <target name="javadoc">
     
    4549        </javadoc>
    4650    </target>
    47     <!-- revision -->
    48     <target name="revision">
    49         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    50             <env key="LANG" value="C"/>
    51             <arg value="info"/>
    52             <arg value="--xml"/>
    53             <arg value="."/>
    54         </exec>
    55         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    56         <delete file="REVISION"/>
    57     </target>
     51
    5852    <!-- creates the .jar file of the plugin -->
    5953    <target name="dist" depends="compile,revision">
     
    8074                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin"/>
    8175                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    82                 <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on       the map. You can create, close,invalidate, re-open and comment      bug reports by using this plugin."/>
     76                <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on the map. You can create, close,invalidate, re-open and comment bug reports by using this plugin."/>
    8377                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/>
    8478                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
     
    8882        </jar>
    8983    </target>
    90     <!-- installs the plugin  -->
    91     <target name="install" depends="dist">
    92         <property environment="env"/>
    93         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    94             <and>
    95                 <os family="windows"/>
    96             </and>
    97         </condition>
    98         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    99     </target>
    100     <!-- displays the information about the core josm -->
    101     <target name="core-info">
    102         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    103             <env key="LANG" value="C"/>
    104             <arg value="info"/>
    105             <arg value="--xml"/>
    106             <arg value="../../core"/>
    107         </exec>
    108         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    109         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    110         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    111         <delete file="core.info.xml"/>
    112     </target>
    113     <!-- commits the current sources -->
    114     <target name="commit-current">
    115         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    116         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    117             <env key="LANG" value="C"/>
    118             <arg value="commit"/>
    119             <arg value="-m '${commit.message}'"/>
    120             <arg value="."/>
    121         </exec>
    122     </target>
    123     <!-- updates the plugin -->
    124     <target name="update-current">
    125         <echo>Updating plugin source ...</echo>
    126         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    127             <env key="LANG" value="C"/>
    128             <arg value="up"/>
    129             <arg value="."/>
    130         </exec>
    131         <echo>Updating ${plugin.jar} ...</echo>
    132         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    133             <env key="LANG" value="C"/>
    134             <arg value="up"/>
    135             <arg value="../dist/${plugin.jar}"/>
    136         </exec>
    137     </target>
    138     <!-- commit the .jar of the plugin -->
    139     <target name="commit-dist">
    140         <echo>
    141     ***** Properties of published ${plugin.jar} *****
    142     Commit message    : '${commit.message}'                   
    143     Plugin-Mainversion: ${plugin.main.version}
    144     JOSM build version: ${coreversion.info.entry.revision}
    145     Plugin-Version    : ${version.entry.commit.revision}
    146     ***** / Properties of published ${plugin.jar} *****                   
    147                        
    148     Now commiting ${plugin.jar} ...
    149     </echo>
    150         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    151             <env key="LANG" value="C"/>
    152             <arg value="-m '${commit.message}'"/>
    153             <arg value="commit"/>
    154             <arg value="${plugin.jar}"/>
    155         </exec>
    156     </target>
    157     <!-- ** make sure svn is present as a command line tool ** -->
    158     <target name="ensure-svn-present">
    159         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    160             <env key="LANG" value="C"/>
    161             <arg value="--version"/>
    162         </exec>
    163         <fail message="Fatal: command 'svn --version' failed. Please make sure     svn is installed on your system.">
    164             <!-- return code not set at all? Most likely svn isn't installed -->
    165             <condition>
    166                 <not>
    167                     <isset property="svn.exit.code"/>
    168                 </not>
    169             </condition>
    170         </fail>
    171         <fail message="Fatal: command 'svn --version' failed. Please make sure     a working copy of svn is installed on your system.">
    172             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    173             <condition>
    174                 <isfailure code="${svn.exit.code}"/>
    175             </condition>
    176         </fail>
    177     </target>
    178     <!-- publish the plugin -->
    179     <target name="publish" depends="ensure-svn-present,core-info,commit-current,   update-current,clean,dist,commit-dist">
    180     </target>
    18184</project>
  • applications/editors/josm/plugins/no_more_mapping

    • Property svn:ignore set to
      build
  • applications/editors/josm/plugins/no_more_mapping/build.xml

    • Property svn:mime-type changed from application/xml to text/xml
    r28783 r28807  
    2929-->
    3030<project name="no_more_mapping" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4000"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.source" value="1.6"/>
    42     <property name="ant.build.javac.target" value="1.6"/>
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4537    <!--
    4638    **********************************************************
    47     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4840    **********************************************************
    4941    -->
    50     <target name="init">
    51         <mkdir dir="${plugin.build.dir}"/>
    52     </target>
    53     <!--
    54     **********************************************************
    55     ** compile - complies the source tree
    56     **********************************************************
    57     -->
    58     <target name="compile" depends="init">
    59         <echo message="compiling sources for  ${plugin.jar} ... "/>
    60         <javac classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false">
    61             <compilerarg value="-Xlint:deprecation"/>
    62             <compilerarg value="-Xlint:unchecked"/>
    63                 <src path="src" />
    64         </javac>
    65     </target>
     42    <import file="../build-common.xml"/>
     43
    6644    <!--
    6745    **********************************************************
     
    10785        </jar>
    10886    </target>
    109     <!--
    110     **********************************************************
    111     ** revision - extracts the current revision number for the
    112     **    file build.number and stores it in the XML property
    113     **    version.*
    114     **********************************************************
    115     -->
    116     <target name="revision">
    117         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    118             <env key="LANG" value="C"/>
    119             <arg value="info"/>
    120             <arg value="--xml"/>
    121             <arg value="."/>
    122         </exec>
    123         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    124         <delete file="REVISION"/>
    125     </target>
    126     <!--
    127     **********************************************************
    128     ** clean - clean up the build environment
    129     **********************************************************
    130     -->
    131     <target name="clean">
    132         <delete dir="${plugin.build.dir}"/>
    133         <delete file="${plugin.jar}"/>
    134     </target>
    135     <!--
    136     **********************************************************
    137     ** install - install the plugin in your local JOSM installation
    138     **********************************************************
    139     -->
    140     <target name="install" depends="dist">
    141         <property environment="env"/>
    142         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    143             <and>
    144                 <os family="windows"/>
    145             </and>
    146         </condition>
    147         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    148     </target>
    149     <!--
    150     ************************** Publishing the plugin ***********************************
    151     -->
    152     <!--
    153     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    154     ** property ${coreversion.info.entry.revision}
    155     -->
    156     <target name="core-info">
    157         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    158             <env key="LANG" value="C"/>
    159             <arg value="info"/>
    160             <arg value="--xml"/>
    161             <arg value="../../core"/>
    162         </exec>
    163         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    164         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    165         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    166         <delete file="core.info.xml"/>
    167     </target>
    168     <!-- commits the source tree for this plugin -->
    169     <target name="commit-current">
    170         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    171         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    172             <env key="LANG" value="C"/>
    173             <arg value="commit"/>
    174             <arg value="-m '${commit.message}'"/>
    175             <arg value="."/>
    176         </exec>
    177     </target>
    178     <!-- updates (svn up) the source tree for this plugin -->
    179     <target name="update-current">
    180         <echo>Updating plugin source ...</echo>
    181         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    182             <env key="LANG" value="C"/>
    183             <arg value="up"/>
    184             <arg value="."/>
    185         </exec>
    186         <echo>Updating ${plugin.jar} ...</echo>
    187         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    188             <env key="LANG" value="C"/>
    189             <arg value="up"/>
    190             <arg value="../dist/${plugin.jar}"/>
    191         </exec>
    192     </target>
    193     <!-- commits the plugin.jar -->
    194     <target name="commit-dist">
    195         <echo>
    196     ***** Properties of published ${plugin.jar} *****
    197     Commit message    : '${commit.message}'                   
    198     Plugin-Mainversion: ${plugin.main.version}
    199     JOSM build version: ${coreversion.info.entry.revision}
    200     Plugin-Version    : ${version.entry.commit.revision}
    201     ***** / Properties of published ${plugin.jar} *****                   
    202                        
    203     Now commiting ${plugin.jar} ...
    204     </echo>
    205         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    206             <env key="LANG" value="C"/>
    207             <arg value="-m '${commit.message}'"/>
    208             <arg value="commit"/>
    209             <arg value="${plugin.jar}"/>
    210         </exec>
    211     </target>
    212     <!-- make sure svn is present as a command line tool -->
    213     <target name="ensure-svn-present">
    214         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    215             <env key="LANG" value="C"/>
    216             <arg value="--version"/>
    217         </exec>
    218         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    219             <!-- return code not set at all? Most likely svn isn't installed -->
    220             <condition>
    221                 <not>
    222                     <isset property="svn.exit.code"/>
    223                 </not>
    224             </condition>
    225         </fail>
    226         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    227             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    228             <condition>
    229                 <isfailure code="${svn.exit.code}"/>
    230             </condition>
    231         </fail>
    232     </target>
    233     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    234     </target>
    23587</project>
  • applications/editors/josm/plugins/pbf/build.xml

    r27300 r28807  
    2929-->
    3030<project name="pbf" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4687"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.source" value="1.6"/>
    42     <property name="ant.build.javac.target" value="1.6"/>
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4537    <!--
    4638    **********************************************************
    47     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4840    **********************************************************
    4941    -->
    50     <target name="init">
    51         <mkdir dir="${plugin.build.dir}"/>
    52     </target>
     42    <import file="../build-common.xml"/>
     43 
    5344    <!--
    5445    **********************************************************
     
    6152            <compilerarg value="-Xlint:deprecation"/>
    6253            <compilerarg value="-Xlint:unchecked"/>
    63                 <src path="src" />
     54            <src path="src" />
    6455            <src path="gen" />
    6556        </javac>
     
    109100        </jar>
    110101    </target>
    111     <!--
    112     **********************************************************
    113     ** revision - extracts the current revision number for the
    114     **    file build.number and stores it in the XML property
    115     **    version.*
    116     **********************************************************
    117     -->
    118     <target name="revision">
    119         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    120             <env key="LANG" value="C"/>
    121             <arg value="info"/>
    122             <arg value="--xml"/>
    123             <arg value="."/>
    124         </exec>
    125         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    126         <delete file="REVISION"/>
    127     </target>
    128     <!--
    129     **********************************************************
    130     ** clean - clean up the build environment
    131     **********************************************************
    132     -->
    133     <target name="clean">
    134         <delete dir="${plugin.build.dir}"/>
    135         <delete file="${plugin.jar}"/>
    136     </target>
    137     <!--
    138     **********************************************************
    139     ** install - install the plugin in your local JOSM installation
    140     **********************************************************
    141     -->
    142     <target name="install" depends="dist">
    143         <property environment="env"/>
    144         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    145             <and>
    146                 <os family="windows"/>
    147             </and>
    148         </condition>
    149         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    150     </target>
    151     <!--
    152     ************************** Publishing the plugin ***********************************
    153     -->
    154     <!--
    155     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    156     ** property ${coreversion.info.entry.revision}
    157     -->
    158     <target name="core-info">
    159         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    160             <env key="LANG" value="C"/>
    161             <arg value="info"/>
    162             <arg value="--xml"/>
    163             <arg value="../../core"/>
    164         </exec>
    165         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    166         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    167         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    168         <delete file="core.info.xml"/>
    169     </target>
    170     <!-- commits the source tree for this plugin -->
    171     <target name="commit-current">
    172         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    173         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    174             <env key="LANG" value="C"/>
    175             <arg value="commit"/>
    176             <arg value="-m '${commit.message}'"/>
    177             <arg value="."/>
    178         </exec>
    179     </target>
    180     <!-- updates (svn up) the source tree for this plugin -->
    181     <target name="update-current">
    182         <echo>Updating plugin source ...</echo>
    183         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    184             <env key="LANG" value="C"/>
    185             <arg value="up"/>
    186             <arg value="."/>
    187         </exec>
    188         <echo>Updating ${plugin.jar} ...</echo>
    189         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    190             <env key="LANG" value="C"/>
    191             <arg value="up"/>
    192             <arg value="../dist/${plugin.jar}"/>
    193         </exec>
    194     </target>
    195     <!-- commits the plugin.jar -->
    196     <target name="commit-dist">
    197         <echo>
    198     ***** Properties of published ${plugin.jar} *****
    199     Commit message    : '${commit.message}'                   
    200     Plugin-Mainversion: ${plugin.main.version}
    201     JOSM build version: ${coreversion.info.entry.revision}
    202     Plugin-Version    : ${version.entry.commit.revision}
    203     ***** / Properties of published ${plugin.jar} *****                   
    204                        
    205     Now commiting ${plugin.jar} ...
    206     </echo>
    207         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    208             <env key="LANG" value="C"/>
    209             <arg value="-m '${commit.message}'"/>
    210             <arg value="commit"/>
    211             <arg value="${plugin.jar}"/>
    212         </exec>
    213     </target>
    214     <!-- make sure svn is present as a command line tool -->
    215     <target name="ensure-svn-present">
    216         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    217             <env key="LANG" value="C"/>
    218             <arg value="--version"/>
    219         </exec>
    220         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    221             <!-- return code not set at all? Most likely svn isn't installed -->
    222             <condition>
    223                 <not>
    224                     <isset property="svn.exit.code"/>
    225                 </not>
    226             </condition>
    227         </fail>
    228         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    229             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    230             <condition>
    231                 <isfailure code="${svn.exit.code}"/>
    232             </condition>
    233         </fail>
    234     </target>
    235     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    236     </target>
    237102</project>
  • applications/editors/josm/plugins/smed/build.xml

    r27945 r28807  
    136136    <target name="clean">
    137137        <delete dir="${plugin.build.dir}"/>
     138        <delete dir="${smed_core.dist.dir}"/>
     139        <delete dir="${smed.dist.dir}"/>
    138140        <delete file="${plugin.jar}"/>
    139141    </target>
  • applications/editors/josm/plugins/tag2link/build.xml

    r27857 r28807  
    2929-->
    3030<project name="tag2link" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4968"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.source" value="1.6"/>
    42     <property name="ant.build.javac.target" value="1.6"/>
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4537    <!--
    4638    **********************************************************
    47     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4840    **********************************************************
    4941    -->
    50     <target name="init">
    51         <mkdir dir="${plugin.build.dir}"/>
    52     </target>
    53     <!--
    54     **********************************************************
    55     ** compile - complies the source tree
    56     **********************************************************
    57     -->
    58     <target name="compile" depends="init">
    59         <echo message="compiling sources for  ${plugin.jar} ... "/>
    60         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false">
    61             <compilerarg value="-Xlint:deprecation"/>
    62             <compilerarg value="-Xlint:unchecked"/>
    63         </javac>
    64     </target>
     42    <import file="../build-common.xml"/>
     43
    6544    <!--
    6645    **********************************************************
     
    10887        </jar>
    10988    </target>
    110     <!--
    111     **********************************************************
    112     ** revision - extracts the current revision number for the
    113     **    file build.number and stores it in the XML property
    114     **    version.*
    115     **********************************************************
    116     -->
    117     <target name="revision">
    118         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    119             <env key="LANG" value="C"/>
    120             <arg value="info"/>
    121             <arg value="--xml"/>
    122             <arg value="."/>
    123         </exec>
    124         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    125         <delete file="REVISION"/>
    126     </target>
    127     <!--
    128     **********************************************************
    129     ** clean - clean up the build environment
    130     **********************************************************
    131     -->
    132     <target name="clean">
    133         <delete dir="${plugin.build.dir}"/>
    134         <delete file="${plugin.jar}"/>
    135     </target>
    136     <!--
    137     **********************************************************
    138     ** install - install the plugin in your local JOSM installation
    139     **********************************************************
    140     -->
    141     <target name="install" depends="dist">
    142         <property environment="env"/>
    143         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    144             <and>
    145                 <os family="windows"/>
    146             </and>
    147         </condition>
    148         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    149     </target>
    150     <!--
    151     ************************** Publishing the plugin ***********************************
    152     -->
    153     <!--
    154     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    155     ** property ${coreversion.info.entry.revision}
    156     -->
    157     <target name="core-info">
    158         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    159             <env key="LANG" value="C"/>
    160             <arg value="info"/>
    161             <arg value="--xml"/>
    162             <arg value="../../core"/>
    163         </exec>
    164         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    165         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    166         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    167         <delete file="core.info.xml"/>
    168     </target>
    169     <!-- commits the source tree for this plugin -->
    170     <target name="commit-current">
    171         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    172         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    173             <env key="LANG" value="C"/>
    174             <arg value="commit"/>
    175             <arg value="-m '${commit.message}'"/>
    176             <arg value="."/>
    177         </exec>
    178     </target>
    179     <!-- updates (svn up) the source tree for this plugin -->
    180     <target name="update-current">
    181         <echo>Updating plugin source ...</echo>
    182         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    183             <env key="LANG" value="C"/>
    184             <arg value="up"/>
    185             <arg value="."/>
    186         </exec>
    187         <echo>Updating ${plugin.jar} ...</echo>
    188         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    189             <env key="LANG" value="C"/>
    190             <arg value="up"/>
    191             <arg value="../dist/${plugin.jar}"/>
    192         </exec>
    193     </target>
    194     <!-- commits the plugin.jar -->
    195     <target name="commit-dist">
    196         <echo>
    197     ***** Properties of published ${plugin.jar} *****
    198     Commit message    : '${commit.message}'
    199     Plugin-Mainversion: ${plugin.main.version}
    200     JOSM build version: ${coreversion.info.entry.revision}
    201     Plugin-Version    : ${version.entry.commit.revision}
    202     ***** / Properties of published ${plugin.jar} *****
    203 
    204     Now commiting ${plugin.jar} ...
    205     </echo>
    206         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    207             <env key="LANG" value="C"/>
    208             <arg value="-m '${commit.message}'"/>
    209             <arg value="commit"/>
    210             <arg value="${plugin.jar}"/>
    211         </exec>
    212     </target>
    213     <!-- make sure svn is present as a command line tool -->
    214     <target name="ensure-svn-present">
    215         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    216             <env key="LANG" value="C"/>
    217             <arg value="--version"/>
    218         </exec>
    219         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    220             <!-- return code not set at all? Most likely svn isn't installed -->
    221             <condition>
    222                 <not>
    223                     <isset property="svn.exit.code"/>
    224                 </not>
    225             </condition>
    226         </fail>
    227         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    228             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    229             <condition>
    230                 <isfailure code="${svn.exit.code}"/>
    231             </condition>
    232         </fail>
    233     </target>
    234     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    235     </target>
    23689</project>
  • applications/editors/josm/plugins/turnlanes/build.xml

    r27927 r28807  
    2929-->
    3030<project name="turnlanes" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="fix toolbar warnings - toolbar still does not work"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="5018"/>
    35     <!--
    36       ************************************************
    37       ** should not be necessary to change the following properties
    38      -->
    39     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    40     <property name="plugin.build.dir" value="build"/>
    41     <property name="plugin.src.dir" value="src"/>
    42     <!-- this is the directory where the plugin jar is copied to -->
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="ant.build.javac.target" value="1.5"/>
    45     <property name="plugin.dist.dir" value="../../dist"/>
    46     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4737    <!--
    4838    **********************************************************
    49     ** init - initializes the build
     39    ** include targets that all plugins have in common
    5040    **********************************************************
    5141    -->
    52     <target name="init">
    53         <mkdir dir="${plugin.build.dir}"/>
    54     </target>
    55     <!--
    56     **********************************************************
    57     ** compile - complies the source tree
    58     **********************************************************
    59     -->
    60     <target name="compile" depends="init">
    61         <echo message="compiling sources for  ${plugin.jar} ... "/>
    62         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    63             <compilerarg value="-Xlint:deprecation"/>
    64             <compilerarg value="-Xlint:unchecked"/>
    65         </javac>
    66     </target>
     42    <import file="../build-common.xml"/>
     43
    6744    <!--
    6845    **********************************************************
     
    8865        </copy>
    8966        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    90             <!--
     67        <!--
    9168        ************************************************
    9269        ** configure these properties. Most of them will be copied to the plugins
     
    9572        **
    9673        ************************************************
    97     -->
     74        -->
    9875            <manifest>
    9976                <attribute name="Author" value="Benjamin Schulz"/>
     
    10885        </jar>
    10986    </target>
    110     <!--
    111     **********************************************************
    112     ** revision - extracts the current revision number for the
    113     **    file build.number and stores it in the XML property
    114     **    version.*
    115     **********************************************************
    116     -->
    117     <target name="revision">
    118         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    119             <env key="LANG" value="C"/>
    120             <arg value="info"/>
    121             <arg value="--xml"/>
    122             <arg value="."/>
    123         </exec>
    124         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    125         <delete file="REVISION"/>
    126     </target>
    127     <!--
    128     **********************************************************
    129     ** clean - clean up the build environment
    130     **********************************************************
    131     -->
    132     <target name="clean">
    133         <delete dir="${plugin.build.dir}"/>
    134         <delete file="${plugin.jar}"/>
    135     </target>
    136     <!--
    137     **********************************************************
    138     ** install - install the plugin in your local JOSM installation
    139     **********************************************************
    140     -->
    141     <target name="install" depends="dist">
    142         <property environment="env"/>
    143         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    144             <and>
    145                 <os family="windows"/>
    146             </and>
    147         </condition>
    148         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    149     </target>
    150     <!--
    151     ************************** Publishing the plugin ***********************************
    152     -->
    153     <!--
    154         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    155         ** property ${coreversion.info.entry.revision}
    156         **
    157         -->
    158     <target name="core-info">
    159         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    160             <env key="LANG" value="C"/>
    161             <arg value="info"/>
    162             <arg value="--xml"/>
    163             <arg value="../../core"/>
    164         </exec>
    165         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    166         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    167         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    168         <delete file="core.info.xml"/>
    169     </target>
    170     <!--
    171         ** commits the source tree for this plugin
    172         -->
    173     <target name="commit-current">
    174         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    175         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    176             <env key="LANG" value="C"/>
    177             <arg value="commit"/>
    178             <arg value="-m '${commit.message}'"/>
    179             <arg value="."/>
    180         </exec>
    181     </target>
    182     <!--
    183         ** updates (svn up) the source tree for this plugin
    184         -->
    185     <target name="update-current">
    186         <echo>Updating plugin source ...</echo>
    187         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    188             <env key="LANG" value="C"/>
    189             <arg value="up"/>
    190             <arg value="."/>
    191         </exec>
    192         <echo>Updating ${plugin.jar} ...</echo>
    193         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    194             <env key="LANG" value="C"/>
    195             <arg value="up"/>
    196             <arg value="../dist/${plugin.jar}"/>
    197         </exec>
    198     </target>
    199     <!--
    200         ** commits the plugin.jar
    201         -->
    202     <target name="commit-dist">
    203         <echo>
    204     ***** Properties of published ${plugin.jar} *****
    205     Commit message    : '${commit.message}'                   
    206     Plugin-Mainversion: ${plugin.main.version}
    207     JOSM build version: ${coreversion.info.entry.revision}
    208     Plugin-Version    : ${version.entry.commit.revision}
    209     ***** / Properties of published ${plugin.jar} *****                   
    210                        
    211     Now commiting ${plugin.jar} ...
    212     </echo>
    213         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    214             <env key="LANG" value="C"/>
    215             <arg value="-m '${commit.message}'"/>
    216             <arg value="commit"/>
    217             <arg value="${plugin.jar}"/>
    218         </exec>
    219     </target>
    220     <!-- ** make sure svn is present as a command line tool ** -->
    221     <target name="ensure-svn-present">
    222         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    223             <env key="LANG" value="C"/>
    224             <arg value="--version"/>
    225         </exec>
    226         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    227             <!-- return code not set at all? Most likely svn isn't installed -->
    228             <condition>
    229                 <not>
    230                     <isset property="svn.exit.code"/>
    231                 </not>
    232             </condition>
    233         </fail>
    234         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    235             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    236             <condition>
    237                 <isfailure code="${svn.exit.code}"/>
    238             </condition>
    239         </fail>
    240     </target>
    241     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    242     </target>
    24387</project>
  • applications/editors/josm/plugins/turnrestrictions/build.xml

    r27876 r28807  
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="4980"/>
     35
     36    <property name="test.build.dir" value="test/build"/>
     37    <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins"/>
     38
    3539    <!--
    36       ************************************************
    37       ** should not be necessary to change the following properties
    38      -->
    39     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    40     <property name="plugin.build.dir" value="build"/>
    41     <property name="plugin.src.dir" value="src"/>
    42     <!-- this is the directory where the plugin jar is copied to -->
    43     <property name="plugin.dist.dir" value="dist"/>
    44     <property name="ant.build.javac.target" value="1.6"/>
    45     <property name="plugin.jar" value="../../dist/${ant.project.name}.jar"/>
    46     <property name="test.build.dir" value="test/build"/>
     40    **********************************************************
     41    ** include targets that all plugins have in common
     42    **********************************************************
     43    -->
     44    <import file="../build-common.xml"/>
     45 
    4746    <!--
    4847    **********************************************************
     
    5453        <mkdir dir="${test.build.dir}"/>
    5554    </target>
     55
    5656    <!--
    5757    **********************************************************
    58     ** compile - complies the source tree
     58    ** clean - clean up the build environment
    5959    **********************************************************
    6060    -->
    61     <target name="compile" depends="init">
    62         <echo message="compiling sources for  ${plugin.jar} ... "/>
    63         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    64             <compilerarg value="-Xlint:deprecation"/>
    65             <compilerarg value="-Xlint:unchecked"/>
    66         </javac>
     61    <target name="clean">
     62        <delete dir="${plugin.build.dir}"/>
     63        <delete dir="${test.build.dir}"/>
     64        <delete file="${plugin.jar}"/>
    6765    </target>
     66
    6867    <!--
    6968    **********************************************************
     
    8988        </copy>
    9089        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    91             <!--
     90        <!--
    9291        ************************************************
    9392        ** configure these properties. Most of them will be copied to the plugins
     
    9695        **
    9796        ************************************************
    98     -->
     97        -->
    9998            <manifest>
    10099                <attribute name="Author" value="Karl Guggisberg"/>
     
    109108        </jar>
    110109    </target>
    111     <!--
    112     **********************************************************
    113     ** revision - extracts the current revision number for the
    114     **    file build.number and stores it in the XML property
    115     **    version.*
    116     **********************************************************
    117     -->
    118     <target name="revision">
    119         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    120             <env key="LANG" value="C"/>
    121             <arg value="info"/>
    122             <arg value="--xml"/>
    123             <arg value="."/>
    124         </exec>
    125         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    126         <delete file="REVISION"/>
    127     </target>
    128     <!--
    129     **********************************************************
    130     ** clean - clean up the build environment
    131     **********************************************************
    132     -->
    133     <target name="clean">
    134         <delete dir="${plugin.build.dir}"/>
    135         <delete file="${plugin.jar}"/>
    136     </target>
    137     <!--
    138     **********************************************************
    139     ** install - install the plugin in your local JOSM installation
    140     **********************************************************
    141     -->
    142     <target name="install" depends="dist">
    143         <property environment="env"/>
    144         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    145             <and>
    146                 <os family="windows"/>
    147             </and>
    148         </condition>
    149         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    150     </target>
    151     <!--
    152     ************************** Publishing the plugin ***********************************
    153     -->
    154     <!--
    155         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    156         ** property ${coreversion.info.entry.revision}
    157         **
    158         -->
    159     <target name="core-info">
    160         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    161             <env key="LANG" value="C"/>
    162             <arg value="info"/>
    163             <arg value="--xml"/>
    164             <arg value="../../core"/>
    165         </exec>
    166         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    167         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    168         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    169         <delete file="core.info.xml"/>
    170     </target>
    171     <!--
    172         ** commits the source tree for this plugin
    173         -->
    174     <target name="commit-current">
    175         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    176         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    177             <env key="LANG" value="C"/>
    178             <arg value="commit"/>
    179             <arg value="-m '${commit.message}'"/>
    180             <arg value="."/>
    181         </exec>
    182     </target>
    183     <!--
    184         ** updates (svn up) the source tree for this plugin
    185         -->
    186     <target name="update-current">
    187         <echo>Updating plugin source ...</echo>
    188         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    189             <env key="LANG" value="C"/>
    190             <arg value="up"/>
    191             <arg value="."/>
    192         </exec>
    193         <echo>Updating ${plugin.jar} ...</echo>
    194         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    195             <env key="LANG" value="C"/>
    196             <arg value="up"/>
    197             <arg value="../dist/${plugin.jar}"/>
    198         </exec>
    199     </target>
    200     <!--
    201         ** commits the plugin.jar
    202         -->
    203     <target name="commit-dist">
    204         <echo>
    205     ***** Properties of published ${plugin.jar} *****
    206     Commit message    : '${commit.message}'
    207     Plugin-Mainversion: ${plugin.main.version}
    208     JOSM build version: ${coreversion.info.entry.revision}
    209     Plugin-Version    : ${version.entry.commit.revision}
    210     ***** / Properties of published ${plugin.jar} *****
    211110
    212     Now commiting ${plugin.jar} ...
    213     </echo>
    214         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    215             <env key="LANG" value="C"/>
    216             <arg value="-m '${commit.message}'"/>
    217             <arg value="commit"/>
    218             <arg value="${plugin.jar}"/>
    219         </exec>
    220     </target>
    221     <!-- ** make sure svn is present as a command line tool ** -->
    222     <target name="ensure-svn-present">
    223         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    224             <env key="LANG" value="C"/>
    225             <arg value="--version"/>
    226         </exec>
    227         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    228             <!-- return code not set at all? Most likely svn isn't installed -->
    229             <condition>
    230                 <not>
    231                     <isset property="svn.exit.code"/>
    232                 </not>
    233             </condition>
    234         </fail>
    235         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    236             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    237             <condition>
    238                 <isfailure code="${svn.exit.code}"/>
    239             </condition>
    240         </fail>
    241     </target>
    242     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    243     </target>
    244111    <!-- ************************************************************************************ -->
    245112    <!-- * Targets for compiling and running tests                                            -->
    246113    <!-- ************************************************************************************ -->
    247     <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins"/>
    248114    <path id="groovy.path">
    249115        <pathelement location="${eclipse.plugin.dir}/org.codehaus.groovy_1.7.5.xx-20100926-2000-e36-RC1\lib\groovy-all-1.7.5.jar"/>
  • applications/editors/josm/plugins/undelete/build.xml

    r28376 r28807  
    2929-->
    3030<project name="undelete" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="adapt to core changes (backwards compatible)"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="5211"/>
    35     <!--
    36       ************************************************
    37       ** should not be necessary to change the following properties
    38      -->
    39     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    40     <property name="plugin.build.dir" value="build"/>
    41     <property name="plugin.src.dir" value="src"/>
    42     <!-- this is the directory where the plugin jar is copied to -->
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="ant.build.javac.target" value="1.5"/>
    45     <property name="plugin.dist.dir" value="../../dist"/>
    46     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4737    <!--
    4838    **********************************************************
    49     ** init - initializes the build
     39    ** include targets that all plugins have in common
    5040    **********************************************************
    5141    -->
    52     <target name="init">
    53         <mkdir dir="${plugin.build.dir}"/>
    54     </target>
    55     <!--
    56     **********************************************************
    57     ** compile - complies the source tree
    58     **********************************************************
    59     -->
    60     <target name="compile" depends="init">
    61         <echo message="compiling sources for  ${plugin.jar} ... "/>
    62         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    63             <compilerarg value="-Xlint:deprecation"/>
    64             <compilerarg value="-Xlint:unchecked"/>
    65         </javac>
    66     </target>
     42    <import file="../build-common.xml"/>
     43
    6744    <!--
    6845    **********************************************************
     
    8562        </copy>
    8663        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    87             <!--
     64        <!--
    8865        ************************************************
    8966        ** configure these properties. Most of them will be copied to the plugins
     
    9269        **
    9370        ************************************************
    94     -->
     71        -->
    9572            <manifest>
    9673                <attribute name="Author" value="Nakor"/>
     
    10481        </jar>
    10582    </target>
    106     <!--
    107     **********************************************************
    108     ** revision - extracts the current revision number for the
    109     **    file build.number and stores it in the XML property
    110     **    version.*
    111     **********************************************************
    112     -->
    113     <target name="revision">
    114         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    115             <env key="LANG" value="C"/>
    116             <arg value="info"/>
    117             <arg value="--xml"/>
    118             <arg value="."/>
    119         </exec>
    120         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    121         <delete file="REVISION"/>
    122     </target>
    123     <!--
    124     **********************************************************
    125     ** clean - clean up the build environment
    126     **********************************************************
    127     -->
    128     <target name="clean">
    129         <delete dir="${plugin.build.dir}"/>
    130         <delete file="${plugin.jar}"/>
    131     </target>
    132     <!--
    133     **********************************************************
    134     ** install - install the plugin in your local JOSM installation
    135     **********************************************************
    136     -->
    137     <target name="install" depends="dist">
    138         <property environment="env"/>
    139         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    140             <and>
    141                 <os family="windows"/>
    142             </and>
    143         </condition>
    144         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    145     </target>
    146     <!--
    147     ************************** Publishing the plugin ***********************************
    148     -->
    149     <!--
    150         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    151         ** property ${coreversion.info.entry.revision}
    152         **
    153         -->
    154     <target name="core-info">
    155         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    156             <env key="LANG" value="C"/>
    157             <arg value="info"/>
    158             <arg value="--xml"/>
    159             <arg value="../../core"/>
    160         </exec>
    161         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    162         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    163         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    164         <delete file="core.info.xml"/>
    165     </target>
    166     <!--
    167         ** commits the source tree for this plugin
    168         -->
    169     <target name="commit-current">
    170         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    171         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    172             <env key="LANG" value="C"/>
    173             <arg value="commit"/>
    174             <arg value="-m '${commit.message}'"/>
    175             <arg value="."/>
    176         </exec>
    177     </target>
    178     <!--
    179         ** updates (svn up) the source tree for this plugin
    180         -->
    181     <target name="update-current">
    182         <echo>Updating plugin source ...</echo>
    183         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    184             <env key="LANG" value="C"/>
    185             <arg value="up"/>
    186             <arg value="."/>
    187         </exec>
    188         <echo>Updating ${plugin.jar} ...</echo>
    189         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    190             <env key="LANG" value="C"/>
    191             <arg value="up"/>
    192             <arg value="../dist/${plugin.jar}"/>
    193         </exec>
    194     </target>
    195     <!--
    196         ** commits the plugin.jar
    197         -->
    198     <target name="commit-dist">
    199         <echo>
    200     ***** Properties of published ${plugin.jar} *****
    201     Commit message    : '${commit.message}'
    202     Plugin-Mainversion: ${plugin.main.version}
    203     JOSM build version: ${coreversion.info.entry.revision}
    204     Plugin-Version    : ${version.entry.commit.revision}
    205     ***** / Properties of published ${plugin.jar} *****
    206 
    207     Now commiting ${plugin.jar} ...
    208     </echo>
    209         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    210             <env key="LANG" value="C"/>
    211             <arg value="-m '${commit.message}'"/>
    212             <arg value="commit"/>
    213             <arg value="${plugin.jar}"/>
    214         </exec>
    215     </target>
    216     <!-- ** make sure svn is present as a command line tool ** -->
    217     <target name="ensure-svn-present">
    218         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    219             <env key="LANG" value="C"/>
    220             <arg value="--version"/>
    221         </exec>
    222         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    223             <!-- return code not set at all? Most likely svn isn't installed -->
    224             <condition>
    225                 <not>
    226                     <isset property="svn.exit.code"/>
    227                 </not>
    228             </condition>
    229         </fail>
    230         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    231             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    232             <condition>
    233                 <isfailure code="${svn.exit.code}"/>
    234             </condition>
    235         </fail>
    236     </target>
    237     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    238     </target>
    23983</project>
  • applications/editors/josm/plugins/utilsplugin2/build.xml

    r28556 r28807  
    2929-->
    3030<project name="utilsplugin2" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Utilsplugin2: SplitObjects exception fix when closed way only is selected"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="4980"/>
    35     <!--
    36       ************************************************
    37       ** should not be necessary to change the following properties
    38      -->
    39     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    40     <property name="plugin.build.dir" value="build"/>
    41     <property name="plugin.src.dir" value="src"/>
    42     <!-- this is the directory where the plugin jar is copied to -->
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="ant.build.javac.target" value="1.5"/>
    45     <property name="ant.build.javac.source" value="1.5"/>
    46     <property name="plugin.dist.dir" value="../../dist"/>
    47     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4837    <!--
    4938    **********************************************************
    50     ** init - initializes the build
     39    ** include targets that all plugins have in common
    5140    **********************************************************
    5241    -->
    53     <target name="init">
    54         <mkdir dir="${plugin.build.dir}"/>
    55     </target>
    56     <!--
    57     **********************************************************
    58     ** compile - complies the source tree
    59     **********************************************************
    60     -->
    61     <target name="compile" depends="init">
    62         <echo message="compiling sources for  ${plugin.jar} ... "/>
    63         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    64             <compilerarg value="-Xlint:deprecation"/>
    65             <compilerarg value="-Xlint:unchecked"/>
    66         </javac>
    67     </target>
     42    <import file="../build-common.xml"/>
     43
    6844    <!--
    6945    **********************************************************
     
    8864        </copy>
    8965        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    90             <!--
     66        <!--
    9167        ************************************************
    9268        ** configure these properties. Most of them will be copied to the plugins
     
    9571        **
    9672        ************************************************
    97     -->
     73        -->
    9874            <manifest>
    9975                <attribute name="Author" value="Kalle Lampila, Upliner, and others"/>
     
    10884        </jar>
    10985    </target>
    110     <!--
    111     **********************************************************
    112     ** revision - extracts the current revision number for the
    113     **    file build.number and stores it in the XML property
    114     **    version.*
    115     **********************************************************
    116     -->
    117     <target name="revision">
    118         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    119             <env key="LANG" value="C"/>
    120             <arg value="info"/>
    121             <arg value="--xml"/>
    122             <arg value="."/>
    123         </exec>
    124         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    125         <delete file="REVISION"/>
    126     </target>
    127     <!--
    128     **********************************************************
    129     ** clean - clean up the build environment
    130     **********************************************************
    131     -->
    132     <target name="clean">
    133         <delete dir="${plugin.build.dir}"/>
    134         <delete file="${plugin.jar}"/>
    135     </target>
    136     <!--
    137     **********************************************************
    138     ** install - install the plugin in your local JOSM installation
    139     **********************************************************
    140     -->
    141     <target name="install" depends="dist">
    142         <property environment="env"/>
    143         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    144             <and>
    145                 <os family="windows"/>
    146             </and>
    147         </condition>
    148         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    149     </target>
    150     <!--
    151     ************************** Publishing the plugin ***********************************
    152     -->
    153     <!--
    154         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    155         ** property ${coreversion.info.entry.revision}
    156         **
    157         -->
    158     <target name="core-info">
    159         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    160             <env key="LANG" value="C"/>
    161             <arg value="info"/>
    162             <arg value="--xml"/>
    163             <arg value="../../core"/>
    164         </exec>
    165         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    166         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    167         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    168         <delete file="core.info.xml"/>
    169     </target>
    170     <!--
    171         ** commits the source tree for this plugin
    172         -->
    173     <target name="commit-current">
    174         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    175         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    176             <env key="LANG" value="C"/>
    177             <arg value="commit"/>
    178             <arg value="-m '${commit.message}'"/>
    179             <arg value="."/>
    180         </exec>
    181     </target>
    182     <!--
    183         ** updates (svn up) the source tree for this plugin
    184         -->
    185     <target name="update-current">
    186         <echo>Updating plugin source ...</echo>
    187         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    188             <env key="LANG" value="C"/>
    189             <arg value="up"/>
    190             <arg value="."/>
    191         </exec>
    192         <echo>Updating ${plugin.jar} ...</echo>
    193         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    194             <env key="LANG" value="C"/>
    195             <arg value="up"/>
    196             <arg value="../dist/${plugin.jar}"/>
    197         </exec>
    198     </target>
    199     <!--
    200         ** commits the plugin.jar
    201         -->
    202     <target name="commit-dist">
    203         <echo>
    204     ***** Properties of published ${plugin.jar} *****
    205     Commit message    : '${commit.message}'                   
    206     Plugin-Mainversion: ${plugin.main.version}
    207     JOSM build version: ${coreversion.info.entry.revision}
    208     Plugin-Version    : ${version.entry.commit.revision}
    209     ***** / Properties of published ${plugin.jar} *****                   
    210                        
    211     Now commiting ${plugin.jar} ...
    212     </echo>
    213         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    214             <env key="LANG" value="C"/>
    215             <arg value="-m '${commit.message}'"/>
    216             <arg value="commit"/>
    217             <arg value="${plugin.jar}"/>
    218         </exec>
    219     </target>
    220     <!-- ** make sure svn is present as a command line tool ** -->
    221     <target name="ensure-svn-present">
    222         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    223             <env key="LANG" value="C"/>
    224             <arg value="--version"/>
    225         </exec>
    226         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    227             <!-- return code not set at all? Most likely svn isn't installed -->
    228             <condition>
    229                 <not>
    230                     <isset property="svn.exit.code"/>
    231                 </not>
    232             </condition>
    233         </fail>
    234         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    235             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    236             <condition>
    237                 <isfailure code="${svn.exit.code}"/>
    238             </condition>
    239         </fail>
    240     </target>
    241     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    242     </target>
    243     <target name="runjosm" depends="install">
    244         <java jar="${josm}" fork="true">
    245             <arg line="e:/test.osm"/>
    246         </java>
    247     </target>
    248    
    249    
    250     <target name="profilejosm" depends="install">
    251         <nbprofiledirect>
    252         </nbprofiledirect>
    253         <java jar="${josm}" fork="true">
    254             <arg line="e:/test.osm"/>
    255              <jvmarg value="${profiler.info.jvmargs.agent}"/>
    256         </java>
    257     </target>
    25886</project>
  • applications/editors/josm/plugins/videomapping/build.xml

    r28289 r28807  
    5555        <pathelement location="${log4j}"/>
    5656    </path>
    57     <!--
    58     **********************************************************
    59     ** compile - complies the source tree
    60     ** Overrides the target from build-common.xml
    61     **********************************************************
    62     -->
    63     <target name="compile" depends="init">
    64         <echo message="compiling sources for ${plugin.jar} ..."/>
    65         <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">
    66             <compilerarg value="-Xlint:deprecation"/>
    67             <compilerarg value="-Xlint:unchecked"/>
    68         </javac>
    69     </target>
    7057
    7158    <!--
  • applications/editors/josm/plugins/wikipedia/build.xml

    r28481 r28807  
    2929-->
    3030<project name="wikipedia" default="dist" basedir=".">
     31
    3132    <!-- enter the SVN commit message -->
    3233    <property name="commit.message" value="Commit message"/>
    3334    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3435    <property name="plugin.main.version" value="5089"/>
    35     <!-- should not be necessary to change the following properties -->
    36     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    37     <property name="plugin.build.dir" value="build"/>
    38     <property name="plugin.src.dir" value="src"/>
    39     <!-- this is the directory where the plugin jar is copied to -->
    40     <property name="plugin.dist.dir" value="../../dist"/>
    41     <property name="ant.build.javac.target" value="1.6"/>
    42     <property name="ant.build.javac.source" value="1.6"/>
    43     <property name="plugin.dist.dir" value="../../dist"/>
    44     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     36
    4537    <!--
    4638    **********************************************************
    47     ** init - initializes the build
     39    ** include targets that all plugins have in common
    4840    **********************************************************
    4941    -->
    50     <target name="init">
    51         <mkdir dir="${plugin.build.dir}"/>
    52     </target>
    53     <!--
    54     **********************************************************
    55     ** compile - complies the source tree
    56     **********************************************************
    57     -->
    58     <target name="compile" depends="init">
    59         <echo message="compiling sources for  ${plugin.jar} ... "/>
    60         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    61             <compilerarg value="-Xlint:deprecation"/>
    62             <compilerarg value="-Xlint:unchecked"/>
    63         </javac>
    64     </target>
     42    <import file="../build-common.xml"/>
     43 
    6544    <!--
    6645    **********************************************************
     
    10685        </jar>
    10786    </target>
    108     <!--
    109     **********************************************************
    110     ** revision - extracts the current revision number for the
    111     **    file build.number and stores it in the XML property
    112     **    version.*
    113     **********************************************************
    114     -->
    115     <target name="revision">
    116         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    117             <env key="LANG" value="C"/>
    118             <arg value="info"/>
    119             <arg value="--xml"/>
    120             <arg value="."/>
    121         </exec>
    122         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    123         <delete file="REVISION"/>
    124     </target>
    125     <!--
    126     **********************************************************
    127     ** clean - clean up the build environment
    128     **********************************************************
    129     -->
    130     <target name="clean">
    131         <delete dir="${plugin.build.dir}"/>
    132         <delete file="${plugin.jar}"/>
    133     </target>
    134     <!--
    135     **********************************************************
    136     ** install - install the plugin in your local JOSM installation
    137     **********************************************************
    138     -->
    139     <target name="install" depends="dist">
    140         <property environment="env"/>
    141         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    142             <and>
    143                 <os family="windows"/>
    144             </and>
    145         </condition>
    146         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    147     </target>
    148     <!--
    149     ************************** Publishing the plugin ***********************************
    150     -->
    151     <!--
    152     ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    153     ** property ${coreversion.info.entry.revision}
    154     -->
    155     <target name="core-info">
    156         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    157             <env key="LANG" value="C"/>
    158             <arg value="info"/>
    159             <arg value="--xml"/>
    160             <arg value="../../core"/>
    161         </exec>
    162         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    163         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    164         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    165         <delete file="core.info.xml"/>
    166     </target>
    167     <!-- commits the source tree for this plugin -->
    168     <target name="commit-current">
    169         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    170         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    171             <env key="LANG" value="C"/>
    172             <arg value="commit"/>
    173             <arg value="-m '${commit.message}'"/>
    174             <arg value="."/>
    175         </exec>
    176     </target>
    177     <!-- updates (svn up) the source tree for this plugin -->
    178     <target name="update-current">
    179         <echo>Updating plugin source ...</echo>
    180         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    181             <env key="LANG" value="C"/>
    182             <arg value="up"/>
    183             <arg value="."/>
    184         </exec>
    185         <echo>Updating ${plugin.jar} ...</echo>
    186         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    187             <env key="LANG" value="C"/>
    188             <arg value="up"/>
    189             <arg value="../dist/${plugin.jar}"/>
    190         </exec>
    191     </target>
    192     <!-- commits the plugin.jar -->
    193     <target name="commit-dist">
    194         <echo>
    195     ***** Properties of published ${plugin.jar} *****
    196     Commit message    : '${commit.message}'                   
    197     Plugin-Mainversion: ${plugin.main.version}
    198     JOSM build version: ${coreversion.info.entry.revision}
    199     Plugin-Version    : ${version.entry.commit.revision}
    200     ***** / Properties of published ${plugin.jar} *****                   
    201                        
    202     Now commiting ${plugin.jar} ...
    203     </echo>
    204         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    205             <env key="LANG" value="C"/>
    206             <arg value="-m '${commit.message}'"/>
    207             <arg value="commit"/>
    208             <arg value="${plugin.jar}"/>
    209         </exec>
    210     </target>
    211     <!-- make sure svn is present as a command line tool -->
    212     <target name="ensure-svn-present">
    213         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    214             <env key="LANG" value="C"/>
    215             <arg value="--version"/>
    216         </exec>
    217         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
    218             <!-- return code not set at all? Most likely svn isn't installed -->
    219             <condition>
    220                 <not>
    221                     <isset property="svn.exit.code"/>
    222                 </not>
    223             </condition>
    224         </fail>
    225         <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
    226             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    227             <condition>
    228                 <isfailure code="${svn.exit.code}"/>
    229             </condition>
    230         </fail>
    231     </target>
    232     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    233     </target>
    23487</project>
  • applications/editors/josm/plugins/wms-turbo-challenge2/build.xml

    r27019 r28807  
    1010-->
    1111<project name="wms-turbo-challenge2" default="dist" basedir=".">
    12     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.src.dir" value="src"/>
    15     <!-- this is the directory where the plugin jar is copied to -->
    16     <property name="ant.build.javac.target" value="1.5"/>
    17     <property name="plugin.dist.dir" value="../../dist"/>
    18     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     12
     13    <!-- enter the SVN commit message -->
     14    <property name="commit.message" value="Commit message"/>
     15    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     16    <property name="plugin.main.version" value="4549"/>
     17
    1918    <!--
    2019    **********************************************************
    21     ** init - initializes the build
     20    ** include targets that all plugins have in common
    2221    **********************************************************
    2322    -->
    24     <target name="init">
    25         <mkdir dir="${plugin.build.dir}"/>
    26     </target>
    27     <!--
    28     **********************************************************
    29     ** compile - compiles the source tree
    30     **********************************************************
    31     -->
    32     <target name="compile" depends="init">
    33         <echo message="compiling sources for  ${plugin.jar} ... "/>
    34         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    35             <compilerarg value="-Xlint:deprecation"/>
    36             <compilerarg value="-Xlint:unchecked"/>
    37         </javac>
    38     </target>
     23    <import file="../build-common.xml"/>
     24 
    3925    <!--
    4026    **********************************************************
     
    6753                <attribute name="Plugin-Icon" value="images/wmsracer.png"/>
    6854                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/>
    69                 <attribute name="Plugin-Mainversion" value="4549"/>
     55                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    7056                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    7157            </manifest>
    7258        </jar>
    7359    </target>
    74     <!--
    75     **********************************************************
    76     ** revision - extracts the current revision number for the
    77     **    file build.number and stores it in the XML property
    78     **    version.*
    79     **********************************************************
    80     -->
    81     <target name="revision">
    82         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    83             <env key="LANG" value="C"/>
    84             <arg value="info"/>
    85             <arg value="--xml"/>
    86             <arg value="."/>
    87         </exec>
    88         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    89         <delete file="REVISION"/>
    90     </target>
    91     <!--
    92     **********************************************************
    93     ** clean - clean up the build environment
    94     **********************************************************
    95     -->
    96     <target name="clean">
    97         <delete dir="${plugin.build.dir}"/>
    98         <delete file="${plugin.jar}"/>
    99     </target>
    100     <!--
    101     **********************************************************
    102     ** install - install the plugin in your local JOSM installation
    103     **********************************************************
    104     -->
    105     <target name="install" depends="dist">
    106         <property environment="env"/>
    107         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    108             <and>
    109                 <os family="windows"/>
    110             </and>
    111         </condition>
    112         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    113     </target>
    11460</project>
Note: See TracChangeset for help on using the changeset viewer.