org.ow2.jonas.antmodular.bootstrap
Class JOnASAntTool

java.lang.Object
  extended by org.ow2.jonas.antmodular.bootstrap.JOnASAntTool

public final class JOnASAntTool
extends Object

Common constants or methods used by several classes of the package.

Author:
Benoit Pelletier

Field Summary
static String[] DEPLOYMENT_PLAN_LIST
          List of deployment plans to copy for each JONAS_BASE.
 
Method Summary
static void configure(org.apache.tools.ant.Task srcTask, org.apache.tools.ant.Task dstTask)
          Configure the given task by setting name, project root, etc.
static org.apache.tools.ant.types.Environment.Variable createVariable(String key, File value)
          Create an Ant Environment.Variable configured with an absolute File path as value.
static org.apache.tools.ant.types.Environment.Variable createVariable(String key, String value)
          Create an Ant Environment.Variable configured with a simple value.
static void deleteAllFiles(File aFile)
          Delete a file.
static void updateJonasBase(org.apache.tools.ant.Task antTask, File jonasRoot, File destDir, String[] deploymentPlanList)
          Update the JONAS_BASE directory with ejbjars, webapps, rars, etc.
static void updateJonasBaseForArchives(org.apache.tools.ant.Task antTask, File jonasRoot, File destDir, Archives archives, String folderName, String[] listOfIncludes)
          Update JONAS_BASE with given archives with lists of includes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOYMENT_PLAN_LIST

public static final String[] DEPLOYMENT_PLAN_LIST
List of deployment plans to copy for each JONAS_BASE.

Method Detail

updateJonasBase

public static void updateJonasBase(org.apache.tools.ant.Task antTask,
                                   File jonasRoot,
                                   File destDir,
                                   String[] deploymentPlanList)
Update the JONAS_BASE directory with ejbjars, webapps, rars, etc.

Parameters:
antTask - target task
jonasRoot - JONAS_ROOT
destDir - destination directory

updateJonasBaseForArchives

public static void updateJonasBaseForArchives(org.apache.tools.ant.Task antTask,
                                              File jonasRoot,
                                              File destDir,
                                              Archives archives,
                                              String folderName,
                                              String[] listOfIncludes)
Update JONAS_BASE with given archives with lists of includes.

Parameters:
antTask - target task
jonasRoot - JONAS_ROOT
destDir - destination directory
archives - tasks (webapps, rars, ejbjars)
folderName - where to put files
listOfIncludes - files to include

configure

public static void configure(org.apache.tools.ant.Task srcTask,
                             org.apache.tools.ant.Task dstTask)
Configure the given task by setting name, project root, etc.

Parameters:
srcTask - source task
dstTask - destination task

deleteAllFiles

public static void deleteAllFiles(File aFile)
Delete a file. If the file is a directory, delete recursively all the files inside.

Parameters:
aFile - file to delete.

createVariable

public static org.apache.tools.ant.types.Environment.Variable createVariable(String key,
                                                                             String value)
Create an Ant Environment.Variable configured with a simple value.

Parameters:
key - variable name
value - variable value
Returns:
a configured Environment.Variable

createVariable

public static org.apache.tools.ant.types.Environment.Variable createVariable(String key,
                                                                             File value)
Create an Ant Environment.Variable configured with an absolute File path as value.

Parameters:
key - variable name
value - variable value
Returns:
a configured Environment.Variable


Copyright © 2013 OW2 Consortium. All Rights Reserved.