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

i18n update, split plugin and core translation

File:
1 edited

Legend:

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

    r25192 r26174  
     1<?xml version="1.0" encoding="utf-8"?>
    12<project name="czechaddress" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    3     <property name="plugin.dist.dir"        value="../../dist"/>
    4     <property name="plugin.build.dir"       value="build"/>
    5     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    6     <property name="plugin.manifest"        value="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
     3    <property name="josm" location="../../core/dist/josm-custom.jar"/>
     4    <property name="plugin.dist.dir" value="../../dist"/>
     5    <property name="plugin.build.dir" value="build"/>
     6    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     7    <property name="plugin.manifest" value="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
    78    <property name="ant.build.javac.target" value="1.5"/>
    8 
    9 
    10 
    119    <target name="clean" description="Removes all build files and the plugins's jar">
    1210        <delete dir="${plugin.build.dir}"/>
    1311        <delete file="${plugin.jar}"/>
    1412    </target>
    15 
    16 
    17 
    1813    <target name="init">
    1914        <mkdir dir="${plugin.build.dir}"/>
    2015        <mkdir dir="${plugin.dist.dir}"/>
    2116    </target>
    22 
    23 
    24 
    25     <target name="compile" depends="init,revision"
    26             description="Compile the plugin and make it ready for running">
    27 
    28         <javac srcdir="src"
    29                classpath="${josm}"
    30                debug="true"
    31                encoding="utf8"
    32                destdir="${plugin.build.dir}">
     17    <target name="compile" depends="init,revision" description="Compile the plugin and make it ready for running">
     18        <javac srcdir="src" classpath="${josm}" debug="true" encoding="utf8" destdir="${plugin.build.dir}">
    3319            <compilerarg value="-Xlint:deprecation"/>
    3420            <compilerarg value="-Xlint:unchecked"/>
    3521        </javac>
    36 
    3722        <copy todir="${plugin.build.dir}/images">
    3823            <fileset dir="images"/>
    3924        </copy>
    40 
     25        <copy todir="${plugin.build.dir}/data">
     26            <fileset dir="data"/>
     27        </copy>
    4128        <manifest file="${plugin.manifest}">
    4229            <attribute name="Author" value="Radomír Černoch"/>
     
    4835            <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    4936        </manifest>
    50 
    5137    </target>
    52 
    53 
    54 
    5538    <target name="dist" depends="compile">
    56         <jar destfile="${plugin.jar}"
    57              basedir ="${plugin.build.dir}"
    58              manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
     39        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
    5940    </target>
    60 
    61 
    62 
    6341    <target name="revision">
    6442        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     
    6846            <arg value="."/>
    6947        </exec>
    70         <xmlproperty file="REVISION" prefix="version"
    71                      keepRoot="false" collapseAttributes="true"/>
     48        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    7249        <delete file="REVISION"/>
    7350    </target>
    74 
    75 
    76 
    7751    <target name="install" depends="dist">
    7852        <property environment="env"/>
    79         <condition property="josm.plugins.dir"
    80                    value="${env.APPDATA}/JOSM/plugins"
    81                    else="${user.home}/.josm/plugins">
    82             <and><os family="windows"/></and>
     53        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     54            <and>
     55                <os family="windows"/>
     56            </and>
    8357        </condition>
    8458        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    8559    </target>
    86 
    87 
    88 
    8960    <target name="run" depends="compile">
    9061        <java classname="JOSM" fork="true">
     
    10374        </java>
    10475    </target>
    105 
    106 
    107 
    108     <target name="profile" depends="compile"
    109             description="Profile CzechAddress with Netbeans">
     76    <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans">
    11077        <fail unless="netbeans.home">
    11178            This target can only run inside the NetBeans IDE.
     
    12996        </java>
    13097    </target>
    131 
    132     <target name="debug" depends="compile"
    133             description="Debug CzechAddress with Netbeans">
    134         <nbjpdastart addressproperty="jpda.address"
    135                      name="czechaddress"
    136                      transport="dt_socket"/>
     98    <target name="debug" depends="compile" description="Debug CzechAddress with Netbeans">
     99        <nbjpdastart addressproperty="jpda.address" name="czechaddress" transport="dt_socket"/>
    137100        <java classname="JOSM" fork="true">
    138101            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
     
    150113        </java>
    151114    </target>
    152 
    153115</project>
Note: See TracChangeset for help on using the changeset viewer.