Ignore:
Timestamp:
2011-06-25T19:02:31+02:00 (14 years ago)
Author:
stoecker
Message:

i18n update, split plugin and core translation

File:
1 edited

Legend:

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

    r25191 r26174  
    1 <?xml version="1.0" encoding="UTF-8"?>
     1<?xml version="1.0" encoding="utf-8"?>
    22<!--
    33** This is a template build file for a JOSM  plugin.
     
    2929-->
    3030<project name="waypoint_search" default="dist" basedir=".">
    31 
    3231    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="bugfix of search when layer is added" />
     32    <property name="commit.message" value="bugfix of search when layer is added"/>
    3433    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35     <property name="plugin.main.version" value="3835" />
    36 
    37 
     34    <property name="plugin.main.version" value="3835"/>
    3835    <!--
    3936      ************************************************
    4037      ** should not be necessary to change the following properties
    4138     -->
    42     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    43     <property name="plugin.build.dir"       value="build"/>
    44     <property name="plugin.src.dir"         value="src"/>
     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"/>
    4542    <!-- this is the directory where the plugin jar is copied to -->
    46     <property name="plugin.dist.dir"        value="../../dist"/>
     43    <property name="plugin.dist.dir" value="../../dist"/>
    4744    <property name="ant.build.javac.target" value="1.6"/>
    48     <property name="plugin.dist.dir"        value="../../dist"/>
    49     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    50 
     45    <property name="plugin.dist.dir" value="../../dist"/>
     46    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    5147    <!--
    5248    **********************************************************
     
    5753        <mkdir dir="${plugin.build.dir}"/>
    5854    </target>
    59 
    6055    <!--
    6156    **********************************************************
     
    7065        </javac>
    7166    </target>
    72 
    7367    <!--
    7468    **********************************************************
     
    8175            <fileset dir="images"/>
    8276        </copy>
     77        <copy todir="${plugin.build.dir}/data">
     78            <fileset dir="data"/>
     79        </copy>
    8380        <copy todir="${plugin.build.dir}">
    8481            <fileset dir=".">
    85                 <include name="README" />
    86                 <include name="LICENSE" />
     82                <include name="README"/>
     83                <include name="LICENSE"/>
    8784            </fileset>
    8885        </copy>
     
    107104        </jar>
    108105    </target>
    109 
    110106    <!--
    111107    **********************************************************
     
    115111    **********************************************************
    116112    -->
    117        
    118 
    119     <target name="revision">   
    120          <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     113    <target name="revision">
     114        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    121115            <env key="LANG" value="C"/>
    122116            <arg value="info"/>
     
    125119        </exec>
    126120        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    127         <delete file="REVISION"/>       
    128     </target>
    129 
     121        <delete file="REVISION"/>
     122    </target>
    130123    <!--
    131124    **********************************************************
     
    137130        <delete file="${plugin.jar}"/>
    138131    </target>
    139 
    140132    <!--
    141133    **********************************************************
     
    152144        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    153145    </target>
    154 
    155 
    156146    <!--
    157147    ************************** Publishing the plugin ***********************************
     
    172162        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    173163        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    174         <delete file="core.info.xml" />
    175     </target>
    176 
     164        <delete file="core.info.xml"/>
     165    </target>
    177166    <!--
    178167        ** commits the source tree for this plugin
     
    187176        </exec>
    188177    </target>
    189 
    190178    <!--
    191179        ** updates (svn up) the source tree for this plugin
     
    205193        </exec>
    206194    </target>
    207 
    208195    <!--
    209196        ** commits the plugin.jar
     
    227214        </exec>
    228215    </target>
    229 
    230216    <!-- ** make sure svn is present as a command line tool ** -->
    231217    <target name="ensure-svn-present">
    232218        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    233             <env key="LANG" value="C" />
    234             <arg value="--version" />
     219            <env key="LANG" value="C"/>
     220            <arg value="--version"/>
    235221        </exec>
    236222        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    238224            <condition>
    239225                <not>
    240                     <isset property="svn.exit.code" />
     226                    <isset property="svn.exit.code"/>
    241227                </not>
    242228            </condition>
     
    245231            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    246232            <condition>
    247                 <isfailure code="${svn.exit.code}" />
     233                <isfailure code="${svn.exit.code}"/>
    248234            </condition>
    249235        </fail>
    250236    </target>
    251 
    252237    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    253238    </target>
Note: See TracChangeset for help on using the changeset viewer.