org.objectweb.jonas.ant
Class JOnASAntTool

java.lang.Object
  extended by org.objectweb.jonas.ant.JOnASAntTool

public 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 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 recursivly all the files inside.

Parameters:
aFile - file to delete.


Copyright © 2007 OW2 Consortium. All Rights Reserved.