org.ow2.jonas.antmodular.jonasbase.bootstrap
Class JOnASBaseTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
              extended by org.ow2.jonas.antmodular.jonasbase.bootstrap.JOnASBaseTask
All Implemented Interfaces:
Cloneable

public class JOnASBaseTask
extends AbstractJOnASBaseAntTask

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

Author:
Florent Benoit

Field Summary
static String DEPLOY_DIR_NAME
          Name of deploy directory.
static String DOMAIN_CONF_FILE
          Name of domain management file.
static String JONAS_CONF_FILE
          Name of JOnAS configuration file.
static String LIB_EXT_DIR_NAME
          Name of lib/ext directory.
static String LOG_DIR_NAME
          Name of logs directory.
protected  boolean onlyUpdate
          Update only JONAS_BASE without erasing it.
static String OPTIONAL_DEPLOYABLE_PACKAGE
          Package of mandatory deployables
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
CONF_DIR, destDir, jonasRoot, skipOptionalDeployablesCopy, tasks
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
JOnASBaseTask()
          Constructor.
 
Method Summary
 void addConfiguredServices(Services servicesTasks)
          Add tasks for services (wrapped to default method).
 void execute()
          Run this task.
 void setUpdate(boolean onlyUpdate)
          Set if this is only an update or a new JONAS_BASE.
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
addTask, addTasks, copyTemplateDeployables, createServiceNameReplace, executeAllTask, getJOnASBase, getJOnASRoot, getTasks, setDestDir, setSkipOptionalDeployablesCopy
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
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

DOMAIN_CONF_FILE

public static final String DOMAIN_CONF_FILE
Name of domain management 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

onlyUpdate

protected boolean onlyUpdate
Update only JONAS_BASE without erasing it.


OPTIONAL_DEPLOYABLE_PACKAGE

public static final String OPTIONAL_DEPLOYABLE_PACKAGE
Package of mandatory deployables

See Also:
Constant Field Values
Constructor Detail

JOnASBaseTask

public JOnASBaseTask()
Constructor.

Method Detail

execute

public void execute()
Run this task.

Overrides:
execute in class AbstractJOnASBaseAntTask
See Also:
Task.execute()

addConfiguredServices

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

Parameters:
servicesTasks - tasks to do on files

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 © 2013 OW2 Consortium. All Rights Reserved.