org.ow2.jonas.ant
Class JOnASBaseTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.JOnASBaseTask
Direct Known Subclasses:
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 String CAROL_CONF_FILE
          Name of Carol configuration file.
static String DEPLOY_DIR_NAME
          Name of deploy directory.
static String DOMAIN_CONF_FILE
          Name of domain management file.
static String JAAS_CONF_FILE
          Name of JAAS configuration file.
static String JETTY_CONF_FILE
          Name of Tomcat configuration file.
static String JGROUPS_CMI_CONF_FILE
          Name of JGroups CMI configuration file.
static String JGROUPS_HA_CONF_FILE
          Name of JGroups HA configuration file.
static String JONAS_CONF_FILE
          Name of JOnAS configuration file.
static String JORAM_ADMIN_CONF_FILE
          Name of Joram admin configuration file (resource adaptor).
static String JORAM_CONF_FILE
          Name of Joram configuration file.
static String LIB_EXT_DIR_NAME
          Name of lib/ext directory.
static String LOG_DIR_NAME
          Name of logs directory.
static String P6SPY_CONF_FILE
          Name of P6Spy configuration file.
static String TOMCAT_CONF_FILE
          Name of Tomcat configuration file.
 
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 addConfiguredJaas(Jaas jaasTasks)
          Add tasks for JAAS 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(File destDir)
          Set the destination directory for the replacement.
 void setJonasRoot(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 String JONAS_CONF_FILE
Name of JOnAS configuration file.

See Also:
Constant Field Values

JORAM_CONF_FILE

public static final String JORAM_CONF_FILE
Name of Joram configuration file.

See Also:
Constant Field Values

JORAM_ADMIN_CONF_FILE

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

See Also:
Constant Field Values

CAROL_CONF_FILE

public static final String CAROL_CONF_FILE
Name of Carol configuration file.

See Also:
Constant Field Values

JGROUPS_CMI_CONF_FILE

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

See Also:
Constant Field Values

JGROUPS_HA_CONF_FILE

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

See Also:
Constant Field Values

TOMCAT_CONF_FILE

public static final String TOMCAT_CONF_FILE
Name of Tomcat configuration file.

See Also:
Constant Field Values

JETTY_CONF_FILE

public static final String JETTY_CONF_FILE
Name of Tomcat configuration file.

See Also:
Constant Field Values

P6SPY_CONF_FILE

public static final String P6SPY_CONF_FILE
Name of P6Spy configuration file.

See Also:
Constant Field Values

DOMAIN_CONF_FILE

public static final String DOMAIN_CONF_FILE
Name of domain management file.

See Also:
Constant Field Values

JAAS_CONF_FILE

public static final String JAAS_CONF_FILE
Name of JAAS configuration file.

See Also:
Constant Field Values

LOG_DIR_NAME

public static final String LOG_DIR_NAME
Name of logs directory.

See Also:
Constant Field Values

DEPLOY_DIR_NAME

public static final String DEPLOY_DIR_NAME
Name of deploy directory.

See Also:
Constant Field Values

LIB_EXT_DIR_NAME

public static final String LIB_EXT_DIR_NAME
Name of lib/ext directory.

See Also:
Constant Field Values
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

addConfiguredJaas

public void addConfiguredJaas(Jaas jaasTasks)
Add tasks for JAAS configuration.

Parameters:
jaasTasks - tasks to do on files

setDestDir

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

Parameters:
destDir - the destination directory

setJonasRoot

public void setJonasRoot(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


Copyright © 2010 OW2 Consortium. All Rights Reserved.