
<project name='AIJava' default='compile' basedir='.'>

<!-- ===================== Property Definitions =========================== -->

   <property name="fs" value="${file.separator}" />
   <property name="home" value="." />
   <property name="source.root" value="${home}/aip"/>
   <property name="source.app" value="${source.root}/app"/>

<!-- ==================== Compilation Classpath =========================== -->

   <path id="compile.classpath">
     <pathelement location="${home}" />

   </path>

<!-- ==================== "compile" Targets =============================== -->

   <target name="compile" depends="compileNonApp"
           description="Compile everything" >
     <javac srcdir="${source.root}" debug="yes" >
       <classpath refid="compile.classpath"/>
     </javac>
   </target>

   <target name="compileNonApp"
           description="Compile everything but app packages" >
     <javac srcdir="${source.root}" debug="yes" excludes="app/**/*.class" >
         <classpath refid="compile.classpath"/>
     </javac>
   </target>

<!-- ==================== "run" Targets =================================== -->

   <target name="runAltCell" depends="compile"
           description="Run the AltCell" >
     <java classname="aip.app.altcell.AltCell" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runAmoeba" depends="compile"
           description="Run the Amoeba" >
     <java classname="aip.app.amoeba.Amoeba" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runBackprop" depends="compile"
           description="Run the Backprop" >
     <java classname="aip.app.backprop.Backprop" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runChainer" depends="compile"
           description="Run the Chainer" >
     <java classname="aip.app.chainer.Chainer" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runConfusion" depends="compile"
           description="Run the Confusion" >
     <java classname="aip.app.confusion.Confusion" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runCrisp" depends="compile"
           description="Run the Crisp" >
     <java classname="aip.app.crisp.Crisp" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFilter" depends="compile"
           description="Run the FIlter" >
     <java classname="aip.app.filter.Filter" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFNCell" depends="compile"
           description="Run the FNCell" >
     <java classname="aip.app.fncell.FNCell" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFSMTable" depends="compile"
           description="Run the FSMTable" >
     <java classname="aip.app.fsmtable.FSMTable" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFSMTest" depends="compile"
           description="Run the FSMTest" >
     <java classname="aip.app.fsmtest.FSMTest" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFuzzy" depends="compile"
           description="Run the Fuzzy" >
     <java classname="aip.app.fuzzy.Fuzzy" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runFuzzyTest" depends="compile"
           description="Run the FuzzyTest" >
     <java classname="aip.app.fuzzytest.FuzzyTest" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runHelloLoader" depends="compile"
           description="Run the HelloLoader" >
     <java classname="aip.app.helloloader.HelloLoader" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runHelloURLLoader" depends="compile"
           description="Run the HelloURLLoader" >
     <java classname="aip.app.hellourlloader.HelloURLLoader" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runHelloWorld" depends="compile"
           description="Run the HelloWorld" >
     <java classname="aip.app.helloworld.HelloWorld" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runHHCell" depends="compile"
           description="Run the HHCell" >
     <java classname="aip.app.hhcell.HHCell" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runHopfield" depends="compile"
           description="Run the Hopfield" >
     <java classname="aip.app.hopfield.Hopfield" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runMarkov" depends="compile"
           description="Run the Markov" >
     <java classname="aip.app.markov.Markov" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runPerceptron" depends="compile"
           description="Run the Perceptron" >
     <java classname="aip.app.perceptron.Perceptron" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runPanelNest" depends="compile"
           description="Run the PanelNest" >
     <java classname="aip.app.panelnest.PanelNest" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runPathFinder" depends="compile"
           description="Run the PathFinder" >
     <java classname="aip.app.pathfinder.PathFinder" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runPID" depends="compile"
           description="Run the PID" >
     <java classname="aip.app.pid.PID" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runResolver" depends="compile"
           description="Run the Resolver" >
     <java classname="aip.app.resolver.Resolver" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runRLCart" depends="compile"
           description="Run the RLCart" >
     <java classname="aip.app.rlcart.RLCart" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runSignal" depends="compile"
           description="Run the Signal" >
     <java classname="aip.app.signal.Signal" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runSOMColor" depends="compile"
           description="Run the SOMEColor" >
     <java classname="aip.app.somcolor.SOMColor" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runSquareClient" depends="compile"
           description="Run the Square Client" >
     <java classname="aip.app.squareclient.SquareClient" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runSquareServer" depends="compile"
           description="Run the Square Server" >
     <java classname="aip.app.squareserver.SquareServer" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runThreadServer" depends="compile"
           description="Run the Thread Server" >
     <java classname="aip.app.threadserver.ThreadServer" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runTSP" depends="compile"
           description="Run the TSP" >
     <java classname="aip.app.tsp.TSP" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

   <target name="runUnifier" depends="compile"
           description="Run the Unifier" >
     <java classname="aip.app.unifier.Unifier" fork="true">
       <classpath refid="compile.classpath"/>

     </java>
   </target>

<!-- ==================== "clean" Target ================================== -->

   <target name="clean" >
     <delete >
       <fileset dir="${source.root}">
         <include name="*/*.class"/>
       </fileset>

     </delete>
   </target>

</project>


