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

i18n update, split plugin and core translation

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

Legend:

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

    r25199 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="restart" 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    **********************************************************
     
    8074        <copy todir="${plugin.build.dir}">
    8175            <fileset dir=".">
    82                 <include name="README" />
    83                 <include name="LICENSE" />
     76                <include name="README"/>
     77                <include name="LICENSE"/>
    8478            </fileset>
     79        </copy>
     80        <copy todir="${plugin.build.dir}/data">
     81            <fileset dir="data"/>
    8582        </copy>
    8683        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     
    103100        </jar>
    104101    </target>
    105 
    106102    <!--
    107103    **********************************************************
     
    112108    -->
    113109    <target name="revision">
    114 
    115110        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    116111            <env key="LANG" value="C"/>
     
    122117        <delete file="REVISION"/>
    123118    </target>
    124 
    125119    <!--
    126120    **********************************************************
     
    132126        <delete file="${plugin.jar}"/>
    133127    </target>
    134 
    135128    <!--
    136129    **********************************************************
     
    147140        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    148141    </target>
    149 
    150 
    151142    <!--
    152143    ************************** Publishing the plugin ***********************************
     
    167158        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    168159        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    169         <delete file="core.info.xml" />
    170     </target>
    171 
     160        <delete file="core.info.xml"/>
     161    </target>
    172162    <!--
    173163        ** commits the source tree for this plugin
     
    182172        </exec>
    183173    </target>
    184 
    185174    <!--
    186175        ** updates (svn up) the source tree for this plugin
     
    200189        </exec>
    201190    </target>
    202 
    203191    <!--
    204192        ** commits the plugin.jar
     
    222210        </exec>
    223211    </target>
    224 
    225212    <!-- ** make sure svn is present as a command line tool ** -->
    226213    <target name="ensure-svn-present">
    227214        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    228             <env key="LANG" value="C" />
    229             <arg value="--version" />
     215            <env key="LANG" value="C"/>
     216            <arg value="--version"/>
    230217        </exec>
    231218        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    233220            <condition>
    234221                <not>
    235                     <isset property="svn.exit.code" />
     222                    <isset property="svn.exit.code"/>
    236223                </not>
    237224            </condition>
     
    240227            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    241228            <condition>
    242                 <isfailure code="${svn.exit.code}" />
     229                <isfailure code="${svn.exit.code}"/>
    243230            </condition>
    244231        </fail>
    245232    </target>
    246 
    247233    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    248234    </target>
Note: See TracChangeset for help on using the changeset viewer.