org.objectweb.jonas.ant
Class JOnASAntTool

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

public class JOnASAntTool
extends java.lang.Object

Common constants or methods used by several classes of the package

Author:
Benoit Pelletier

Field Summary
static java.lang.String[] APPS_LIST
          List of Apps to copy for each JONAS_BASE
static java.lang.String CAROL_CONF_FILE
          Name of Carol configuration file
static java.lang.String[] EJBJARS_LIST
          List of EjbJars to copy for each JONAS_BASE
static java.lang.String JETTY_CONF_FILE
          Name of Tomcat configuration file
static java.lang.String JONAS_CONF_FILE
          Name of JOnAS configuration file
static java.lang.String JORAM_ADMIN_CONF_FILE
          Name of Joram admin configuration file (resource adaptor)
static java.lang.String JORAM_CONF_FILE
          Name of Joram configuration file
static java.lang.String P6SPY_CONF_FILE
          Name of P6Spy configuration file
static java.lang.String[] RARS_LIST
          List of Rars to copy for each JONAS_BASE
static java.lang.String TOMCAT_CONF_FILE
          Name of Tomcat configuration file
static java.lang.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(java.io.File aFile)
          Delete a file.
static void updateJonasBase(org.apache.tools.ant.Task antTask, java.io.File jonasRoot, java.io.File destDir)
          Update the JONAS_BASE directory with ejbjars, webapps, rars, etc.
static void updateJonasBaseForArchives(org.apache.tools.ant.Task antTask, java.io.File jonasRoot, java.io.File destDir, Archives archives, java.lang.String folderName, java.lang.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

JONAS_CONF_FILE

public static final java.lang.String JONAS_CONF_FILE
Name of JOnAS configuration file

See Also:
Constant Field Values

JORAM_CONF_FILE

public static final java.lang.String JORAM_CONF_FILE
Name of Joram configuration file

See Also:
Constant Field Values

JORAM_ADMIN_CONF_FILE

public static final java.lang.String JORAM_ADMIN_CONF_FILE
Name of Joram admin configuration file (resource adaptor)

See Also:
Constant Field Values

CAROL_CONF_FILE

public static final java.lang.String CAROL_CONF_FILE
Name of Carol configuration file

See Also:
Constant Field Values

TOMCAT_CONF_FILE

public static final java.lang.String TOMCAT_CONF_FILE
Name of Tomcat configuration file

See Also:
Constant Field Values

JETTY_CONF_FILE

public static final java.lang.String JETTY_CONF_FILE
Name of Tomcat configuration file

See Also:
Constant Field Values

P6SPY_CONF_FILE

public static final java.lang.String P6SPY_CONF_FILE
Name of P6Spy configuration file

See Also:
Constant Field Values

WARS_LIST

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


RARS_LIST

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


EJBJARS_LIST

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


APPS_LIST

public static final java.lang.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,
                                   java.io.File jonasRoot,
                                   java.io.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,
                                              java.io.File jonasRoot,
                                              java.io.File destDir,
                                              Archives archives,
                                              java.lang.String folderName,
                                              java.lang.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(java.io.File aFile)
Delete a file. If the file is a directory, delete recursivly all the files inside.

Parameters:
aFile - file to delete.