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

i18n update, split plugin and core translation

File:
1 edited

Legend:

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

    r23263 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="myPluginName" 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="" />
    36 
    37 
    38     <!--
    39       ************************************************
    40       ** should not be necessary to change the following properties
    41      -->
    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"/>
     34    <property name="plugin.main.version" value=""/>
     35    <!-- should not be necessary to change the following properties -->
     36    <property name="josm" location="../../core/dist/josm-custom.jar"/>
     37    <property name="plugin.build.dir" value="build"/>
     38    <property name="plugin.src.dir" value="src"/>
    4539    <!-- this is the directory where the plugin jar is copied to -->
    46     <property name="plugin.dist.dir"        value="../../dist"/>
     40    <property name="plugin.dist.dir" value="../../dist"/>
    4741    <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 
     42    <property name="plugin.dist.dir" value="../../dist"/>
     43    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    5144    <!--
    5245    **********************************************************
     
    5750        <mkdir dir="${plugin.build.dir}"/>
    5851    </target>
    59 
    6052    <!--
    6153    **********************************************************
     
    7062        </javac>
    7163    </target>
    72 
    7364    <!--
    7465    **********************************************************
     
    8475            <fileset dir="images"/>
    8576        </copy>
     77        <copy todir="${plugin.build.dir}/data">
     78            <fileset dir="data"/>
     79        </copy>
    8680        <copy todir="${plugin.build.dir}">
    8781            <fileset dir=".">
    88                 <include name="README" />
    89                 <include name="LICENSE" />
     82                <include name="README"/>
     83                <include name="LICENSE"/>
    9084            </fileset>
    9185        </copy>
    9286        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    9387            <!--
    94         ************************************************
    95         ** configure these properties. Most of them will be copied to the plugins
    96         ** manifest file. Property values will also show up in the list available
    97         ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    98         **
    99         ************************************************
    100     -->
     88            ************************************************
     89            ** configure these properties. Most of them will be copied to the plugins
     90            ** manifest file. Property values will also show up in the list available
     91            ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
     92            **
     93            ************************************************
     94            -->
    10195            <manifest>
    10296                <attribute name="Author" value="..."/>
     
    111105        </jar>
    112106    </target>
    113 
    114107    <!--
    115108    **********************************************************
     
    120113    -->
    121114    <target name="revision">
    122 
    123115        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    124116            <env key="LANG" value="C"/>
     
    130122        <delete file="REVISION"/>
    131123    </target>
    132 
    133124    <!--
    134125    **********************************************************
     
    140131        <delete file="${plugin.jar}"/>
    141132    </target>
    142 
    143133    <!--
    144134    **********************************************************
     
    155145        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    156146    </target>
    157 
    158 
    159147    <!--
    160148    ************************** Publishing the plugin ***********************************
    161149    -->
    162150    <!--
    163         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    164         ** property ${coreversion.info.entry.revision}
    165         **
    166         -->
     151    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     152    ** property ${coreversion.info.entry.revision}
     153    -->
    167154    <target name="core-info">
    168155        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     
    175162        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    176163        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    177         <delete file="core.info.xml" />
    178     </target>
    179 
    180     <!--
    181         ** commits the source tree for this plugin
    182         -->
     164        <delete file="core.info.xml"/>
     165    </target>
     166    <!-- commits the source tree for this plugin -->
    183167    <target name="commit-current">
    184168        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
     
    190174        </exec>
    191175    </target>
    192 
    193     <!--
    194         ** updates (svn up) the source tree for this plugin
    195         -->
     176    <!-- updates (svn up) the source tree for this plugin -->
    196177    <target name="update-current">
    197178        <echo>Updating plugin source ...</echo>
     
    208189        </exec>
    209190    </target>
    210 
    211     <!--
    212         ** commits the plugin.jar
    213         -->
     191    <!-- commits the plugin.jar -->
    214192    <target name="commit-dist">
    215193        <echo>
     
    230208        </exec>
    231209    </target>
    232 
    233     <!-- ** make sure svn is present as a command line tool ** -->
     210    <!-- make sure svn is present as a command line tool -->
    234211    <target name="ensure-svn-present">
    235212        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    236             <env key="LANG" value="C" />
    237             <arg value="--version" />
     213            <env key="LANG" value="C"/>
     214            <arg value="--version"/>
    238215        </exec>
    239216        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    241218            <condition>
    242219                <not>
    243                     <isset property="svn.exit.code" />
     220                    <isset property="svn.exit.code"/>
    244221                </not>
    245222            </condition>
     
    248225            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    249226            <condition>
    250                 <isfailure code="${svn.exit.code}" />
     227                <isfailure code="${svn.exit.code}"/>
    251228            </condition>
    252229        </fail>
    253230    </target>
    254 
    255231    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    256232    </target>
Note: See TracChangeset for help on using the changeset viewer.