Changeset 29352 in osm for applications/editors/josm


Ignore:
Timestamp:
2013-03-07T22:26:53+01:00 (12 years ago)
Author:
stoecker
Message:

cleanup build file

File:
1 edited

Legend:

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

    r28398 r29352  
    11<?xml version="1.0" encoding="utf-8"?>
    22<!--
     3** This is a template build file for a JOSM  plugin.
     4**
     5** Maintaining versions
     6** ====================
     7** See README.template
     8**
    39** Usage
    410** =====
    5 ** To build it run
    6 **
    7 **    > ant  dist
    8 **
    9 ** To install the generated plugin locally (in you default plugin directory) run
    10 **
    11 **    > ant  install
    12 **
    13 ** The generated plugin jar is not automatically available in JOSMs plugin configuration
    14 ** dialog. You have to check it in first.
    15 **
    16 ** Use the ant target 'publish' to check in the plugin and make it available to other
    17 ** JOSM users:
    18 **    set the properties commit.message and plugin.main.version
    19 ** and run
    20 **    > ant  publish
    21 **
     11** Call "ant help" to get possible build targets.
    2212**
    2313-->
     
    2919    <property name="plugin.main.version" value="4762"/>
    3020
    31     <!--
    32     **********************************************************
    33     ** include targets that all plugins have in common
    34     **********************************************************
    35     -->
     21    <property name="plugin.author" value="Paul Hartmann"/>
     22    <property name="plugin.class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/>
     23    <property name="plugin.description" value="Write gps position info to the image file header. Run this feature from the right click menu of the image layer."/>
     24    <property name="plugin.icon" value="images/geotagging.png"/>
     25    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
     26
     27    <!-- ** include targets that all plugins have in common ** -->
    3628    <import file="../build-common.xml"/>
    3729
     
    4436    <target name="compile" depends="init">
    4537        <echo message="compiling sanselan sources ... "/>
    46         <javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1">
     38        <javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1" includeantruntime="false">
    4739            <compilerarg value="-Xlint:deprecation"/>
    4840        </javac>
    49         <echo message="compiling sources for  ${plugin.jar} ... "/>
    50         <javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
     41        <echo message="compiling sources for ${plugin.jar} ..."/>
     42        <javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
    5143            <compilerarg value="-Xlint:deprecation"/>
    5244            <compilerarg value="-Xlint:unchecked"/>
     
    5446    </target>
    5547
    56     <!--
    57     **********************************************************
    58     ** dist - creates the plugin jar
    59     **********************************************************
    60     -->
    61     <target name="dist" depends="compile,revision">
    62         <echo message="creating ${ant.project.name}.jar ... "/>
    63         <copy todir="${plugin.build.dir}/images">
    64             <fileset dir="images"/>
    65         </copy>
    66         <copy todir="${plugin.build.dir}/data">
    67             <fileset dir="data"/>
    68         </copy>
    69         <copy todir="${plugin.build.dir}">
    70             <fileset dir=".">
    71                 <include name="README"/>
    72             </fileset>
    73         </copy>
    74         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    75         <!--
    76         ************************************************
    77         ** configure these properties. Most of them will be copied to the plugins
    78         ** manifest file. Property values will also show up in the list available
    79         ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
    80         **
    81         ************************************************
    82         -->
    83             <manifest>
    84                 <attribute name="Author" value="Paul Hartmann"/>
    85                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/>
    86                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    87                 <attribute name="Plugin-Description" value="Write gps position info to the image file header. Run this feature from the right click menu of the image layer."/>
    88                 <attribute name="Plugin-Icon" value="images/geotagging.png"/>
    89                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
    90                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    91                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    92             </manifest>
    93         </jar>
    94     </target>
    95 
    9648</project>
Note: See TracChangeset for help on using the changeset viewer.