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

    r5147 r5153  
    11<project name="lang" default="install-all" basedir=".">
    22
     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 
    312
    4   <!-- compilation properties -->
    5   <property name="josm.build.dir" value="../../core"/>
    6   <property name="josm.home.dir" value="${user.home}/.josm"/>
    7   <property name="plugin.build.dir" value="bin"/>
    8   <property name="plugin.name" value="${ant.project.name}"/>
    9   <property name="plugin.jar" value="${plugin.name}.jar"/>
    10   <property name="plugins" value=".."/>
    11 
     13  <target name="dist" depends="install-all">
     14  </target>
     15 
    1216  <target name="install-all" depends="josm-build,keys.pot">
    1317    <ant target="install"><property name="language" value="de"/></ant>
     
    1822
    1923  <target name="install">
    20     <mkdir dir="${language}/bin"/>
    21     <mkdir dir="dist"/>
    22     <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/bin" />
     24    <mkdir dir="${language}/build"/>
     25    <mkdir dir="../dist"/>
     26    <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/build" />
    2327
    2428    <exec executable="msgmerge">
     
    2731
    2832    <exec executable="msgfmt">
    29       <arg line="--java2 -d${language}/bin -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/>
     33      <arg line="--java2 -d${language}/build -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/>
    3034    </exec>
    3135
    32     <copy file="i18n.properties" todir="${language}/bin/org/openstreetmap/josm" />
     36    <copy file="i18n.properties" todir="${language}/build/org/openstreetmap/josm" />
    3337
    34     <jar destfile="dist/lang-${language}.jar" basedir="${language}/bin">
     38    <jar destfile="../dist/lang-${language}.jar" basedir="${language}/build">
    3539      <manifest>
    3640        <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" />
     
    5862
    5963  <target name="clean">
    60     <delete dir="build" />
    61     <delete dir="dist" />
    62     <delete dir="${plugin.jar}" />
     64    <ant target="clean_lang"><property name="language" value="de"/></ant>
     65    <ant target="clean_lang"><property name="language" value="fr"/></ant>
     66    <ant target="clean_lang"><property name="language" value="ro"/></ant>
     67    <ant target="clean_lang"><property name="language" value="en_GB"/></ant>
     68    <delete dir="${plugin.build.dir}" />
     69  </target>
     70
     71  <target name="clean_lang">
     72    <delete file="../dist/lang-${language}.jar" />
     73    <delete dir="${language}/build"/>
    6374  </target>
    6475
Note: See TracChangeset for help on using the changeset viewer.