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

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
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
JOnASBaseTask, JonasProperties

public abstract class AbstractJOnASBaseAntTask
extends org.apache.tools.ant.Task

Abstract jonas base task


Field Summary
protected static String CONF_DIR
          Configuration directory of JOnAS
protected  File destDir
          Destination directory (Where create the jonasBase).
protected  File jonasRoot
          Source directory (JOnAS root).
protected  List tasks
          List of tasks to execute
 
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
protected AbstractJOnASBaseAntTask()
          Default constructor
 
Method Summary
 void addTask(BaseTaskItf task)
          Add a task for configure some objects.
 void addTasks(Tasks subTasks)
          Add tasks for configured object.
protected  JTask createServiceNameReplace(String serviceName, String info, String confDir, String property)
          Create a JReplace Task for changing service classname in jonas.properties.
 void execute()
          Run this task.
 void executeAllTask()
          Execute all tasks
 List getTasks()
          Return Jms tasks
 
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

jonasRoot

protected File jonasRoot
Source directory (JOnAS root).


destDir

protected File destDir
Destination directory (Where create the jonasBase).


tasks

protected List tasks
List of tasks to execute


CONF_DIR

protected static final String CONF_DIR
Configuration directory of JOnAS

See Also:
Constant Field Values
Constructor Detail

AbstractJOnASBaseAntTask

protected AbstractJOnASBaseAntTask()
Default constructor

Method Detail

execute

public void execute()
Run this task.

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

executeAllTask

public void executeAllTask()
Execute all tasks


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

getTasks

public List getTasks()
Return Jms tasks

Returns:
all tasks

createServiceNameReplace

protected JTask createServiceNameReplace(String serviceName,
                                         String info,
                                         String confDir,
                                         String property)
Create a JReplace Task for changing service classname in jonas.properties.

Parameters:
serviceName - service classname to use.
Returns:
Returns a JReplace Task.


Copyright © 2011 OW2 Consortium. All Rights Reserved.