<?xml version="1.0" encoding="UTF-8"?>
<!--Exported by JBuilder on Mar 27, 2006 10:21:51 PM-->
<!--It is RECOMMENDED that JBuilder builds and Ant builds done with
this exported Ant file be kept separate and be written to different
directories. For example, the JBuilder output directory might be "classes"
and the Ant output directory might be "classes.ant".-->
<project basedir="." default="rebuild" name="sensor-grid.jpx">
  <property name="jdk.home" value="C:/JBuilder2005/jdk1.4"/>
  <property name="dest" value="classes.ant"/>
  <property name="Generated.Source" value="${dest}/Temporary_Files"/>
  <property name="sg-lib.home" value="lib"/>
  <property name="axis.home" value="${sg-lib.home}/axis"/>
  <property name="junit.home" value="${sg-lib.home}/junit3.8"/>
  <property name="src" value="src"/>
  <path id="project.class.path">
    <pathelement location="${dest}"/>
    <pathelement location="${sg-lib.home}/commons-codec-1.3.jar"/>
    <pathelement location="${sg-lib.home}/commons-httpclient-3.0-rc4.jar"/>
    <pathelement location="${sg-lib.home}/dom4j-1.5-rc1.jar"/>
    <pathelement location="${sg-lib.home}/hpsearch-1.0-bugfix.jar"/>
    <pathelement location="${sg-lib.home}/hrtlib.jar"/>
    <pathelement location="${sg-lib.home}/jaxen-full.jar"/>
    <pathelement location="${sg-lib.home}/jdom.jar"/>
    <pathelement location="${sg-lib.home}/jsr173_api.jar"/>
    <pathelement location="${sg-lib.home}/jug-asl-2.0.0.jar"/>
    <pathelement location="${sg-lib.home}/jug-uuid.jar"/>
    <pathelement location="${sg-lib.home}/log4j-1.2.8.jar"/>
    <pathelement location="${sg-lib.home}/mysql-connector-java-3.0.11-stable-bin.jar"/>
    <pathelement location="${sg-lib.home}/NaradaBrokering.jar"/>
    <pathelement location="${sg-lib.home}/saxpath.jar"/>
    <pathelement location="${sg-lib.home}/sensorgrid_sopac.xsd.jar"/>
    <pathelement location="${sg-lib.home}/xbean.jar"/>
    <pathelement location="${axis.home}/axis.jar"/>
    <pathelement location="${axis.home}/axis-ant.jar"/>
    <pathelement location="${axis.home}/commons-discovery.jar"/>
    <pathelement location="${axis.home}/commons-logging.jar"/>
    <pathelement location="${axis.home}/jaxrpc.jar"/>
    <pathelement location="${axis.home}/saaj.jar"/>
    <pathelement location="${axis.home}/wsdl4j.jar"/>
    <pathelement location="${junit.home}/junit.jar"/>
    <pathelement location="${jdk.home}/jre/javaws/javaws.jar"/>
    <pathelement location="${jdk.home}/jre/lib/charsets.jar"/>
    <pathelement location="${jdk.home}/jre/lib/ext/dnsns.jar"/>
    <pathelement location="${jdk.home}/jre/lib/ext/ldapsec.jar"/>
    <pathelement location="${jdk.home}/jre/lib/ext/localedata.jar"/>
    <pathelement location="${jdk.home}/jre/lib/ext/sunjce_provider.jar"/>
    <pathelement location="${jdk.home}/jre/lib/im/indicim.jar"/>
    <pathelement location="${jdk.home}/jre/lib/im/thaiim.jar"/>
    <pathelement location="${jdk.home}/jre/lib/jce.jar"/>
    <pathelement location="${jdk.home}/jre/lib/jsse.jar"/>
    <pathelement location="${jdk.home}/jre/lib/plugin.jar"/>
    <pathelement location="${jdk.home}/jre/lib/rt.jar"/>
    <pathelement location="${jdk.home}/jre/lib/sunrsasign.jar"/>
    <pathelement location="${jdk.home}/lib/dt.jar"/>
    <pathelement location="${jdk.home}/lib/htmlconverter.jar"/>
    <pathelement location="${jdk.home}/lib/tools.jar"/>
  </path>
  <!--Patternset to exclude files from the output directory:-->
  <patternset id="dest.exclude">
    <exclude name="Temporary_Files/"/>
    <exclude name="Generated Source/"/>
    <exclude name="package cache/"/>
    <exclude name="dependency cache/"/>
    <exclude name="jsp cache/"/>
    <exclude name="cache files/"/>
  </patternset>
  <target depends="init" name="javacompile">
    <javac bootclasspathref="project.class.path" debug="true" deprecation="true" destdir="${dest}" nowarn="false" source="1.3" target="1.2">
      <src path="${src}"/>
      <src path="${Generated.Source}"/>
    </javac>
  </target>
  <target depends="resource" name="archive">
    <jar compress="true" destfile="sensorgrid.jar">
      <fileset dir="${dest}">
        <patternset refid="dest.exclude"/>
        <include name="**/*.*"/>
      </fileset>
    </jar>
    <move todir="${sg-lib.home}" file="sensorgrid.jar"/>
  </target>
  <target name="cleanup">
    <delete file="sensorgrid.jar"/>
    <delete failonerror="false" includeemptydirs="true">
      <fileset dir="${dest}"/>
    </delete>
  </target>
  <target name="resource">	
    <copy todir="${dest}">
      <fileset dir="${src}">
        <include name="**/*.jpe"/>
        <include name="**/*.jpeg"/>
        <include name="**/*.rmf"/>
        <include name="**/*.wav"/>
        <include name="**/*.mid"/>
        <include name="**/*.midi"/>
        <include name="**/*.au"/>
        <include name="**/*.gif"/>
        <include name="**/*.png"/>
        <include name="**/*.jpg"/>
        <include name="**/*.aiff"/>
        <include name="**/*.properties"/>
      </fileset>
    </copy>
  </target>
  <target name="javadoc"/>
  <target depends="cleanup" name="clean"/>
  <target name="precompile"/>
  <target depends="javacompile" name="compile"/>
  <target name="postcompile"/>
  <target depends="archive,javadoc,resource" name="package"/>
  <target name="deploy"/>
  <target depends="precompile,compile,postcompile,package,deploy" name="make"/>
  <target depends="clean,make" name="rebuild"/>
  <target name="init">
    <mkdir dir="${dest}"/>
    <mkdir dir="${Generated.Source}"/>
  </target>
</project>
