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

    r5147 r5153  
    11<project name="slippymap" default="dist" basedir=".">
     2
     3
     4  <!-- compilation properties -->
     5  <property name="josm.build.dir"       value="../../core"/>
     6  <property name="josm.home.dir"        value="${user.home}/.josm"/>
     7  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
     8  <property name="plugin.build.dir"     value="build"/>
     9  <property name="plugin.dist.dir"      value="../dist"/>
     10  <property name="plugin.name"          value="${ant.project.name}"/>
     11  <property name="plugin.jar"           value="../dist/${plugin.name}.jar"/>
     12 
    213
    314  <target name="dist" depends="compile">
     
    617      <fileset dir="images" />
    718    </copy>
    8 
     19   
    920    <!-- create josm-custom.jar -->
    10     <jar destfile="slippymap.jar" basedir="build">
     21    <jar destfile="${plugin.jar}" basedir="build">
    1122      <manifest>
    1223        <attribute name="Plugin-Class" value="slippymap.SlippyMapPlugin" />
     
    1930    <javac srcdir="slippymap" classpath="../../core/dist/josm-custom.jar" destdir="build" />
    2031  </target>
    21 
     32 
    2233  <target name="init">
    23     <mkdir dir="build" />
     34    <mkdir dir="${plugin.build.dir}" />
    2435  </target>
    25 
     36 
    2637  <target name="clean">
    27     <delete dir="build" />
     38    <delete dir="${plugin.build.dir}" />
     39    <delete file="${plugin.jar}" />
    2840  </target>
    29 
     41 
    3042</project>
Note: See TracChangeset for help on using the changeset viewer.