Changeset 13457 in osm for applications


Ignore:
Timestamp:
2009-01-31T14:53:20+01:00 (16 years ago)
Author:
stoecker
Message:

we need new JOSM for this

File:
1 edited

Legend:

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

    r12780 r13457  
    11<project name="utilsplugin" default="dist" basedir=".">
    2 <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    3     <property environment="env"/>
    4     <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    5         <and>
    6             <os family="windows"/>
    7         </and>
    8     </condition>
    9 <!-- compilation properties -->
    10     <property name="josm.build.dir"   value="../../core"/>
    11     <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    12     <property name="josm"         location="../../core/dist/josm-custom.jar" />
    13     <property name="plugin.build.dir" value="build"/>
    14     <property name="plugin.dist.dir"  value="../../dist"/>
    15     <property name="plugin.name"      value="${ant.project.name}"/>
    16     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     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"/>
    176    <property name="ant.build.javac.target" value="1.5"/>
    187    <target name="init">
    19         <mkdir dir="build"/>
     8        <mkdir dir="${plugin.build.dir}"/>
    209    </target>
    2110    <target name="compile" depends="init">
    2211        <echo message="creating ${plugin.jar}"/>
    23         <javac srcdir="src" classpath="${josm}" destdir="build" debug="true">
     12        <javac srcdir="src" classpath="${josm}" destdir="${plugin.build.dir}" debug="true">
    2413            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    2515        </javac>
    2616    </target>
    27     <target name="dist" depends="clean, compile">
    28         <copy todir="build/images">
     17    <target name="dist" depends="compile">
     18        <copy todir="${plugin.build.dir}/images">
    2919            <fileset dir="images"/>
    3020        </copy>
     
    3727        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3828        <delete file="REVISION"/>
    39         <jar destfile="${plugin.jar}" basedir="build">
     29        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    4030            <manifest>
    4131                <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
    4232                <attribute name="Plugin-Description" value="Useful JOSM utilities"/>
    4333                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    44                 <attribute name="Plugin-Mainversion" value="1180"/>
     34                <attribute name="Plugin-Mainversion" value="1350"/>
    4535                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    46                 <attribute name="Author"
    47            value="(originally) Martijn van Oosterhout &gt;kleptog@svana.org&gt;"/>
     36                <attribute name="Author" value="Martijn van Oosterhout"/>
    4837            </manifest>
    4938        </jar>
     
    5342        <delete file="${plugin.jar}" />
    5443    </target>
    55     <target name="install" depends="dist">
    56         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    57     </target>
    5844</project>
Note: See TracChangeset for help on using the changeset viewer.