Ignore:
Timestamp:
2009-01-23T22:36:04+01:00 (16 years ago)
Author:
stoecker
Message:

fixes for new plugin handling

File:
1 edited

Legend:

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

    r12780 r13332  
    11<project name="validator" default="dist" basedir=".">
    2 <!-- compilation properties -->
    3     <property name="josm.build.dir"   value="../../core"/>
    4     <property name="josm.home.dir"    value="${user.home}/.josm"/>
    5     <property name="plugin.build.dir" value="build"/>
    6     <property name="plugin.dist.dir"  value="../../dist"/>
    7     <property name="plugin.name"      value="${ant.project.name}"/>
    8     <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
    9 <!-- point to your JOSM directory -->
    10     <property name="josm" location="../../core/dist/josm-custom.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"/>
    116    <property name="ant.build.javac.target" value="1.5"/>
    127    <target name="init">
     
    1510    <target name="compile" depends="init">
    1611        <echo message="creating ${plugin.jar}"/>
    17         <javac srcdir="src" classpath="${josm}" destdir="build" debug="true" encoding="UTF-8">
     12        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" encoding="UTF-8">
     13            <compilerarg value="-Xlint:deprecation"/>
     14            <compilerarg value="-Xlint:unchecked"/>
    1815            <include name="**/*.java" />
    1916        </javac>
    2017    </target>
    21     <target name="dist" depends="clean, compile">
    22         <copy todir="build/images">
     18    <target name="dist" depends="compile">
     19        <copy todir="${plugin.build.dir}/images">
    2320            <fileset dir="images"/>
    2421        </copy>
     
    3128        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3229        <delete file="REVISION"/>
    33         <jar destfile="${plugin.jar}" basedir="build">
     30        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    3431            <manifest>
    3532                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.validator.OSMValidatorPlugin"/>
     
    4239        </jar>
    4340    </target>
    44 <!-- clean target -->
    4541    <target name="clean">
    4642        <delete dir="${plugin.build.dir}" />
    4743        <delete file="${plugin.jar}" />
    4844    </target>
    49     <target name="install" depends="dist">
    50         <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    51     </target>
    52     <target name="test" depends="install">
    53         <java jar="${josm}" fork="true"></java>
    54     </target>
    5545</project>
Note: See TracChangeset for help on using the changeset viewer.