Ignore:
Timestamp:
2012-10-14T15:25:54+02:00 (12 years ago)
Author:
stoecker
Message:

build script cleanups, i18n update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wms-turbo-challenge2/build.xml

    r27019 r28807  
    1010-->
    1111<project name="wms-turbo-challenge2" default="dist" basedir=".">
    12     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.src.dir" value="src"/>
    15     <!-- this is the directory where the plugin jar is copied to -->
    16     <property name="ant.build.javac.target" value="1.5"/>
    17     <property name="plugin.dist.dir" value="../../dist"/>
    18     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     12
     13    <!-- enter the SVN commit message -->
     14    <property name="commit.message" value="Commit message"/>
     15    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     16    <property name="plugin.main.version" value="4549"/>
     17
    1918    <!--
    2019    **********************************************************
    21     ** init - initializes the build
     20    ** include targets that all plugins have in common
    2221    **********************************************************
    2322    -->
    24     <target name="init">
    25         <mkdir dir="${plugin.build.dir}"/>
    26     </target>
    27     <!--
    28     **********************************************************
    29     ** compile - compiles the source tree
    30     **********************************************************
    31     -->
    32     <target name="compile" depends="init">
    33         <echo message="compiling sources for  ${plugin.jar} ... "/>
    34         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
    35             <compilerarg value="-Xlint:deprecation"/>
    36             <compilerarg value="-Xlint:unchecked"/>
    37         </javac>
    38     </target>
     23    <import file="../build-common.xml"/>
     24 
    3925    <!--
    4026    **********************************************************
     
    6753                <attribute name="Plugin-Icon" value="images/wmsracer.png"/>
    6854                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMS_Racer"/>
    69                 <attribute name="Plugin-Mainversion" value="4549"/>
     55                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    7056                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    7157            </manifest>
    7258        </jar>
    7359    </target>
    74     <!--
    75     **********************************************************
    76     ** revision - extracts the current revision number for the
    77     **    file build.number and stores it in the XML property
    78     **    version.*
    79     **********************************************************
    80     -->
    81     <target name="revision">
    82         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    83             <env key="LANG" value="C"/>
    84             <arg value="info"/>
    85             <arg value="--xml"/>
    86             <arg value="."/>
    87         </exec>
    88         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    89         <delete file="REVISION"/>
    90     </target>
    91     <!--
    92     **********************************************************
    93     ** clean - clean up the build environment
    94     **********************************************************
    95     -->
    96     <target name="clean">
    97         <delete dir="${plugin.build.dir}"/>
    98         <delete file="${plugin.jar}"/>
    99     </target>
    100     <!--
    101     **********************************************************
    102     ** install - install the plugin in your local JOSM installation
    103     **********************************************************
    104     -->
    105     <target name="install" depends="dist">
    106         <property environment="env"/>
    107         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    108             <and>
    109                 <os family="windows"/>
    110             </and>
    111         </condition>
    112         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    113     </target>
    11460</project>
Note: See TracChangeset for help on using the changeset viewer.