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

i18n update, split plugin and core translation

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

Legend:

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

    r25456 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="gpxfilter" default="dist" basedir=".">
    31 
    3231    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="Commit message" />
     32    <property name="commit.message" value="Commit message"/>
    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.5"/>
    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    **********************************************************
     
    8478            <fileset dir="images"/>
    8579        </copy>
     80        <copy todir="${plugin.build.dir}/data">
     81            <fileset dir="data"/>
     82        </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>
     
    110107        </jar>
    111108    </target>
    112 
    113109    <!--
    114110    **********************************************************
     
    119115    -->
    120116    <target name="revision">
    121 
    122117        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    123118            <env key="LANG" value="C"/>
     
    129124        <delete file="REVISION"/>
    130125    </target>
    131 
    132126    <!--
    133127    **********************************************************
     
    139133        <delete file="${plugin.jar}"/>
    140134    </target>
    141 
    142135    <!--
    143136    **********************************************************
     
    154147        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    155148    </target>
    156 
    157 
    158149    <!--
    159150    ************************** Publishing the plugin ***********************************
     
    174165        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    175166        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    176         <delete file="core.info.xml" />
    177     </target>
    178 
     167        <delete file="core.info.xml"/>
     168    </target>
    179169    <!--
    180170        ** commits the source tree for this plugin
     
    189179        </exec>
    190180    </target>
    191 
    192181    <!--
    193182        ** updates (svn up) the source tree for this plugin
     
    207196        </exec>
    208197    </target>
    209 
    210198    <!--
    211199        ** commits the plugin.jar
     
    229217        </exec>
    230218    </target>
    231 
    232219    <!-- ** make sure svn is present as a command line tool ** -->
    233220    <target name="ensure-svn-present">
    234221        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    235             <env key="LANG" value="C" />
    236             <arg value="--version" />
     222            <env key="LANG" value="C"/>
     223            <arg value="--version"/>
    237224        </exec>
    238225        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    240227            <condition>
    241228                <not>
    242                     <isset property="svn.exit.code" />
     229                    <isset property="svn.exit.code"/>
    243230                </not>
    244231            </condition>
     
    247234            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    248235            <condition>
    249                 <isfailure code="${svn.exit.code}" />
     236                <isfailure code="${svn.exit.code}"/>
    250237            </condition>
    251238        </fail>
    252239    </target>
    253 
    254240    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    255241    </target>
Note: See TracChangeset for help on using the changeset viewer.