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/epsg31287
Files:
11 added
1 edited

Legend:

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

    r25262 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="epsg31287" default="dist" basedir=".">
    31 
    3231    <!-- read build.properties for local settings -->
    33     <property file="build.properties" />
     32    <property file="build.properties"/>
    3433    <!-- enter the SVN command file name -->
    35     <property name="svn" value="svn" />
     34    <property name="svn" value="svn"/>
    3635    <!-- enter the SVN commit message -->
    37     <property name="commit.message" value="fixed proj4 Parameters (thanks to Hetzi + Mikael Rittri)" />
     36    <property name="commit.message" value="fixed proj4 Parameters (thanks to Hetzi + Mikael Rittri)"/>
    3837    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    39     <property name="plugin.main.version" value="3872" />
    40 
    41 
     38    <property name="plugin.main.version" value="3872"/>
    4239    <!--
    4340      ************************************************
    4441      ** should not be necessary to change the following properties
    4542     -->
    46     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    47     <property name="plugin.build.dir"       value="build"/>
    48     <property name="plugin.src.dir"         value="src"/>
     43    <property name="josm" location="../../core/dist/josm-custom.jar"/>
     44    <property name="plugin.build.dir" value="build"/>
     45    <property name="plugin.src.dir" value="src"/>
    4946    <!-- this is the directory where the plugin jar is copied to -->
    50     <property name="plugin.dist.dir"        value="../../dist"/>
     47    <property name="plugin.dist.dir" value="../../dist"/>
    5148    <property name="ant.build.javac.target" value="1.5"/>
    52     <property name="plugin.dist.dir"        value="../../dist"/>
    53     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    54 
     49    <property name="plugin.dist.dir" value="../../dist"/>
     50    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    5551    <!--
    5652    **********************************************************
     
    6157        <mkdir dir="${plugin.build.dir}"/>
    6258    </target>
    63 
    6459    <!--
    6560    **********************************************************
     
    7469        </javac>
    7570    </target>
    76 
    7771    <!--
    7872    **********************************************************
     
    8882            <fileset dir="images"/>
    8983        </copy>
     84        <copy todir="${plugin.build.dir}/data">
     85            <fileset dir="data"/>
     86        </copy>
    9087        <copy todir="${plugin.build.dir}">
    9188            <fileset dir=".">
    92                 <include name="README" />
    93                 <include name="LICENSE" />
     89                <include name="README"/>
     90                <include name="LICENSE"/>
    9491            </fileset>
    9592        </copy>
    9693        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    97                 <!-- <zipfileset src="lib/javaproj-1.0.6.jar" /> -->
     94            <!-- <zipfileset src="lib/javaproj-1.0.6.jar" /> -->
    9895            <!--
    9996        ************************************************
     
    112109                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    113110                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    114                 <!-- <attribute name="Plugin-Version" value="0.3"/> -->
     111                <!-- <attribute name="Plugin-Version" value="0.3"/> -->
    115112            </manifest>
    116113        </jar>
    117114    </target>
    118 
    119115    <!--
    120116    **********************************************************
     
    125121    -->
    126122    <target name="revision">
    127 
    128123        <exec append="false" output="REVISION" executable="${svn}" failifexecutionfails="false">
    129124            <env key="LANG" value="C"/>
     
    135130        <delete file="REVISION"/>
    136131    </target>
    137 
    138132    <!--
    139133    **********************************************************
     
    145139        <delete file="${plugin.jar}"/>
    146140    </target>
    147 
    148141    <!--
    149142    **********************************************************
     
    160153        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    161154    </target>
    162 
    163 
    164155    <!--
    165156    ************************** Publishing the plugin ***********************************
     
    180171        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    181172        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    182         <delete file="core.info.xml" />
    183     </target>
    184 
     173        <delete file="core.info.xml"/>
     174    </target>
    185175    <!--
    186176        ** commits the source tree for this plugin
     
    193183            <arg value="-m '${commit.message}'"/>
    194184            <arg value="."/>
    195                 <arg value="${svn.username_arg}"/>
    196                 <arg value="${svn.username}"/>
    197                 <arg value="${svn.password_arg}"/>
    198                 <arg value="${svn.password}"/>
    199         </exec>
    200     </target>
    201 
     185            <arg value="${svn.username_arg}"/>
     186            <arg value="${svn.username}"/>
     187            <arg value="${svn.password_arg}"/>
     188            <arg value="${svn.password}"/>
     189        </exec>
     190    </target>
    202191    <!--
    203192        ** updates (svn up) the source tree for this plugin
     
    217206        </exec>
    218207    </target>
    219 
    220208    <!--
    221209        ** commits the plugin.jar
     
    237225            <arg value="commit"/>
    238226            <arg value="${plugin.jar}"/>
    239                 <arg value="${svn.username_arg}"/>
    240                 <arg value="${svn.username}"/>
    241                 <arg value="${svn.password_arg}"/>
    242                 <arg value="${svn.password}"/>
    243         </exec>
    244     </target>
    245 
     227            <arg value="${svn.username_arg}"/>
     228            <arg value="${svn.username}"/>
     229            <arg value="${svn.password_arg}"/>
     230            <arg value="${svn.password}"/>
     231        </exec>
     232    </target>
    246233    <!-- ** make sure svn is present as a command line tool ** -->
    247234    <target name="ensure-svn-present">
    248235        <exec append="true" output="svn.log" executable="${svn}" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    249             <env key="LANG" value="C" />
    250             <arg value="--version" />
     236            <env key="LANG" value="C"/>
     237            <arg value="--version"/>
    251238        </exec>
    252239        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    254241            <condition>
    255242                <not>
    256                     <isset property="svn.exit.code" />
     243                    <isset property="svn.exit.code"/>
    257244                </not>
    258245            </condition>
     
    261248            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    262249            <condition>
    263                 <isfailure code="${svn.exit.code}" />
     250                <isfailure code="${svn.exit.code}"/>
    264251            </condition>
    265252        </fail>
    266253    </target>
    267 
    268254    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    269255    </target>
Note: See TracChangeset for help on using the changeset viewer.