Ignore:
Timestamp:
2009-03-08T12:02:49+01:00 (16 years ago)
Author:
stoecker
Message:

cleanup build scripts and manifests

File:
1 edited

Legend:

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

    r13055 r14003  
    11<project name="usertools" default="dist" basedir=".">
    2     <property name="josm"                   location="../../core/dist/josm-custom.jar" />
     2    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    33    <property name="plugin.dist.dir"        value="../../dist"/>
    44    <property name="plugin.build.dir"       value="build"/>
     
    1010    <target name="compile" depends="init">
    1111        <echo message="creating ${plugin.jar}"/>
    12         <javac srcdir="src" classpath="${josm}" debug="true" destdir="build">
     12        <javac srcdir="src" classpath="${josm}" debug="false" destdir="${plugin.build.dir}">
    1313            <compilerarg value="-Xlint:deprecation"/>
    1414            <compilerarg value="-Xlint:unchecked"/>
    15             <include name="**/*.java" />
    1615        </javac>
    1716    </target>
    18     <target name="dist" depends="compile">
     17    <target name="dist" depends="compile,revision">
     18        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     19            <manifest>
     20                <attribute name="Author" value="Tim Waters"/>
     21                <attribute name="Plugin-Class" value="usertools.UserToolsPlugin"/>
     22                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     23                <attribute name="Plugin-Description" value="Tools to work with authors/users. Selects map data that belongs to selected user, opens browser showing selected author profile page."/>
     24                <attribute name="Plugin-Mainversion" value="1465"/>
     25                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     26            </manifest>
     27        </jar>
     28    </target>
     29    <target name="revision">
    1930        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2031            <env key="LANG" value="C"/>
     
    2536        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2637        <delete file="REVISION"/>
    27         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    28             <manifest>
    29                 <attribute name="Plugin-Class" value="usertools.UserToolsPlugin" />
    30                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    31                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    32                 <attribute name="Plugin-Description" value="Tools to help work with authors/users.&lt;br&gt; Used with the author panel alt-a).&lt;br&gt; Opens up user profile and selects user's stuff on the map" />
    33                 <attribute name="Plugin-Mainversion" value="1213" />
    34             </manifest>
    35         </jar>
    3638    </target>
    3739    <target name="clean">
    38         <delete dir="${plugin.build.dir}" />
    39         <delete file="${plugin.jar}" />
     40        <delete dir="${plugin.build.dir}"/>
     41        <delete file="${plugin.jar}"/>
     42    </target>
     43    <target name="install" depends="dist">
     44        <property environment="env"/>
     45        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     46            <and>
     47                <os family="windows"/>
     48            </and>
     49        </condition>
     50        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4051    </target>
    4152</project>
Note: See TracChangeset for help on using the changeset viewer.