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

    r5147 r5153  
    1 <project name="grid" default="build" basedir=".">
     1<project name="grid" default="dist" basedir=".">
    22
    33  <!-- compilation properties -->
    4   <property name="josm.build.dir" value="../../core"/>
    5   <property name="josm.home.dir" value="${user.home}/.josm"/>
    6   <property name="plugin.build.dir" value="bin"/>
    7   <property name="plugin.name" value="${ant.project.name}"/>
    8   <property name="plugin.jar" value="${plugin.name}.jar"/>
     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 
    912 
    1013  <!-- point to your JOSM directory -->
     
    2427  </target>
    2528
    26   <target name="build" depends="compile">
     29  <target name="dist" depends="compile">
    2730    <copy todir="build/images" >
    2831      <fileset dir="images" />
     
    3740
    3841  <target name="clean">
    39     <delete dir="build" />
    40     <delete dir="dist" />
    41     <delete dir="${plugin.jar}" />
     42    <delete dir="${plugin.build.dir}" />
     43    <delete file="${plugin.jar}" />
    4244  </target>
    4345
    44   <target name="install" depends="build">
     46  <target name="install" depends="dist">
    4547    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    4648  </target>
Note: See TracChangeset for help on using the changeset viewer.