<project name="MyProject" default="dist" basedir=".">
    <description>
        simple example build file
    </description>
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="classes" location="classes"/>
  <property name="dist"  location="dist"/>
  

  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${classes}"/>
  </target>

  <target name="compile" depends="clean,init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${classes}">
		 <classpath>
			  <pathelement path="${classpath}"/>
			  <pathelement path="d:/trunk/OCS/OpenClientServer/classes"/>
			  <pathelement path="d:\trunk/BASE/CommonUtilities/classes"/>
			  <fileset dir="lib">
				<include name="*.jar"/>
			  </fileset>
		 </classpath>
    </javac>
  </target>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}"/>

    <!-- Put everything in ${classes} into the asSoapClientClasses-${DSTAMP}.jar file -->
    <!-- Put everything in ${src} into the asSoapClientSrc-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/asSoapClientClasses-${DSTAMP}.jar" basedir="${classes}"/>
    <jar jarfile="${dist}/asSoapClientSrc-${DSTAMP}.jar" basedir="${src}"/>
    <!-- Put everything in into  asSoapClient-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/asSoapClient-${DSTAMP}.zip" basedir="."/>
  </target>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${classes} and ${dist} directory trees -->
    <delete dir="${classes}"/>
    <delete dir="${dist}"/>
  </target>
</project>
