org.ow2.jonas.ant
Class JOnASAntTool

java.lang.Object
  extended by org.ow2.jonas.ant.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[] APPS_LIST
          List of Apps to copy for each JONAS_BASE.
static String[] EJBJARS_LIST
          List of EjbJars to copy for each JONAS_BASE.
static String[] RARS_LIST
          List of Rars to copy for each JONAS_BASE.
static String[] WARS_LIST
          List of Wars 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)
          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

WARS_LIST

public static final String[] WARS_LIST
List of Wars to copy for each JONAS_BASE.


RARS_LIST

public static final String[] RARS_LIST
List of Rars to copy for each JONAS_BASE.


EJBJARS_LIST

public static final String[] EJBJARS_LIST
List of EjbJars to copy for each JONAS_BASE.


APPS_LIST

public static final String[] APPS_LIST
List of Apps to copy for each JONAS_BASE.

Method Detail

updateJonasBase

public static void updateJonasBase(org.apache.tools.ant.Task antTask,
                                   File jonasRoot,
                                   File destDir)
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 © 2008 OW2 Consortium. All Rights Reserved.