Ignore:
Timestamp:
2009-11-15T11:51:34+01:00 (17 years ago)
Author:
guggis
Message:

Fixed merging of nodes
improved messages
completed I18n
now uses referrers and searching of nodes in a bounding box
now only enabled if current layer is a data layer
updated build.xml

File:
1 edited

Legend:

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

    r18503 r18613  
    2222-->
    2323<project name="waydownloader" default="dist" basedir=".">
     24       
     25        <!--
     26      ** update before publishing
     27        -->
     28        <property name="commit.message" value="Fixed merging of nodes; improved messages; completed I18n; now uses referers and searching of nodes in a bounding box; now only enabled if current layer is a data layer; Updated build.xml" />         
     29        <property name="plugin.main.version" value="2457" />
     30       
     31       
    2432    <!--
    2533      ************************************************
     
    140148        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    141149    </target>
     150       
     151       
     152        <!--
     153                 ************************** Publishing the plugin ***********************************
     154                -->
     155                        <!--
     156                          ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     157                          ** property ${coreversion.info.entry.revision}
     158                          **
     159                        -->
     160                        <target name="core-info">
     161                        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     162                                    <env key="LANG" value="C"/>
     163                                    <arg value="info"/>
     164                                    <arg value="--xml"/>
     165                                    <arg value="../../core"/>
     166                        </exec>
     167                        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
     168                                <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>                 
     169                                <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
     170                                <delete file="core.info.xml" />
     171                        </target>
     172
     173                        <!--
     174                         ** commits the source tree for this plugin
     175                        -->
     176                        <target name="commit-current">
     177                                <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
     178                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     179                                            <env key="LANG" value="C"/>
     180                                                <arg value="-m '${commit.message}'"/>
     181                                                        <arg value="commit"/>
     182                                            <arg value="."/>
     183                            </exec>         
     184                        </target>
     185
     186                        <!--
     187                        ** updates (svn up) the source tree for this plugin
     188                        -->
     189                        <target name="update-current">
     190                                <echo>Updating plugin source ...</echo>
     191                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     192                                            <env key="LANG" value="C"/>
     193                                            <arg value="up"/>
     194                                            <arg value="."/>
     195                            </exec>         
     196                                <echo>Updating ${plugin.jar} ...</echo>
     197                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     198                                            <env key="LANG" value="C"/>
     199                                            <arg value="up"/>
     200                                            <arg value="../dist/${plugin.jar}"/>
     201                            </exec>         
     202                        </target>
     203                       
     204                        <!--
     205                         ** commits the plugin.jar
     206                         -->
     207                        <target name="commit-dist">
     208                                        <echo>
     209        ***** Properties of published ${plugin.jar} *****
     210        Commit message    : '${commit.message}'                                 
     211        Plugin-Mainversion: ${plugin.main.version}
     212        JOSM build version: ${coreversion.info.entry.revision}
     213        Plugin-Version    : ${version.entry.commit.revision}
     214        ***** / Properties of published ${plugin.jar} *****                                     
     215                                               
     216        Now commiting ${plugin.jar} ...
     217        </echo>                                 
     218                                    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     219                                                    <env key="LANG" value="C"/>
     220                                                                <arg value="-m '${commit.message}'"/>
     221                                                                <arg value="commit"/>                                           
     222                                                <arg value="${plugin.jar}"/>
     223                                    </exec>         
     224                        </target>
     225                                       
     226                        <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
     227                        </target>       
    142228</project>
Note: See TracChangeset for help on using the changeset viewer.