Ignore:
Timestamp:
2007-10-24T20:13:09+02:00 (18 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/wmsplugin/build.xml

    r5147 r5153  
    1 <project name="wmsplugin" default="build" basedir=".">
     1<project name="wmsplugin" default="dist" basedir=".">
    22
    3   <!-- point to your JOSM directory -->
    4   <property name="josm" location="../../core/dist/josm-custom.jar" />
    5 
    6 
     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"/>
    711
    812  <target name="init">
     
    1721  </target>
    1822
    19   <target name="build" depends="compile">
     23  <target name="dist" depends="compile">
    2024    <copy todir="build/images" >
    2125      <fileset dir="images" />
    2226    </copy>
    23     <jar destfile="dist/wmsplugin.jar" basedir="build">
     27    <jar destfile="${plugin.jar}" basedir="build">
    2428      <manifest>
    2529        <attribute name="Plugin-Class" value="wmsplugin.WMSPlugin" />
     
    3135
    3236  <target name="clean">
    33     <delete dir="build" />
    34     <delete dir="dist" />
     37    <delete dir="${plugin.build.dir}" />
     38    <delete file="${plugin.jar}" />
    3539  </target>
    36 
    37   <target name="install" depends="build">
    38     <copy file="dist/wmsplugin.jar" todir="${user.home}/.josm/plugins"/>
     40 
     41  <target name="install" depends="dist">
     42    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    3943  </target>
    40 
     44 
    4145</project>
Note: See TracChangeset for help on using the changeset viewer.