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/proj4j
Files:
29 added
1 edited

Legend:

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

    r25454 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="proj4j" 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="Commit message" />
     36    <property name="commit.message" value="Commit message"/>
    3837    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    39     <property name="plugin.main.version" value="3872" />
    40 
    41     <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/>   
    42 
     38    <property name="plugin.main.version" value="3872"/>
     39    <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/>
    4340    <!--
    4441      ************************************************
    4542      ** should not be necessary to change the following properties
    4643     -->
    47     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    48     <property name="plugin.build.dir"       value="build"/>
    49     <property name="plugin.src.dir"         value="src"/>
     44    <property name="josm" location="../../core/dist/josm-custom.jar"/>
     45    <property name="plugin.build.dir" value="build"/>
     46    <property name="plugin.src.dir" value="src"/>
    5047    <!-- this is the directory where the plugin jar is copied to -->
    51     <property name="plugin.dist.dir"        value="../../dist"/>
     48    <property name="plugin.dist.dir" value="../../dist"/>
    5249    <property name="ant.build.javac.target" value="1.5"/>
    53     <property name="plugin.dist.dir"        value="../../dist"/>
    54     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    55 
     50    <property name="plugin.dist.dir" value="../../dist"/>
     51    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    5652    <!--
    5753    **********************************************************
     
    6258        <mkdir dir="${plugin.build.dir}"/>
    6359    </target>
    64 
    6560    <!--
    6661    **********************************************************
     
    7267        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
    7368            <classpath>
    74               <pathelement location="${josm}"/>
    75               <pathelement location="${libproj4j}"/>                           
    76             </classpath>       
     69                <pathelement location="${josm}"/>
     70                <pathelement location="${libproj4j}"/>
     71            </classpath>
    7772            <compilerarg value="-Xlint:deprecation"/>
    7873            <compilerarg value="-Xlint:unchecked"/>
    7974        </javac>
    8075    </target>
    81 
    8276    <!--
    8377    **********************************************************
     
    9387            <fileset dir="images"/>
    9488        </copy>
     89        <copy todir="${plugin.build.dir}/data">
     90            <fileset dir="data"/>
     91        </copy>
    9592        <copy todir="${plugin.build.dir}">
    9693            <fileset dir=".">
    97                 <include name="README" />
    98                 <include name="LICENSE" />
     94                <include name="README"/>
     95                <include name="LICENSE"/>
    9996            </fileset>
    10097        </copy>
     
    121118        </jar>
    122119    </target>
    123 
    124120    <!--
    125121    **********************************************************
     
    130126    -->
    131127    <target name="revision">
    132 
    133128        <exec append="false" output="REVISION" executable="${svn}" failifexecutionfails="false">
    134129            <env key="LANG" value="C"/>
     
    140135        <delete file="REVISION"/>
    141136    </target>
    142 
    143137    <!--
    144138    **********************************************************
     
    150144        <delete file="${plugin.jar}"/>
    151145    </target>
    152 
    153146    <!--
    154147    **********************************************************
     
    165158        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    166159    </target>
    167 
    168 
    169160    <!--
    170161    ************************** Publishing the plugin ***********************************
     
    185176        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    186177        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    187         <delete file="core.info.xml" />
    188     </target>
    189 
     178        <delete file="core.info.xml"/>
     179    </target>
    190180    <!--
    191181        ** commits the source tree for this plugin
     
    198188            <arg value="-m '${commit.message}'"/>
    199189            <arg value="."/>
    200                 <arg value="${svn.username_arg}"/>
    201                 <arg value="${svn.username}"/>
    202                 <arg value="${svn.password_arg}"/>
    203                 <arg value="${svn.password}"/>
    204         </exec>
    205     </target>
    206 
     190            <arg value="${svn.username_arg}"/>
     191            <arg value="${svn.username}"/>
     192            <arg value="${svn.password_arg}"/>
     193            <arg value="${svn.password}"/>
     194        </exec>
     195    </target>
    207196    <!--
    208197        ** updates (svn up) the source tree for this plugin
     
    222211        </exec>
    223212    </target>
    224 
    225213    <!--
    226214        ** commits the plugin.jar
     
    242230            <arg value="commit"/>
    243231            <arg value="${plugin.jar}"/>
    244                 <arg value="${svn.username_arg}"/>
    245                 <arg value="${svn.username}"/>
    246                 <arg value="${svn.password_arg}"/>
    247                 <arg value="${svn.password}"/>
    248         </exec>
    249     </target>
    250 
     232            <arg value="${svn.username_arg}"/>
     233            <arg value="${svn.username}"/>
     234            <arg value="${svn.password_arg}"/>
     235            <arg value="${svn.password}"/>
     236        </exec>
     237    </target>
    251238    <!-- ** make sure svn is present as a command line tool ** -->
    252239    <target name="ensure-svn-present">
    253240        <exec append="true" output="svn.log" executable="${svn}" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    254             <env key="LANG" value="C" />
    255             <arg value="--version" />
     241            <env key="LANG" value="C"/>
     242            <arg value="--version"/>
    256243        </exec>
    257244        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    259246            <condition>
    260247                <not>
    261                     <isset property="svn.exit.code" />
     248                    <isset property="svn.exit.code"/>
    262249                </not>
    263250            </condition>
     
    266253            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    267254            <condition>
    268                 <isfailure code="${svn.exit.code}" />
     255                <isfailure code="${svn.exit.code}"/>
    269256            </condition>
    270257        </fail>
    271258    </target>
    272 
    273259    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    274260    </target>
Note: See TracChangeset for help on using the changeset viewer.