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

i18n update, split plugin and core translation

Location:
applications/editors/josm/plugins/reltoolbox
Files:
31 added
1 edited
1 moved

Legend:

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

    r25696 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="reltoolbox" default="dist" basedir=".">
    31 
    3231    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="RelToolbox" />
     32    <property name="commit.message" value="RelToolbox"/>
    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="plugin.dist.dir"        value="/Users/Zverik/AppData/Roaming/JOSM/plugins"/-->
    4845    <property name="ant.build.javac.target" value="1.5"/>
    49     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    50 
     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}">
    84             <fileset dir="src" includes="**/*.txt" />
     81            <fileset dir="src" includes="**/*.txt"/>
    8582        </copy>
    8683        <copy todir="${plugin.build.dir}">
    8784            <fileset dir=".">
    88                 <include name="README" />
    89                 <include name="LICENSE" />
     85                <include name="README"/>
     86                <include name="LICENSE"/>
    9087            </fileset>
    9188        </copy>
     
    113110        </jar>
    114111    </target>
    115 
    116112    <!--
    117113    **********************************************************
     
    122118    -->
    123119    <target name="revision">
    124 
    125120        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    126121            <env key="LANG" value="C"/>
     
    132127        <delete file="REVISION"/>
    133128    </target>
    134 
    135129    <!--
    136130    **********************************************************
     
    142136        <delete file="${plugin.jar}"/>
    143137    </target>
    144 
    145138    <!--
    146139    **********************************************************
     
    157150        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    158151    </target>
    159 
    160 
    161152    <!--
    162153    ************************** Publishing the plugin ***********************************
     
    177168        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    178169        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    179         <delete file="core.info.xml" />
    180     </target>
    181 
     170        <delete file="core.info.xml"/>
     171    </target>
    182172    <!--
    183173        ** commits the source tree for this plugin
     
    192182        </exec>
    193183    </target>
    194 
    195184    <!--
    196185        ** updates (svn up) the source tree for this plugin
     
    210199        </exec>
    211200    </target>
    212 
    213201    <!--
    214202        ** commits the plugin.jar
     
    232220        </exec>
    233221    </target>
    234 
    235222    <!-- ** make sure svn is present as a command line tool ** -->
    236223    <target name="ensure-svn-present">
    237224        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    238             <env key="LANG" value="C" />
    239             <arg value="--version" />
     225            <env key="LANG" value="C"/>
     226            <arg value="--version"/>
    240227        </exec>
    241228        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    243230            <condition>
    244231                <not>
    245                     <isset property="svn.exit.code" />
     232                    <isset property="svn.exit.code"/>
    246233                </not>
    247234            </condition>
     
    250237            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    251238            <condition>
    252                 <isfailure code="${svn.exit.code}" />
     239                <isfailure code="${svn.exit.code}"/>
    253240            </condition>
    254241        </fail>
    255242    </target>
    256 
    257243    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    258244    </target>
Note: See TracChangeset for help on using the changeset viewer.