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

    r5147 r5153  
    1 <project name="nearclick" default="build" basedir=".">
     1<project name="nearclick" 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"/>
    211
    312  <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
     
    2534  </target>
    2635
    27   <target name="build" depends="compile">
    28     <jar destfile="dist/nearclick.jar" basedir="build">
     36  <target name="dist" depends="compile">
     37    <jar destfile="${plugin.jar}" basedir="build">
    2938      <manifest>
    3039        <attribute name="Plugin-Class" value="nearclick.NearClickPlugin" />
     
    3544
    3645  <target name="clean">
    37     <delete dir="build" />
    38     <delete dir="dist" />
     46    <delete dir="${plugin.build.dir}" />
     47    <delete file="${plugin.jar}" />
    3948  </target>
    40 
     49 
    4150  <target name="clean_install">
    4251    <delete file="${plugins}/nearclick.jar" />
    4352  </target>
    4453
    45   <target name="install" depends="build">
    46     <copy file="dist/nearclick.jar" todir="${plugins}"/>
     54  <target name="install" depends="dist">
     55    <copy file="${plugin.jar}" todir="${plugins}"/>
    4756  </target>
    4857
Note: See TracChangeset for help on using the changeset viewer.