<?xml version="1.0" encoding="iso-8859-1"?>
<!--
  Copyright 2001-2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<module name="smartfrog">

  <url href="http://smartfrog.org/"/>
  <description>
    Smartfrog: Distributed Application Deployment from HP Laboratories
  </description>
  <redistributable/>

  <cvs repository="sourceforge" 
  		dir="smartfrog" module="core"/>

  <project name="smartfrog">
    <package>org.smartfrog</package>

    <mkdir dir="smartfrog/build"/>
    <ant basedir="." target="dist" />
    <!-- <ant basedir="smartfrog" target="dist" /> -->    
    <depend project="ant" runtime="false"/>
    <depend project="junit" runtime="true"/>
    <depend project="javacc" runtime="false"/> 

    <work nested="smartfrog/build"/>
    <home nested="smartfrog/dist/lib"/>
    <jar name="smartfrog.jar" id="smartfrog" />
    <jar name="sfServices.jar" id="smartfrog-services" />
    <jar name="sfExamples.jar" id="smartfrog-examples" />

    <license name="smartfrog/LICENSE.txt"/>
    <!-- <javadoc nested="doc/javadocs"/> -->
    <nag from="Smartfrog &lt;smartfrog@users.sf.net&gt;"
        to="smartfrog-developer@lists.sourceforge.net.">
      <regexp subject="[Gump:Smartfrog] Build Failure"/>
    </nag>

  </project>

  <!-- ant tasks -->
  <project name="smartfrog-tasks">
    <package>org.smartfrog.tools.ant</package>
    <ant basedir="extras/ant" target="dist" />
    <depend project="ant" runtime="true"/>
    <depend project="junit" runtime="true"/>
    <depend project="smartfrog" runtime="true"/> 

    <work nested="extras/ant/build/classes"/>
    <home nested="extras/ant/build/dist/lib"/>
    <jar name="smartfrog-tasks.jar" id="smartfrog-tasks" />

    <license name="smartfrog/LICENSE.txt"/>
    <!-- <javadoc nested="doc/javadocs"/> -->
    <nag from="Smartfrog &lt;smartfrog@users.sf.net&gt;"
        to="smartfrog-developer@lists.sourceforge.net.">
      <regexp subject="[Gump:Smartfrog] Build Failure"/>
    </nag>
  </project>

  <!-- test that the ant tasks work; uses ant's test harness -->
  <project name="smartfrog-tasks-test">
    <package>org.smartfrog.tools.ant</package>
    <ant basedir="extras/ant" target="test" >
      <property name="system.tests" value="false" /> 
    </ant>    
    <depend project="ant" runtime="true"/>
    <depend project="xml-xerces"/>
    <depend project="ant-testutil" runtime="true"/>
    <depend project="junit" runtime="true"/>
    <depend project="smartfrog" runtime="true"/>
    <depend project="smartfrog-tasks" runtime="true"/>

    <work nested="extras/ant/build/test/classes"/>
    <!-- <javadoc nested="doc/javadocs"/> -->
    <junitreport nested="extras/ant/build/test/reports"/>
    
    <nag from="Smartfrog &lt;smartfrog@users.sf.net&gt;"
        to="smartfrog-developer@lists.sourceforge.net.">
      <regexp subject="[Gump:Smartfrog] Build Failure"/>
    </nag>
  </project>
  
  <!-- test that smartfrog works (needs ant tasks) -->
  <!-- important: full tests here are functional and bring up an RMI server
      on port 3800 that let people download and run stuff; unless
      security in enabled -that means *anybody*. You must disable the tests
      if that is not what you want. 
      -->
  <project name="smartfrog-test">
    <package>org.smartfrog</package>
    <ant basedir="testharness" target="test" >
      <property name="system.tests" value="false" /> 
    </ant>
    <depend project="ant" runtime="true"/>
    <depend project="xml-xerces"/>
    <depend project="ant-testutil" runtime="true"/>
    <depend project="junit" runtime="true"/>
    <depend project="smartfrog" runtime="true"/>
    <depend project="smartfrog-tasks" runtime="true"/>

    <work nested="testharness/build/test/classes"/>
    <junitreport nested="testharness/build/test/reports"/>
    
    <nag from="Smartfrog &lt;smartfrog@users.sf.net&gt;"
        to="smartfrog-developer@lists.sourceforge.net.">
      <regexp subject="[Gump:Smartfrog] Build Failure"/>
    </nag>
  </project>
  
</module>
