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/rgisopen
Files:
20 added
1 edited

Legend:

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

    r23351 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="rgisopen" default="dist" basedir=".">
    31 
    3231    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="New plugin, rgisopen" />
     32    <property name="commit.message" value="New plugin, rgisopen"/>
    3433    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35     <property name="plugin.main.version" value="3400" />
    36 
    37 
     34    <property name="plugin.main.version" value="3400"/>
    3835    <!--
    3936      ************************************************
    4037      ** should not be necessary to change the following properties
    4138     -->
    42     <property name="josm"                   location="../../josm-latest.jar"/>
    43     <property name="plugin.build.dir"       value="build"/>
    44     <property name="plugin.src.dir"         value="src"/>
     39    <property name="josm" location="../../josm-latest.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>
     
    108105                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    109106                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    110                 <attribute name="Plugin-Requires" value="PicLayer"/>
     107                <attribute name="Plugin-Requires" value="PicLayer"/>
    111108            </manifest>
    112109        </jar>
    113110    </target>
    114 
    115111    <!--
    116112    **********************************************************
     
    121117    -->
    122118    <target name="revision">
    123 
    124119        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    125120            <env key="LANG" value="C"/>
     
    131126        <delete file="REVISION"/>
    132127    </target>
    133 
    134128    <!--
    135129    **********************************************************
     
    141135        <delete file="${plugin.jar}"/>
    142136    </target>
    143 
    144137    <!--
    145138    **********************************************************
     
    156149        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    157150    </target>
    158 
    159 
    160151    <!--
    161152    ************************** Publishing the plugin ***********************************
     
    176167        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    177168        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    178         <delete file="core.info.xml" />
    179     </target>
    180 
     169        <delete file="core.info.xml"/>
     170    </target>
    181171    <!--
    182172        ** commits the source tree for this plugin
     
    191181        </exec>
    192182    </target>
    193 
    194183    <!--
    195184        ** updates (svn up) the source tree for this plugin
     
    209198        </exec>
    210199    </target>
    211 
    212200    <!--
    213201        ** commits the plugin.jar
     
    231219        </exec>
    232220    </target>
    233 
    234221    <!-- ** make sure svn is present as a command line tool ** -->
    235222    <target name="ensure-svn-present">
    236223        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    237             <env key="LANG" value="C" />
    238             <arg value="--version" />
     224            <env key="LANG" value="C"/>
     225            <arg value="--version"/>
    239226        </exec>
    240227        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    242229            <condition>
    243230                <not>
    244                     <isset property="svn.exit.code" />
     231                    <isset property="svn.exit.code"/>
    245232                </not>
    246233            </condition>
     
    249236            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    250237            <condition>
    251                 <isfailure code="${svn.exit.code}" />
     238                <isfailure code="${svn.exit.code}"/>
    252239            </condition>
    253240        </fail>
    254241    </target>
    255 
    256242    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    257243    </target>
Note: See TracChangeset for help on using the changeset viewer.