<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
   <!ENTITY buildmagic SYSTEM "../tools/etc/buildmagic/buildmagic.ent">
   <!ENTITY libraries SYSTEM "../thirdparty/libraries.ent">
   <!ENTITY modules SYSTEM "../tools/etc/buildmagic/modules.ent">
   <!ENTITY targets SYSTEM "../tools/etc/buildmagic/targets.ent">
]>

<!-- ====================================================================== -->
<!--                                                                        -->
<!--  JBoss, the OpenSource J2EE webOS                                      -->
<!--                                                                        -->
<!--  Distributable under LGPL license.                                     -->
<!--  See terms of license at http://www.gnu.org.                           -->
<!--                                                                        -->
<!-- ====================================================================== -->

<!-- $Id: build.xml 62975 2007-05-10 22:05:27Z dimitris@jboss.org $ -->

<project default="main" name="JBoss/Test">

   <!-- ================================================================== -->
   <!-- Setup                                                              -->
   <!-- ================================================================== -->

   <!--
      | Include the common Buildmagic elements.
      |
      | This defines several different targets, properties and paths.
      | It also sets up the basic extention tasks amoung other things.
    -->

   &buildmagic;

   <!--
      | Include the normal targets.
    -->
   &targets;

   <!-- ================================================================== -->
   <!-- Configuration                                                      -->
   <!-- ================================================================== -->
 
   <!--
      | Configure the build system.  
      |
      | This target is invoked by the Buildmagic initialization logic and 
      | should contain module specific configuration elements.
    -->

   <target name="configure" unless="configure.disable">

      <!-- =================== -->
      <!-- Basic Configuration -->
      <!-- =================== -->

      <property name="javac.source" value="1.4"/>
      <property name="javac.target" value="1.4"/>
      
      <!-- Module name(s) & version -->
      <property name="module.name" value="test"/>
      <property name="module.Name" value="JBoss/Test"/>
      <property name="module.version" value="DEV"/>

      <!-- ========= -->
      <!-- Libraries -->
      <!-- ========= -->
      &libraries;

      <!-- The combined library classpath -->
      <path id="library.classpath">
         <path refid="apache.log4j.classpath"/>
         <path refid="junit.junit.classpath"/>
         <path refid="apache.ant.classpath"/>
      </path>

      <!-- ======= -->
      <!-- Modules -->
      <!-- ======= -->
      &modules;

      <!-- The combined dependent module classpath -->
      <path id="dependentmodule.classpath">
         <path refid="jboss.common.classpath"/>
         <path refid="jboss.jmx.classpath"/>
      </path>

      <!-- ===== -->
      <!-- Tasks -->
      <!-- ===== -->

      <call target="_default:task-init"/>
   </target>

   <!-- ================================================================== -->
   <!-- Compile                                                            -->
   <!-- ================================================================== -->

   <!-- 
      | Compile everything.
      |
      | This target should depend on other compile-* targets for each 
      | different type of compile that needs to be performed, short of
      | documentation compiles.
    -->
   <target name="compile"
           description="Compile all source files."
           depends="_default:compile-classes, _default:compile-etc"
   />

   <!-- ================================================================== -->
   <!-- Archives                                                           -->
   <!-- ================================================================== -->

   <!-- 
      | Build all jar files.
    -->
   <target name="module-jars">
      <jar jarfile="${build.lib}/${jar.server.name}"
           manifest="${build.etc}/default.mf">
         <fileset dir="${build.classes}"/>
      </jar>
   </target>

</project>
