Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 123c899a8cb9ab1b2f869db701a0dc79 > files > 2

pell-multipart-1.30-0.rc1.1jpp.src.rpm

<project name="pell-multipart" default="dist">
  <description>
    This build file is used to compile and build pell-multipart.
  </description>

  <target name="init"/>

  <!-- directory definition -->
  <property name="src" 			value="${basedir}/src"/>
  <property name="jdoc" 		value="${basedir}/javadoc"/>
  <property name="bin" 			value="${basedir}/bin"/>
  <property name="examples"     	value="${basedir}/examples"/>
  <property name="output"               value="${basedir}/output"/>
  <property name="build" 		value="${output}/build"/>
  <property name="build.stub"  	        value="${build}/stub"/>
  <property name="dist" 		value="${output}/dist"/>

    <!--User properties file -->
  <property file="${basedir}/build.properties"/>

  <property name="dist.lib"  		value="${dist}/lib"/>
  <property name="dist.doc"  		value="${dist}/doc"/>
  <property name="dist.jdoc"  	        value="${dist}/jdoc"/>
  <property name="dist.etc"  		value="${dist}/etc"/>
  <property name="dist.bin"  		value="${dist}/bin"/>
  <property name="dist.config"          value="${dist}/config"/>
  <property name="dist.examples"        value="${dist}/examples"/>
  <property name="dist.test"            value="${dist}/test"/>
  <property name="build.stub"  	        value="${build}/stub"/>


  <!-- compile all compile.** targets -->
  <target name="compile"
    description="--> compile Pell Multipart">
    <antcall target="compile.base"/>
  </target>

  <!-- compile all java classes -->
  <target name="compile.base">
    <mkdir dir="${build}/classes"/>
    <javac
      srcdir="${src}"
      destdir="${build}/classes"
      deprecation="${compiler.deprecation}"
      debug="${compiler.debug}"
      nowarn="${compiler.nowarn}"
      optimize="${compiler.optimize}">
      <include name="**/*.java"/>
    </javac>
  </target>


  <!-- create pellmultipart distribution -->
  <target name="dist" depends="init, compile"
    description="--> create a distribution of pellmultipart">
    <mkdir dir="${dist}"/>
    <antcall target="jar"/>
    <antcall target="jdoc"/>
  </target>



  <!-- populate distribution lib directory with required archives -->
  <target name="jar" depends="init">
    <mkdir dir="${dist.lib}"/>
    <jar jarfile="${dist.lib}/pell-multipart-1.30rc1.jar" basedir="${build}/classes">
      <include name="**/*.class"/>
    </jar>
  </target>


  <!-- create javadoc  documentation -->
  <target name="jdoc" depends="init"
    description="--> generate Javadoc">
    <mkdir dir="${dist.jdoc}"/>
    <javadoc
      packagenames="http.utils.multipartrequest"
      destdir="${dist.jdoc}"
      windowtitle="Pell Multipart Developer Documentation"
      author="true" version="true" use="true" >
      <doctitle><![CDATA[<h1>Pell Multipart Developer Documentation</h1>]]></doctitle>
      <sourcepath>
        <pathelement path="${src}"/>
      </sourcepath>
    </javadoc>
  </target>

  <!-- clean all directory and files created by various targets -->
  <target name="clean" depends="init"
    description="--> delete generated files">
    <delete dir="${output}" />
  </target>

 </project>