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  boolean skipOptionalDeployablesCopy
          Allow to skip copy of optional deployables
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  void copyTemplateDeployables(String resourcePackage)
           
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
 String getJOnASBase()
           
 String getJOnASRoot()
           
 List getTasks()
          Return Jms tasks
 void setDestDir(File destDir)
           
 void setSkipOptionalDeployablesCopy(boolean skipOptionalDeployablesCopy)
           
 
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

skipOptionalDeployablesCopy

protected boolean skipOptionalDeployablesCopy
Allow to skip copy of optional deployables

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.

setDestDir

public void setDestDir(File destDir)
Parameters:
destDir - Destination directory to set

getJOnASRoot

public String getJOnASRoot()
Returns:
the path of the JONAS_ROOT

getJOnASBase

public String getJOnASBase()
Returns:
the path of the JONAS_BASE

copyTemplateDeployables

protected void copyTemplateDeployables(String resourcePackage)
Parameters:
resourcePackage - Resources package of template deployables to retrieve and to copy in the deploy directory of the JOnAS instance

setSkipOptionalDeployablesCopy

public void setSkipOptionalDeployablesCopy(boolean skipOptionalDeployablesCopy)
Parameters:
skipOptionalDeployablesCopy - Set the skipOptionalDeployablesCopy flag


Copyright © 2013 OW2 Consortium. All Rights Reserved.