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/OpeningHoursEditor
Files:
31 added
1 edited

Legend:

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

    r25190 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="OpeningHoursEditor" default="dist" basedir=".">
    31 
    3231    <!-- enter the SVN commit message -->
    33     <property name="commit.message" value="fixed main version" />
     32    <property name="commit.message" value="fixed main version"/>
    3433    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    35         <property name="plugin.main.version" value="3835" />
    36 
    37 
     34    <property name="plugin.main.version" value="3835"/>
    3835    <!--
    3936      ************************************************
    4037      ** should not be necessary to change the following properties
    4138     -->
    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"/>
     39    <property name="josm" location="../../core/dist/josm-custom.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.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    49 
    50 
    51         <!--
     45    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     46    <!--
    5247    **********************************************************
    5348    ** javacc-otc - compiles OpeningTimeCompiler
    5449    **
    55         ** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5
    56     **********************************************************
    57     -->
    58         <target name="javacc-otc">
    59                 <echo message="compiling OpeningTimeCompiler with javacc ... " />
    60                 <exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/">
    61                         <arg value="OpeningTimeCompiler.jj" />
    62                 </exec>
    63         </target>
    64        
    65        
     50    ** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5
     51    **********************************************************
     52    -->
     53    <target name="javacc-otc">
     54        <echo message="compiling OpeningTimeCompiler with javacc ... "/>
     55        <exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/">
     56            <arg value="OpeningTimeCompiler.jj"/>
     57        </exec>
     58    </target>
    6659    <!--
    6760    **********************************************************
     
    7265        <mkdir dir="${plugin.build.dir}"/>
    7366    </target>
    74 
    7567    <!--
    7668    **********************************************************
     
    8577        </javac>
    8678    </target>
    87 
    8879    <!--
    8980    **********************************************************
     
    9687            <fileset dir="images"/>
    9788        </copy>
     89        <copy todir="${plugin.build.dir}/data">
     90            <fileset dir="data"/>
     91        </copy>
    9892        <copy todir="${plugin.build.dir}">
    9993            <fileset dir=".">
    100                 <include name="README" />
    101                 <include name="LICENSE" />
     94                <include name="README"/>
     95                <include name="LICENSE"/>
    10296            </fileset>
    10397        </copy>
     
    111105        ************************************************
    112106    -->
    113                         <manifest>
    114                                 <attribute name="Author" value="Falko Thomale" />
    115                                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin" />
    116                                 <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
    117                                 <attribute name="Plugin-Description" value="extended options for editing opening_hours" />
     107            <manifest>
     108                <attribute name="Author" value="Falko Thomale"/>
     109                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin"/>
     110                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     111                <attribute name="Plugin-Description" value="extended options for editing opening_hours"/>
    118112                <attribute name="Plugin-Icon" value="images/opening_hours.png"/>
    119                                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor" />
    120                                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
    121                                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
    122                         </manifest>
     113                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/>
     114                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
     115                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     116            </manifest>
    123117        </jar>
    124118    </target>
    125 
    126119    <!--
    127120    **********************************************************
     
    132125    -->
    133126    <target name="revision">
    134 
    135127        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    136128            <env key="LANG" value="C"/>
     
    142134        <delete file="REVISION"/>
    143135    </target>
    144 
    145136    <!--
    146137    **********************************************************
     
    152143        <delete file="${plugin.jar}"/>
    153144    </target>
    154 
    155145    <!--
    156146    **********************************************************
     
    167157        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    168158    </target>
    169 
    170 
    171159    <!--
    172160    ************************** Publishing the plugin ***********************************
     
    187175        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    188176        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
    189         <delete file="core.info.xml" />
    190     </target>
    191 
     177        <delete file="core.info.xml"/>
     178    </target>
    192179    <!--
    193180        ** commits the source tree for this plugin
     
    202189        </exec>
    203190    </target>
    204 
    205191    <!--
    206192        ** updates (svn up) the source tree for this plugin
     
    220206        </exec>
    221207    </target>
    222 
    223208    <!--
    224209        ** commits the plugin.jar
     
    242227        </exec>
    243228    </target>
    244 
    245229    <!-- ** make sure svn is present as a command line tool ** -->
    246230    <target name="ensure-svn-present">
    247231        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
    248             <env key="LANG" value="C" />
    249             <arg value="--version" />
     232            <env key="LANG" value="C"/>
     233            <arg value="--version"/>
    250234        </exec>
    251235        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     
    253237            <condition>
    254238                <not>
    255                     <isset property="svn.exit.code" />
     239                    <isset property="svn.exit.code"/>
    256240                </not>
    257241            </condition>
     
    260244            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    261245            <condition>
    262                 <isfailure code="${svn.exit.code}" />
     246                <isfailure code="${svn.exit.code}"/>
    263247            </condition>
    264248        </fail>
    265249    </target>
    266 
    267250    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    268251    </target>
Note: See TracChangeset for help on using the changeset viewer.