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/surveyor/build.xml

    r13332 r14003  
    11<project name="surveyor" 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"/>
     
    1111    <target name="compile" depends="init">
    1212        <echo message="creating ${plugin.jar}"/>
    13         <javac srcdir="src" destdir="${plugin.build.dir}" debug="true">
     13        <javac srcdir="src" debug="false" destdir="${plugin.build.dir}">
    1414            <compilerarg value="-Xlint:deprecation"/>
    1515            <compilerarg value="-Xlint:unchecked"/>
     
    2020        </javac>
    2121    </target>
    22     <target name="dist" depends="compile">
     22    <target name="dist" depends="compile,revision">
     23        <copy todir="${plugin.build.dir}/">
     24            <fileset dir="resources">
     25                <include name="*.xml"/>
     26                <include name="audio/*"/>
     27            </fileset>
     28        </copy>
     29        <copy todir="${plugin.build.dir}/images">
     30            <fileset dir="images"/>
     31        </copy>
     32        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     33            <manifest>
     34                <attribute name="Author" value="Christof Dallermassl"/>
     35                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
     36                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     37                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
     38                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
     39                <attribute name="Plugin-Mainversion" value="1326"/>
     40                <attribute name="Plugin-Requires" value="livegps"/>
     41                <attribute name="Plugin-Stage" value="60"/>
     42                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     43            </manifest>
     44        </jar>
     45    </target>
     46    <target name="revision">
    2347        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2448            <env key="LANG" value="C"/>
     
    2953        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3054        <delete file="REVISION"/>
    31         <copy todir="${plugin.build.dir}/">
    32             <fileset dir="resources">
    33                 <include name="*.xml"/>
    34                 <include name="audio/*"/>
    35             </fileset>
    36         </copy>
    37         <copy todir="${plugin.build.dir}/images" >
    38             <fileset dir="images" />
    39         </copy>
    40         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    41             <manifest>
    42                 <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin" />
    43                 <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions." />
    44                 <attribute name="Plugin-Stage" value="60" />
    45                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    46                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    47                 <attribute name="Plugin-Mainversion" value="1326" />
    48                 <attribute name="Plugin-Requires" value="livegps" />
    49             </manifest>
    50         </jar>
    5155    </target>
    5256    <target name="clean">
    53         <delete dir="${plugin.build.dir}" />
    54         <delete file="${plugin.jar}" />
     57        <delete dir="${plugin.build.dir}"/>
     58        <delete file="${plugin.jar}"/>
     59    </target>
     60    <target name="install" depends="dist">
     61        <property environment="env"/>
     62        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     63            <and>
     64                <os family="windows"/>
     65            </and>
     66        </condition>
     67        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    5568    </target>
    5669</project>
Note: See TracChangeset for help on using the changeset viewer.