Ignore:
Timestamp:
2009-04-30T14:58:19+02:00 (16 years ago)
Author:
stoecker
Message:

cleanup recently added build.xmls and demo plugin - before changing the build system all side effects should be fully understood

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

Legend:

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

    r14697 r14837  
    55** Maintaining versions
    66** ====================
    7 ** see README.template 
     7** see README.template
    88**
    99** Usage
    1010** =====
    1111** To build it run
    12 ** 
     12**
    1313**    > ant  dist
    1414**
    15 ** To install the generated plugin locally (in you default plugin directory) run 
    16 ** 
     15** To install the generated plugin locally (in you default plugin directory) run
     16**
    1717**    > ant  install
    18 ** 
     18**
    1919** The generated plugin jar is not automatically available in JOSMs plugin configuration
    20 ** dialog. You have to check it in first. To check in run
    21 **
    22 **   > ant publish
     20** dialog. You have to check it in first.
    2321**
    2422-->
    2523<project name="myPluginName" default="dist" basedir=".">
    26        
     24    <!--
     25      ************************************************
     26      ** should not be necessary to change the following properties
     27     -->
     28    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     29    <property name="plugin.build.dir"       value="build"/>
     30    <property name="plugin.src.dir"         value="src"/>
     31    <!-- this is the directory where the plugin jar is copied to -->
     32    <property name="plugin.dist.dir"        value="../../dist"/>
     33    <property name="ant.build.javac.target" value="1.5"/>
     34    <property name="plugin.dist.dir"        value="../../dist"/>
     35    <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    2736
    28         <!--
    29                 ************************************************
    30                 ** configure these properties. Most of them will be copied to the plugins
    31                 ** manifest file. Property values will also show up in the list available
    32                 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    33                 **
    34                 ************************************************   
    35         -->
    36         <property name="plugin.author"          value="Your Name"/>
    37         <property name="plugin.class"           value="fully.qualified.name.of.your.PluginClass"/>
    38         <property name="plugin.description"     value="A Short description of your plugin (one line, to be displayed in the JOSMs plugin configuration dialog)"/>
    39         <property name="plugin.doc.url"         value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/YourPlugin"/>
    40         <property name="plugin.main.version"    value="1"/>     
    41     <property name="plugin.jar.name"        value="${ant.project.name}.jar"/>
    42        
    43    
    44         <!--
    45           ************************************************
    46           ** should not be necessary to change the following properties   
    47          -->
    48         <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    49         <property name="plugin.build.dir"       value="build"/>
    50         <property name="plugin.src.dir"         value="src"/>
    51         <!-- this is the directory where the plugin jar is copied to -->
    52     <property name="plugin.dist.dir"        value="../../dist"/>
    53         <property name="ant.build.javac.target" value="1.5"/>
    54         <property name="plugin.dist.dir"        value="../../dist"/>           
    55         <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    56        
    57         <!--
    58         **********************************************************
    59         ** init - initializes the build
    60         **********************************************************
    61         -->
     37    <!--
     38    **********************************************************
     39    ** init - initializes the build
     40    **********************************************************
     41    -->
    6242    <target name="init">
    6343        <mkdir dir="${plugin.build.dir}"/>
    6444    </target>
    65        
    66         <!--
    67         **********************************************************
    68         ** compile - complies the source tree
    69         **********************************************************
    70         -->     
     45
     46    <!--
     47    **********************************************************
     48    ** compile - complies the source tree
     49    **********************************************************
     50    -->
    7151    <target name="compile" depends="init">
    7252        <echo message="compiling sources for  ${plugin.jar.name} ... "/>
     
    7757    </target>
    7858
    79         <!--
    80         **********************************************************
    81         ** dist - creates the plugin jar
    82         **********************************************************
    83         -->     
    84         <target name="dist" depends="compile,revision">
     59    <!--
     60    **********************************************************
     61    ** dist - creates the plugin jar
     62    **********************************************************
     63    -->
     64    <target name="dist" depends="compile,revision">
    8565        <echo message="creating ${plugin.jar.name} ... "/>
    86                 <copy todir="${plugin.build.dir}/resources">
     66        <copy todir="${plugin.build.dir}/resources">
    8767            <fileset dir="resources"/>
    8868        </copy>
    89                 <copy todir="${plugin.build.dir}">
     69        <copy todir="${plugin.build.dir}">
    9070            <fileset dir=".">
    91                 <include name="README" />
    92                 <include name="LICENSE" />
     71                <include name="README" />
     72                <include name="LICENSE" />
    9373            </fileset>
    9474        </copy>
    9575        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     76    <!--
     77        ************************************************
     78        ** configure these properties. Most of them will be copied to the plugins
     79        ** manifest file. Property values will also show up in the list available
     80        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
     81        **
     82        ************************************************
     83    -->
    9684            <manifest>
    97                 <attribute name="Author" value="${plugin.author}"/>
    98                 <attribute name="Plugin-Class" value="${plugin.class}"/>
     85                <attribute name="Author" value="..."/>
     86                <attribute name="Plugin-Class" value="..."/>
    9987                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    100                 <attribute name="Plugin-Description" value="${plugin.description}"/>
    101                 <attribute name="Plugin-Link" value="${plugin.doc.url}"/>
    102                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    103                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 
     88                <attribute name="Plugin-Description" value="..."/>
     89                <attribute name="Plugin-Link" value="..."/>
     90                <attribute name="Plugin-Mainversion" value="..."/>
     91                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    10492            </manifest>
    10593        </jar>
    10694    </target>
    107        
    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         -->     
     95
     96    <!--
     97    **********************************************************
     98    ** revision - extracts the current revision number for the
     99    **    file build.number and stores it in the XML property
     100    **    version.*
     101    **********************************************************
     102    -->
    115103    <target name="revision">
    116        
     104
    117105        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    118106            <env key="LANG" value="C"/>
     
    124112        <delete file="REVISION"/>
    125113    </target>
    126        
    127         <!--
    128         **********************************************************
    129         ** clean - clean up the build environment
    130         **********************************************************
    131         -->             
     114
     115    <!--
     116    **********************************************************
     117    ** clean - clean up the build environment
     118    **********************************************************
     119    -->
    132120    <target name="clean">
    133121        <delete dir="${plugin.build.dir}"/>
    134122        <delete file="${plugin.jar}"/>
    135123    </target>
    136    
    137         <!--
    138         **********************************************************
    139         ** install - install the plugin in your local JOSM installation
    140         **********************************************************
    141         -->                     
    142         <target name="install" depends="dist">
     124
     125    <!--
     126    **********************************************************
     127    ** install - install the plugin in your local JOSM installation
     128    **********************************************************
     129    -->
     130    <target name="install" depends="dist">
    143131        <property environment="env"/>
    144132        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     
    149137        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    150138    </target>
    151        
    152         <!--
    153         **********************************************************
    154         ** publish - publish the plugin jar
    155         **********************************************************
    156         -->                     
    157         <target name="publish">
    158         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    159             <env key="LANG" value="C"/>
    160             <arg value="commit"/>
    161                 <arg value="--message"/>
    162             <arg value="manual build"/>
    163             <arg value="${plugin.jar}"/>
    164                 </exec>
    165         </target>
    166        
    167139</project>
  • applications/editors/josm/plugins/piclayer/build.xml

    r14774 r14837  
    55** Maintaining versions
    66** ====================
    7 ** see README.template 
     7** see README.template
    88**
    99** Usage
    1010** =====
    1111** To build it run
    12 ** 
     12**
    1313**    > ant  dist
    1414**
    15 ** To install the generated plugin locally (in you default plugin directory) run 
    16 ** 
     15** To install the generated plugin locally (in you default plugin directory) run
     16**
    1717**    > ant  install
    18 ** 
     18**
    1919** The generated plugin jar is not automatically available in JOSMs plugin configuration
    20 ** dialog. You have to check it in first. To check in run
    21 **
    22 **   > ant publish
     20** dialog. You have to check it in first.
    2321**
    2422-->
    2523<project name="PicLayer" default="dist" basedir=".">
    26        
     24    <!--
     25      ************************************************
     26      ** should not be necessary to change the following properties
     27     -->
     28    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     29    <property name="plugin.build.dir"       value="build"/>
     30    <property name="plugin.src.dir"         value="src"/>
     31    <!-- this is the directory where the plugin jar is copied to -->
     32    <property name="plugin.dist.dir"        value="../../dist"/>
     33    <property name="ant.build.javac.target" value="1.5"/>
     34    <property name="plugin.dist.dir"        value="../../dist"/>
     35    <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    2736
    28         <!--
    29                 ************************************************
    30                 ** configure these properties. Most of them will be copied to the plugins
    31                 ** manifest file. Property values will also show up in the list available
    32                 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    33                 **
    34                 ************************************************   
    35         -->
    36         <property name="plugin.author"          value="Tomasz Stelmach"/>
    37         <property name="plugin.class"           value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
    38         <property name="plugin.description"     value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
    39         <property name="plugin.doc.url"         value=""/>
    40         <property name="plugin.main.version"    value="2"/>     
    41     <property name="plugin.jar.name"        value="${ant.project.name}.jar"/>
    42        
    43    
    44         <!--
    45           ************************************************
    46           ** should not be necessary to change the following properties   
    47          -->
    48         <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    49         <property name="plugin.build.dir"       value="build"/>
    50         <property name="plugin.src.dir"         value="src"/>
    51         <!-- this is the directory where the plugin jar is copied to -->
    52     <property name="plugin.dist.dir"        value="../../dist"/>
    53         <property name="ant.build.javac.target" value="1.5"/>
    54         <property name="plugin.dist.dir"        value="../../dist"/>           
    55         <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    56        
    57         <!--
    58         **********************************************************
    59         ** init - initializes the build
    60         **********************************************************
    61         -->
     37    <!--
     38    **********************************************************
     39    ** init - initializes the build
     40    **********************************************************
     41    -->
    6242    <target name="init">
    63         <!-- make sure we increment the build number ... -->
    64         <buildnumber file="build.number" />     
    65        
    66         <!-- ... and check it back in -->
    67         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    68             <env key="LANG" value="C"/>
    69             <arg value="commit"/>
    70                 <arg value="--message"/>
    71             <arg value="increment build number"/>
    72             <arg value="build.number"/>
    73                 </exec>
    7443        <mkdir dir="${plugin.build.dir}"/>
    7544    </target>
    76        
    77         <!--
    78         **********************************************************
    79         ** compile - complies the source tree
    80         **********************************************************
    81         -->     
     45
     46    <!--
     47    **********************************************************
     48    ** compile - complies the source tree
     49    **********************************************************
     50    -->
    8251    <target name="compile" depends="init">
    8352        <echo message="compiling sources for  ${plugin.jar.name} ... "/>
     
    8857    </target>
    8958
    90         <!--
    91         **********************************************************
    92         ** dist - creates the plugin jar
    93         **********************************************************
    94         -->     
    95         <target name="dist" depends="compile,revision">
     59    <!--
     60    **********************************************************
     61    ** dist - creates the plugin jar
     62    **********************************************************
     63    -->
     64    <target name="dist" depends="compile,revision">
    9665        <echo message="creating ${plugin.jar.name} ... "/>
    97                 <copy todir="${plugin.build.dir}/resources">
     66        <copy todir="${plugin.build.dir}/resources">
    9867            <fileset dir="resources"/>
    9968        </copy>
    100                 <copy todir="${plugin.build.dir}/images">
     69        <copy todir="${plugin.build.dir}/images">
    10170            <fileset dir="images"/>
    10271        </copy>
    103                 <copy todir="${plugin.build.dir}">
     72        <copy todir="${plugin.build.dir}">
    10473            <fileset dir=".">
    105                 <include name="README" />
    106                 <include name="LICENSE" />
     74                <include name="README" />
     75                <include name="LICENSE" />
    10776            </fileset>
    10877        </copy>
    10978        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    11079            <manifest>
    111                 <attribute name="Author" value="${plugin.author}"/>
    112                 <attribute name="Plugin-Class" value="${plugin.class}"/>
     80                <attribute name="Author" value="Tomasz Stelmach"/>
     81                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
    11382                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    114                 <attribute name="Plugin-Description" value="${plugin.description}"/>
    115                 <attribute name="Plugin-Link" value="${plugin.doc.url}"/>
    116                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    117                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     83                <attribute name="Plugin-Description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
     84                <attribute name="Plugin-Mainversion" value="1529"/>
     85                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    11886            </manifest>
    11987        </jar>
    12088    </target>
    121        
    122         <!--
    123         **********************************************************
    124         ** revision - extracts the current revision number for the
    125         **    file build.number and stores it in the XML property
    126         **    version.*
    127         **********************************************************
    128         -->     
     89
     90    <!--
     91    **********************************************************
     92    ** revision - extracts the current revision number for the
     93    **    file build.number and stores it in the XML property
     94    **    version.*
     95    **********************************************************
     96    -->
    12997    <target name="revision">
    130        
    131         <!-- extract the SVN revision information for file build.number -->
     98
     99        <!-- extract the SVN revision information for file build.number -->
    132100        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    133101            <env key="LANG" value="C"/>
    134102            <arg value="info"/>
    135103            <arg value="--xml"/>
    136             <arg value="build.number"/>
     104            <arg value="."/>
    137105        </exec>
    138106        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    139107        <delete file="REVISION"/>
    140108    </target>
    141        
    142         <!--
    143         **********************************************************
    144         ** clean - clean up the build environment
    145         **********************************************************
    146         -->             
     109
     110    <!--
     111    **********************************************************
     112    ** clean - clean up the build environment
     113    **********************************************************
     114    -->
    147115    <target name="clean">
    148116        <delete dir="${plugin.build.dir}"/>
    149117        <delete file="${plugin.jar}"/>
    150118    </target>
    151    
    152         <!--
    153         **********************************************************
    154         ** install - install the plugin in your local JOSM installation
    155         **********************************************************
    156         -->                     
    157         <target name="install" depends="dist">
     119
     120    <!--
     121    **********************************************************
     122    ** install - install the plugin in your local JOSM installation
     123    **********************************************************
     124    -->
     125    <target name="install" depends="dist">
    158126        <property environment="env"/>
    159127        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     
    164132        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    165133    </target>
    166        
    167         <!--
    168         **********************************************************
    169         ** publish - publish the plugin jar
    170         **********************************************************
    171         -->                     
    172         <target name="publish">
    173         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    174             <env key="LANG" value="C"/>
    175             <arg value="commit"/>
    176                 <arg value="--message"/>
    177             <arg value="manual build"/>
    178             <arg value="${plugin.jar}"/>
    179                 </exec>
    180         </target>
    181        
    182134</project>
  • applications/editors/josm/plugins/tageditor/build.xml

    r14696 r14837  
    55** Maintaining versions
    66** ====================
    7 ** see README.template 
     7** see README.template
    88**
    99** Usage
    1010** =====
    1111** To build it run
    12 ** 
     12**
    1313**    > ant  dist
    1414**
    15 ** To install the generated plugin locally (in you default plugin directory) run 
    16 ** 
     15** To install the generated plugin locally (in you default plugin directory) run
     16**
    1717**    > ant  install
    18 ** 
     18**
    1919** The generated plugin jar is not automatically available in JOSMs plugin configuration
    20 ** dialog. You have to check it in first. To check in run
    21 **
    22 **   > ant publish
     20** dialog. You have to check it in first.
    2321**
    2422-->
    2523<project name="tageditor" default="dist" basedir=".">
    26        
     24    <!--
     25      ************************************************
     26      ** should not be necessary to change the following properties
     27     -->
     28    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     29    <property name="plugin.build.dir"       value="build"/>
     30    <property name="plugin.src.dir"         value="src"/>
     31    <!-- this is the directory where the plugin jar is copied to -->
     32    <property name="plugin.dist.dir"        value="../../dist"/>
     33    <property name="ant.build.javac.target" value="1.5"/>
     34    <property name="plugin.dist.dir"        value="../../dist"/>
     35    <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    2736
    28         <!--
    29                 ************************************************
    30                 ** configure these properties. Most of them will be copied to the plugins
    31                 ** manifest file. Property values will also show up in the list available
    32                 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    33                 **
    34                 ************************************************   
    35         -->
    36         <property name="plugin.author"          value="Karl Guggisberg"/>
    37         <property name="plugin.class"           value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/>
    38         <property name="plugin.description"     value="Provides a dialog for editing tags in a tabular grid."/>
    39         <property name="plugin.doc.url"         value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/>
    40         <property name="plugin.main.version"    value="1515"/> 
    41     <property name="plugin.jar.name"        value="${ant.project.name}.jar"/>
    42        
    43    
    44         <!--
    45           ************************************************
    46           ** should not be necessary to change the following properties   
    47          -->
    48         <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    49         <property name="plugin.build.dir"       value="build"/>
    50         <property name="plugin.src.dir"         value="src"/>
    51         <!-- this is the directory where the plugin jar is copied to -->
    52     <property name="plugin.dist.dir"        value="../../dist"/>
    53         <property name="ant.build.javac.target" value="1.5"/>
    54         <property name="plugin.dist.dir"        value="../../dist"/>           
    55         <property name="plugin.jar"             value="${plugin.dist.dir}/${plugin.jar.name}"/>
    56        
    57         <!--
    58         **********************************************************
    59         ** init - initializes the build
    60         **********************************************************
    61         -->
     37    <!--
     38    **********************************************************
     39    ** init - initializes the build
     40    **********************************************************
     41    -->
    6242    <target name="init">
    6343        <mkdir dir="${plugin.build.dir}"/>
    64     </target>   
    65        
    66         <!--
    67         **********************************************************
    68         ** compile - complies the source tree
    69         **********************************************************
    70         -->     
     44    </target>
     45
     46    <!--
     47    **********************************************************
     48    ** compile - complies the source tree
     49    **********************************************************
     50    -->
    7151    <target name="compile" depends="init">
    7252        <echo message="compiling sources for  ${plugin.jar.name} ... "/>
     
    7757    </target>
    7858
    79         <!--
    80         **********************************************************
    81         ** dist - creates the plugin jar
    82         **********************************************************
    83         -->     
    84         <target name="dist" depends="compile,revision">
     59    <!--
     60    **********************************************************
     61    ** dist - creates the plugin jar
     62    **********************************************************
     63    -->
     64    <target name="dist" depends="compile,revision">
    8565        <echo message="creating ${plugin.jar.name} ... "/>
    86                 <copy todir="${plugin.build.dir}/resources">
     66        <copy todir="${plugin.build.dir}/resources">
    8767            <fileset dir="resources"/>
    8868        </copy>
    89                 <copy todir="${plugin.build.dir}">
     69        <copy todir="${plugin.build.dir}">
    9070            <fileset dir=".">
    91                 <include name="README" />
    92                 <include name="LICENSE" />
     71                <include name="README" />
     72                <include name="LICENSE" />
    9373            </fileset>
    9474        </copy>
    9575        <copy todir="${plugin.build.dir}">
    96                 <fileset dir="${plugin.src.dir}">
    97                         <include name="**/*.dtd"/>
    98                 </fileset>                             
     76            <fileset dir="${plugin.src.dir}">
     77                <include name="**/*.dtd"/>
     78            </fileset>
    9979        </copy>
    10080        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    10181            <manifest>
    102                 <attribute name="Author" value="${plugin.author}"/>
    103                 <attribute name="Plugin-Class" value="${plugin.class}"/>
     82                <attribute name="Author" value="Karl Guggisberg"/>
     83                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/>
    10484                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    105                 <attribute name="Plugin-Description" value="${plugin.description}"/>
    106                 <attribute name="Plugin-Link" value="${plugin.doc.url}"/>
    107                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    108                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 
     85                <attribute name="Plugin-Description" value="Provides a dialog for editing tags in a tabular grid."/>
     86                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/>
     87                <attribute name="Plugin-Mainversion" value="1515"/>
     88                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    10989            </manifest>
    11090        </jar>
    11191    </target>
    112        
    113         <!--
    114         **********************************************************
    115         ** revision - extracts the current revision number for the
    116         **    file build.number and stores it in the XML property
    117         **    version.*
    118         **********************************************************
    119         -->     
    120     <target name="revision">           
    121         <!-- extract the SVN revision information  -->
    122         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    123                     <env key="LANG" value="C"/>
    124                     <arg value="info"/>
    125                     <arg value="--xml"/>
    126                     <arg value="."/>
    127         </exec>
     92
     93    <!--
     94    **********************************************************
     95    ** revision - extracts the current revision number for the
     96    **    file build.number and stores it in the XML property
     97    **    version.*
     98    **********************************************************
     99    -->
     100    <target name="revision">
     101        <!-- extract the SVN revision information  -->
     102        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     103                    <env key="LANG" value="C"/>
     104                    <arg value="info"/>
     105                    <arg value="--xml"/>
     106                    <arg value="."/>
     107        </exec>
    128108        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    129109        <delete file="REVISION"/>
    130110    </target>
    131        
    132         <!--
    133         **********************************************************
    134         ** clean - clean up the build environment
    135         **********************************************************
    136         -->             
     111
     112    <!--
     113    **********************************************************
     114    ** clean - clean up the build environment
     115    **********************************************************
     116    -->
    137117    <target name="clean">
    138118        <delete dir="${plugin.build.dir}"/>
    139119        <delete file="${plugin.jar}"/>
    140120    </target>
    141    
    142         <!--
    143         **********************************************************
    144         ** install - install the plugin in your local JOSM installation
    145         **********************************************************
    146         -->                     
    147         <target name="install" depends="dist">
     121
     122    <!--
     123    **********************************************************
     124    ** install - install the plugin in your local JOSM installation
     125    **********************************************************
     126    -->
     127    <target name="install" depends="dist">
    148128        <property environment="env"/>
    149129        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     
    154134        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    155135    </target>
    156        
    157         <!--
    158         **********************************************************
    159         ** publish - publish the plugin jar
    160         **********************************************************
    161         -->                     
    162         <target name="publish">
    163         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    164             <env key="LANG" value="C"/>
    165             <arg value="commit"/>
    166                 <arg value="--message"/>
    167             <arg value="manual build"/>
    168             <arg value="${plugin.jar}"/>
    169                 </exec>
    170         </target>
    171        
    172136</project>
Note: See TracChangeset for help on using the changeset viewer.