Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 34066097075bdbed9591efabd0e3d56f > files > 1

oldi18n-lib-0.1-1jpp.src.rpm

<project name="i18n-lib" default="all" basedir=".">

  <!-- Properties -->

  <property name="name" value="i18n-lib"/>
  <property name="src" value="src"/>
  <property name="build" value="build"/>
  <property name="build.classes" value="${build}/classes"/>
  <property name="build.doc" value="${build}/api"/>
  <property name="build.lib" value="${build}/lib"/>

  <!-- Targets -->

  <!-- Prepare build directories -->
  <target name="prepare">
    <mkdir dir="${src}"/>
    <mkdir dir="${build}"/>
    <mkdir dir="${build.classes}"/>
    <mkdir dir="${build.lib}"/>
    <mkdir dir="${build.doc}"/>
    <copy todir="${src}">
      <fileset dir="."
        includes="org/**"
        excludes="org/workingfrog/i18n/test/**"/>
    </copy>
  </target>

  <!-- Kill all the created directories -->
  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${src}"/>
  </target>

  <!-- Build classes -->
  <target name="classes" depends="prepare">
    <javac srcdir="${src}" destdir="${build.classes}"/>
  </target>

  <!-- Build jar archives -->
  <target name="jar" depends="classes">
    <jar destfile="${build.lib}/${name}.jar"
         basedir="${build.classes}"
         index="true">
      <metainf dir="." includes="LICENSE.txt"/>
    </jar>
  </target>

  <!-- Build the full JavaDocs -->
  <target name="javadoc" depends="prepare">
    <javadoc sourcepath="${src}"
            destdir="${build.doc}"
            doctitle="${name} JavaDoc"
            windowtitle="${name} JavaDoc"
            package="true"
            author="true"
            version="true"
            use="true"
            packagenames="org.workingfrog.i18n.*"
      />
  </target>

  <!-- Build everything -->
  <target name="all" depends="jar,javadoc"/>

</project>