Ignore:
Timestamp:
2012-11-29T01:28:18+01:00 (12 years ago)
Author:
donvip
Message:

[josm_colombusCsv] simplify build.xml

File:
1 edited

Legend:

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

    r28043 r29009  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <!--
    3 ** This is a template build file for a JOSM  plugin.
    4 **
    5 ** Maintaining versions
    6 ** ====================
    7 ** see README.template
    8 **
    9 ** Usage
    10 ** =====
    11 ** To build it run
    12 **
    13 **    > ant  dist
    14 **
    15 ** To install the generated plugin locally (in you default plugin directory) run
    16 **
    17 **    > ant  install
    18 **
    19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration
    20 ** dialog. You have to check it in first.
    21 **
    22 -->
    232<project name="ColumbusCSV" default="dist" basedir=".">
    24     <!--
    25       ************************************************
    26       ** should not be necessary to change the following properties
    27      -->
    28     <property name="josm" location="../../core/dist/josm-custom.jar"/>
    29     <property name="josm_stable" location="../../core/dist/3529/josm-tested.jar"/>
    30     <property name="plugin.build.dir" value="build"/>
    31     <property name="plugin.src.dir" value="src"/>
    32     <!-- this is the directory where the plugin jar is copied to -->
    33     <property name="plugin.dist.dir" value="../../dist"/>
    34     <property name="ant.build.javac.target" value="1.5"/>
    35     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    36     <!--
    37     **********************************************************
    38     ** init - initializes the build
    39     **********************************************************
    40     -->
    41     <target name="init">
    42         <mkdir dir="${plugin.build.dir}"/>
    43     </target>
    44     <!--
    45     **********************************************************
    46     ** compile - complies the source tree
    47     **********************************************************
    48     -->
    49     <target name="compile" depends="init">
    50         <echo message="compiling sources for  ${plugin.jar} ... "/>
    51         <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    52             <compilerarg value="-Xlint:deprecation"/>
    53             <compilerarg value="-Xlint:unchecked"/>
    54         </javac>
    55     </target>
    56     <!--
    57     **********************************************************
    58     ** dist - creates the plugin jar
    59     **********************************************************
    60     -->
    61     <target name="dist" depends="compile,revision">
    62         <mkdir dir="${plugin.dist.dir}"/>
    63         <echo message="creating ${plugin.jar} ... "/>
    64         <copy todir="${plugin.build.dir}/resources">
    65             <fileset dir="resources"/>
    66         </copy>
    67         <copy todir="${plugin.build.dir}/images">
    68             <fileset dir="images"/>
    69         </copy>
    70         <copy todir="${plugin.build.dir}/data">
    71             <fileset dir="data"/>
    72         </copy>
    73         <copy todir="${plugin.build.dir}">
    74             <fileset dir=".">
    75                 <include name="README"/>
    76                 <include name="LICENSE"/>
    77             </fileset>
    78         </copy>
    79         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    80             <!--
    81         ************************************************
    82         ** configure these properties. Most of them will be copied to the plugins
    83         ** manifest file. Property values will also show up in the list available
    84         ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    85         **
    86         ************************************************
    87     -->
    88             <manifest>
    89                 <attribute name="Author" value="Oliver Wieland"/>
    90                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.columbusCSV.ColumbusCSVPlugin"/>
    91                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    92                 <attribute name="Plugin-Description" value="Imports proprietary CSV files of the Columbus/Visiontac V-900 GPS logger into a GPX layer."/>
    93                 <attribute name="de_Plugin-Description" value="Importiert die CSV-Dateien des Columbus/Visiontac V-900 GPS Loggers in GPX-Daten."/>
    94                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ColumbusCSV"/>
    95                 <attribute name="Plugin-Mainversion" value="5047"/>
    96                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    97                 <attribute name="Plugin-Icon" value="images/colcsvicon.png"/>
    98             </manifest>
    99         </jar>
    100     </target>
    101     <!--
    102     **********************************************************
    103     ** revision - extracts the current revision number for the
    104     **    file build.number and stores it in the XML property
    105     **    version.*
    106     **********************************************************
    107     -->
    108     <target name="revision">
    109         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    110             <env key="LANG" value="C"/>
    111             <arg value="info"/>
    112             <arg value="--xml"/>
    113             <arg value="build.xml"/>
    114         </exec>
    115         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    116         <echo message="Revision: ${version.entry.commit.revision}"/>
    117         <delete file="REVISION"/>
    118     </target>
    119     <!--
    120     **********************************************************
    121     ** clean - clean up the build environment
    122     **********************************************************
    123     -->
    124     <target name="clean">
    125         <delete dir="${plugin.build.dir}"/>
    126         <delete file="${plugin.jar}"/>
    127     </target>
    128     <!--
    129     **********************************************************
    130     ** install - install the plugin in your local JOSM installation
    131     **********************************************************
    132     -->
    133     <target name="install" depends="dist">
    134         <property environment="env"/>
    135         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
    136             <and>
    137                 <os family="windows"/>
    138             </and>
    139         </condition>
    140         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    141     </target>
     3
     4    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     5    <property name="plugin.main.version" value="5047"/>
     6
     7    <property name="plugin.author" value="Oliver Wieland"/>
     8    <property name="plugin.class" value="org.openstreetmap.josm.plugins.columbusCSV.ColumbusCSVPlugin"/>
     9    <property name="plugin.description" value="Imports proprietary CSV files of the Columbus/Visiontac V-900 GPS logger into a GPX layer."/>
     10    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ColumbusCSV"/>
     11    <property name="plugin.icon" value="images/colcsvicon.png"/>
     12    <!--<property name="plugin.early" value="..."/>-->
     13    <!--<property name="plugin.requires" value="..."/>-->
     14    <!--<property name="plugin.stage" value="..."/>-->
     15
     16    <!-- ** include targets that all plugins have in common ** -->
     17    <import file="../build-common.xml"/>
     18       
    14219</project>
Note: See TracChangeset for help on using the changeset viewer.