Ignore:
Timestamp:
2007-10-24T20:13:09+02:00 (17 years ago)
Author:
joerg
Message:

josm/plugins/*build.xml: now we use the unique target dist for creating .jar files. Use a lot more variables to be able to move the build directory. destination directory for .jar files is now plugins/dist/*.jar. correcteed clean targets

File:
1 edited

Legend:

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

    r5147 r5153  
    1 <project name="mappaint" default="build" basedir=".">
     1<project name="mappaint" default="dist" basedir=".">
    22
     3  <!-- compilation properties -->
     4  <property name="josm.build.dir"       value="../../core"/>
     5  <property name="josm.home.dir"        value="${user.home}/.josm"/>
     6  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
     7  <property name="plugin.build.dir"     value="build"/>
     8  <property name="plugin.dist.dir"      value="../dist"/>
     9  <property name="plugin.name"          value="${ant.project.name}"/>
     10  <property name="plugin.jar"           value="../dist/${plugin.name}.jar"/>
     11 
    312  <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
    413  <property name="josm" location="../../core/dist/josm-custom.jar" />
     
    2534  </target>
    2635
    27   <target name="build" depends="compile">
     36  <target name="dist" depends="compile">
    2837    <copy todir="build/standard">
    2938      <fileset dir="styles/standard"></fileset>
     
    3746    <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    3847    <delete file="REVISION"/>
    39     <jar destfile="dist/mappaint.jar" basedir="build">
     48    <jar destfile="${plugin.jar}" basedir="build">
    4049      <manifest>
    4150        <attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" />
     
    4958
    5059  <target name="clean">
    51     <delete dir="build" />
    52     <delete dir="dist" />
     60    <delete dir="${plugin.build.dir}" />
     61    <delete file="${plugin.jar}" />
    5362  </target>
    5463
     
    5766  </target>
    5867
    59   <target name="install" depends="build">
    60     <copy file="dist/mappaint.jar" todir="${plugins}"/>
     68  <target name="install" depends="dist">
     69    <copy file="${plugin.jar}" todir="${plugins}"/>
    6170  </target>
    6271
Note: See TracChangeset for help on using the changeset viewer.