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

cleanup build scripts and manifests

Location:
applications/editors/josm/plugins/DirectUpload
Files:
1 deleted
1 edited

Legend:

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

    r13373 r14003  
    11<project name="DirectUpload" 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}" destdir="${plugin.build.dir}" debug="true" encoding="UTF-8">
     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">
    1918        <copy todir="${plugin.build.dir}/images">
    2019            <fileset dir="images"/>
    2120        </copy>
     21        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
     22            <manifest>
     23                <attribute name="Author" value="Subhodip Biswas"/>
     24                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin"/>
     25                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     26                <attribute name="Plugin-Description" value="This plugin directly upload GPS Traces from current active layer in JOSM to openstreetmap.org."/>
     27                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/User:Subhodip/GSoC_Doc#DirectUpload_Plugin_in_JOSM_:"/>
     28                <attribute name="Plugin-Mainversion" value="1465"/>
     29                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     30            </manifest>
     31        </jar>
     32    </target>
     33    <target name="revision">
    2234        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    2335            <env key="LANG" value="C"/>
     
    2840        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    2941        <delete file="REVISION"/>
    30         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    31             <manifest>
    32                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin" />
    33                 <attribute name="Plugin-Description" value="Uploads GPS traces to openstreetmap.org" />
    34                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    35                 <attribute name="Plugin-Mainversion" value="1180"/>
    36                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    37                 <attribute name="Author" value="Subhodip Biswas &lt;subhodipbiswas@gmail.com&gt;" />
    38             </manifest>
    39         </jar>
    4042    </target>
    4143    <target name="clean">
    42         <delete dir="${plugin.build.dir}" />
    43         <delete file="${plugin.jar}" />
     44        <delete dir="${plugin.build.dir}"/>
     45        <delete file="${plugin.jar}"/>
     46    </target>
     47    <target name="install" depends="dist">
     48        <property environment="env"/>
     49        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     50            <and>
     51                <os family="windows"/>
     52            </and>
     53        </condition>
     54        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    4455    </target>
    4556</project>
Note: See TracChangeset for help on using the changeset viewer.