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

i18n update, split plugin and core translation

Location:
applications/editors/josm/plugins/cadastre-fr
Files:
31 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/build.xml

    r25192 r26174  
     1<?xml version="1.0" encoding="utf-8"?>
    12<!--
    23** This is a template build file for the cadastre-fr plugin.
     
    2526-->
    2627<project name="cadastre-fr" default="dist" basedir=".">
    27     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    28     <property name="plugin.dist.dir"        value="../../dist"/>
    29     <property name="plugin.build.dir"       value="build"/>
    30     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     28    <property name="josm" location="../../core/dist/josm-custom.jar"/>
     29    <property name="plugin.dist.dir" value="../../dist"/>
     30    <property name="plugin.build.dir" value="build"/>
     31    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    3132    <property name="ant.build.javac.target" value="1.5"/>
    32 
    33 
    34 
    35         <property name="commit.message" value="Changed constructor for Plugin" />
    36         <property name="plugin.main.version" value="3835" />
    37 
     33    <property name="commit.message" value="Changed constructor for Plugin"/>
     34    <property name="plugin.main.version" value="3835"/>
    3835    <target name="init">
    3936        <mkdir dir="${plugin.build.dir}"/>
     
    4946        <copy todir="${plugin.build.dir}/images">
    5047            <fileset dir="images"/>
     48        </copy>
     49        <copy todir="${plugin.build.dir}/data">
     50            <fileset dir="data"/>
    5151        </copy>
    5252        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     
    8787        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    8888    </target>
     89    <!--
     90         ************************** Publishing the plugin ***********************************
     91        -->
     92    <!--
     93              ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     94              ** property ${coreversion.info.entry.revision}
     95              **
     96            -->
     97    <target name="core-info">
     98        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     99            <env key="LANG" value="C"/>
     100            <arg value="info"/>
     101            <arg value="--xml"/>
     102            <arg value="../../core"/>
     103        </exec>
     104        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
     105        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
     106        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
     107        <delete file="core.info.xml"/>
     108    </target>
     109    <!--
     110             ** commits the source tree for this plugin
     111            -->
     112    <target name="commit-current">
     113        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
     114        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     115            <env key="LANG" value="C"/>
     116            <arg value="commit"/>
     117            <arg value="-m '${commit.message}'"/>
     118            <arg value="."/>
     119        </exec>
     120    </target>
     121    <!--
     122            ** updates (svn up) the source tree for this plugin
     123            -->
     124    <target name="update-current">
     125        <echo>Updating plugin source ...</echo>
     126        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     127            <env key="LANG" value="C"/>
     128            <arg value="up"/>
     129            <arg value="."/>
     130        </exec>
     131        <echo>Updating ${plugin.jar} ...</echo>
     132        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     133            <env key="LANG" value="C"/>
     134            <arg value="up"/>
     135            <arg value="../dist/${plugin.jar}"/>
     136        </exec>
     137    </target>
     138    <!--
     139             ** commits the plugin.jar
     140             -->
     141    <target name="commit-dist">
     142        <echo>
     143    ***** Properties of published ${plugin.jar} *****
     144    Commit message    : '${commit.message}'
     145    Plugin-Mainversion: ${plugin.main.version}
     146    JOSM build version: ${coreversion.info.entry.revision}
     147    Plugin-Version    : ${version.entry.commit.revision}
     148    ***** / Properties of published ${plugin.jar} *****
    89149
    90         <!--
    91                  ************************** Publishing the plugin ***********************************
    92                 -->
    93                         <!--
    94                           ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    95                           ** property ${coreversion.info.entry.revision}
    96                           **
    97                         -->
    98                         <target name="core-info">
    99                         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    100                                     <env key="LANG" value="C"/>
    101                                     <arg value="info"/>
    102                                     <arg value="--xml"/>
    103                                     <arg value="../../core"/>
    104                         </exec>
    105                         <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    106                                 <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    107                                 <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    108                                 <delete file="core.info.xml" />
    109                         </target>
    110 
    111                         <!--
    112                          ** commits the source tree for this plugin
    113                         -->
    114                         <target name="commit-current">
    115                                 <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    116                             <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    117                                             <env key="LANG" value="C"/>
    118                                             <arg value="commit"/>
    119                                             <arg value="-m '${commit.message}'"/>
    120                                             <arg value="."/>
    121                             </exec>
    122                         </target>
    123 
    124                         <!--
    125                         ** updates (svn up) the source tree for this plugin
    126                         -->
    127                         <target name="update-current">
    128                                 <echo>Updating plugin source ...</echo>
    129                             <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    130                                             <env key="LANG" value="C"/>
    131                                             <arg value="up"/>
    132                                             <arg value="."/>
    133                             </exec>
    134                                 <echo>Updating ${plugin.jar} ...</echo>
    135                             <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    136                                             <env key="LANG" value="C"/>
    137                                             <arg value="up"/>
    138                                             <arg value="../dist/${plugin.jar}"/>
    139                             </exec>
    140                         </target>
    141 
    142                         <!--
    143                          ** commits the plugin.jar
    144                          -->
    145                         <target name="commit-dist">
    146                                         <echo>
    147         ***** Properties of published ${plugin.jar} *****
    148         Commit message    : '${commit.message}'
    149         Plugin-Mainversion: ${plugin.main.version}
    150         JOSM build version: ${coreversion.info.entry.revision}
    151         Plugin-Version    : ${version.entry.commit.revision}
    152         ***** / Properties of published ${plugin.jar} *****
    153 
    154         Now commiting ${plugin.jar} ...
    155         </echo>
    156                                     <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    157                                                     <env key="LANG" value="C"/>
    158                                                                 <arg value="-m '${commit.message}'"/>
    159                                                                 <arg value="commit"/>
    160                                                 <arg value="${plugin.jar}"/>
    161                                     </exec>
    162                         </target>
    163 
    164                         <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
    165                         </target>
     150    Now commiting ${plugin.jar} ...
     151    </echo>
     152        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     153            <env key="LANG" value="C"/>
     154            <arg value="-m '${commit.message}'"/>
     155            <arg value="commit"/>
     156            <arg value="${plugin.jar}"/>
     157        </exec>
     158    </target>
     159    <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
     160            </target>
    166161</project>
Note: See TracChangeset for help on using the changeset viewer.