org.objectweb.jonas.ant
Class JOnASBaseTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.jonas.ant.JOnASBaseTask

public class JOnASBaseTask
extends org.apache.tools.ant.Task

Class used to create a JOnAS base with different configuration like port, url for JNDI, etc

Author:
Florent Benoit

Field Summary
static java.lang.String[] APPS_LIST
          List of Apps to copy for each JONAS_BASE
static java.lang.String CAROL_CONF_FILE
          Name of Carol configuration file
static java.lang.String DOMAIN_CONF_FILE
          Name of domain management file
static java.lang.String[] EJBJARS_LIST
          List of EjbJars to copy for each JONAS_BASE
static java.lang.String JETTY_CONF_FILE
          Name of Tomcat configuration file
static java.lang.String JGROUPS_CMI_CONF_FILE
          Name of JGroups CMI configuration file
static java.lang.String JGROUPS_HA_CONF_FILE
          Name of JGroups HA configuration file
static java.lang.String JONAS_CONF_FILE
          Name of JOnAS configuration file
static java.lang.String JORAM_ADMIN_CONF_FILE
          Name of Joram admin configuration file (resource adaptor)
static java.lang.String JORAM_CONF_FILE
          Name of Joram configuration file
static java.lang.String P6SPY_CONF_FILE
          Name of P6Spy configuration file
static java.lang.String[] RARS_LIST
          List of Rars to copy for each JONAS_BASE
static java.lang.String TOMCAT_CONF_FILE
          Name of Tomcat configuration file
static java.lang.String[] WARS_LIST
          List of Wars to copy for each JONAS_BASE
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JOnASBaseTask()
          Constructor
 
Method Summary
 void addConfiguredCarol(Carol carolTasks)
          Add tasks for Carol configuration
 void addConfiguredDb(Db dbTask)
          Add task for the DB service
 void addConfiguredDbm(Dbm dbTask)
          Add task for the DBM service
 void addConfiguredDiscovery(Discovery discoveryTasks)
          Add tasks for Discovery configuration
 void addConfiguredJdbcRa(JdbcRa jdbcRaTask)
          Add task for Resource adaptor
 void addConfiguredJms(Jms jmsTasks)
          Add tasks for JMS configuration
 void addConfiguredJonasProperties(JonasProperties servicesTasks)
          Add tasks for jonas.properties global properties configuration
 void addConfiguredLib(Lib libTask)
          Add task for library to put in JONAS_BASE/lib/ext
 void addConfiguredMail(Mail mailTask)
          Add task for Resource adaptor
 void addConfiguredServices(Services servicesTasks)
          Add tasks for services (wrapped to default method)
 void addConfiguredWebContainer(WebContainer webContainerTasks)
          Add tasks for the web container configuration
 void addConfiguredWsdlPublish(WsdlPublish wsdlTask)
          Add task for WSDL
 void addTask(BaseTaskItf task)
          Add a task for configure some objects
 void addTasks(Tasks subTasks)
          Add tasks for configured object
 void execute()
          Run this task
 void setDestDir(java.io.File destDir)
          Set the destination directory for the replacement
 void setJonasRoot(java.io.File jonasRoot)
          Set the source directory for the replacement
 void setUpdate(boolean onlyUpdate)
          Set if this is only an update or a new JONAS_BASE
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JONAS_CONF_FILE

public static final java.lang.String JONAS_CONF_FILE
Name of JOnAS configuration file

See Also:
Constant Field Values

JORAM_CONF_FILE

public static final java.lang.String JORAM_CONF_FILE
Name of Joram configuration file

See Also:
Constant Field Values

JORAM_ADMIN_CONF_FILE

public static final java.lang.String JORAM_ADMIN_CONF_FILE
Name of Joram admin configuration file (resource adaptor)

See Also:
Constant Field Values

CAROL_CONF_FILE

public static final java.lang.String CAROL_CONF_FILE
Name of Carol configuration file

See Also:
Constant Field Values

JGROUPS_CMI_CONF_FILE

public static final java.lang.String JGROUPS_CMI_CONF_FILE
Name of JGroups CMI configuration file

See Also:
Constant Field Values

JGROUPS_HA_CONF_FILE

public static final java.lang.String JGROUPS_HA_CONF_FILE
Name of JGroups HA configuration file

See Also:
Constant Field Values

TOMCAT_CONF_FILE

public static final java.lang.String TOMCAT_CONF_FILE
Name of Tomcat configuration file

See Also:
Constant Field Values

JETTY_CONF_FILE

public static final java.lang.String JETTY_CONF_FILE
Name of Tomcat configuration file

See Also:
Constant Field Values

P6SPY_CONF_FILE

public static final java.lang.String P6SPY_CONF_FILE
Name of P6Spy configuration file

See Also:
Constant Field Values

DOMAIN_CONF_FILE

public static final java.lang.String DOMAIN_CONF_FILE
Name of domain management file

See Also:
Constant Field Values

WARS_LIST

public static final java.lang.String[] WARS_LIST
List of Wars to copy for each JONAS_BASE


RARS_LIST

public static final java.lang.String[] RARS_LIST
List of Rars to copy for each JONAS_BASE


EJBJARS_LIST

public static final java.lang.String[] EJBJARS_LIST
List of EjbJars to copy for each JONAS_BASE


APPS_LIST

public static final java.lang.String[] APPS_LIST
List of Apps to copy for each JONAS_BASE

Constructor Detail

JOnASBaseTask

public JOnASBaseTask()
Constructor

Method Detail

execute

public void execute()
Run this task

Overrides:
execute in class org.apache.tools.ant.Task
See Also:
Task.execute()

addTasks

public void addTasks(Tasks subTasks)
Add tasks for configured object

Parameters:
subTasks - some tasks to do on files

addTask

public void addTask(BaseTaskItf task)
Add a task for configure some objects

Parameters:
task - the task to do

addConfiguredServices

public void addConfiguredServices(Services servicesTasks)
Add tasks for services (wrapped to default method)

Parameters:
servicesTasks - tasks to do on files

addConfiguredJonasProperties

public void addConfiguredJonasProperties(JonasProperties servicesTasks)
Add tasks for jonas.properties global properties configuration

Parameters:
servicesTasks - tasks to do on files

addConfiguredJms

public void addConfiguredJms(Jms jmsTasks)
Add tasks for JMS configuration

Parameters:
jmsTasks - tasks to do on files

addConfiguredJdbcRa

public void addConfiguredJdbcRa(JdbcRa jdbcRaTask)
Add task for Resource adaptor

Parameters:
jdbcRaTask - task to do

addConfiguredMail

public void addConfiguredMail(Mail mailTask)
Add task for Resource adaptor

Parameters:
mailTask - task to do

addConfiguredDb

public void addConfiguredDb(Db dbTask)
Add task for the DB service

Parameters:
dbTask - task to do

addConfiguredDbm

public void addConfiguredDbm(Dbm dbTask)
Add task for the DBM service

Parameters:
dbTask - task to do

addConfiguredLib

public void addConfiguredLib(Lib libTask)
Add task for library to put in JONAS_BASE/lib/ext

Parameters:
libTask - task to do

addConfiguredWsdlPublish

public void addConfiguredWsdlPublish(WsdlPublish wsdlTask)
Add task for WSDL

Parameters:
wsdlTask - task to do

addConfiguredCarol

public void addConfiguredCarol(Carol carolTasks)
Add tasks for Carol configuration

Parameters:
carolTasks - tasks to do on files

addConfiguredDiscovery

public void addConfiguredDiscovery(Discovery discoveryTasks)
Add tasks for Discovery configuration

Parameters:
discoveryTasks - tasks to do on files

addConfiguredWebContainer

public void addConfiguredWebContainer(WebContainer webContainerTasks)
Add tasks for the web container configuration

Parameters:
webContainerTasks - tasks to do on files

setDestDir

public void setDestDir(java.io.File destDir)
Set the destination directory for the replacement

Parameters:
destDir - the destination directory

setJonasRoot

public void setJonasRoot(java.io.File jonasRoot)
Set the source directory for the replacement

Parameters:
jonasRoot - the source directory

setUpdate

public void setUpdate(boolean onlyUpdate)
Set if this is only an update or a new JONAS_BASE

Parameters:
onlyUpdate - If true update, else create and then update