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

    r5147 r5153  
    11<project name="osmarender" default="install" 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  <property name="josm" location="../../core/dist/josm-custom.jar" />
     
    514
    615  <target name="compile">
    7     <mkdir dir="bin"></mkdir>
    8     <mkdir dir="dist"></mkdir>
    9     <javac srcdir="src" debug="true" classpath="${josm}" destdir="bin">
     16    <mkdir dir="${plugin.build.dir}"></mkdir>
     17    <mkdir dir="${plugin.dist.dir}"></mkdir>
     18    <javac srcdir="src" debug="true" classpath="${josm}" destdir="${plugin.build.dir}">
    1019      <include name="**/*.java" />
    1120    </javac>
    1221  </target>
    1322
    14   <target name="build"  depends="compile">
    15     <copy todir="bin" file="${rendering}/osmarender6/osmarender.xsl"/>
    16     <copy tofile="bin/osm-map-features.xml"
     23  <target name="dist"  depends="compile">
     24    <copy todir="${plugin.build.dir}" file="${rendering}/osmarender6/osmarender.xsl"/>
     25    <copy tofile="${plugin.build.dir}/osm-map-features.xml"
    1726          file="${rendering}/osmarender5/osm-map-features-z17.xml"/>
    18     <jar destfile="dist/osmarender.jar" basedir="bin">
     27    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
    1928      <manifest>
    2029        <attribute name="Plugin-Class" value="OsmarenderPlugin" />
     
    2534
    2635  <target name="clean">
    27     <delete dir="bin" />
    28     <delete dir="dist" />
     36    <delete dir="${plugin.build.dir}" />
     37    <delete file="${plugin.jar}" />
    2938  </target>
    3039
    31   <target name="install" depends="compile,build" />
     40  <target name="install" depends="compile,dist" />
    3241
    3342</project>
Note: See TracChangeset for help on using the changeset viewer.