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
  • TabularUnified applications/editors/josm/plugins/utilsplugin/build.xml

    r5147 r5153  
    1 <project name="utilsplugin" default="build" basedir=".">
    2   <property name="josm" location="../../core/dist/josm-custom.jar" />
    3  
     1<project name="utilsplugin" default="dist" basedir=".">
     2
     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
    412  <target name="init">
    513    <mkdir dir="build"/>
     
    1018  </target>
    1119
    12   <target name="build" depends="clean, compile">
     20  <target name="dist" depends="clean, compile">
    1321    <copy todir="build/images">
    1422      <fileset dir="images"/>
    1523    </copy>
    16     <jar destfile="utilsplugin.jar" basedir="build">
     24    <jar destfile="${plugin.jar}" basedir="build">
    1725      <manifest>
    1826        <attribute name="Plugin-Class" value="UtilsPlugin.UtilsPlugin"/>
     
    2634
    2735  <target name="clean">
    28     <delete dir="build" />
     36    <delete dir="${plugin.build.dir}" />
     37    <delete file="${plugin.jar}" />
    2938  </target>
    3039
    31   <target name="install" depends="build">
    32     <copy file="utilsplugin.jar" todir="${user.home}/.josm/plugins"/>
     40  <target name="install" depends="dist">
     41    <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins"/>
    3342  </target>
    3443</project>
Note: See TracChangeset for help on using the changeset viewer.