org.ow2.jonas.antmodular.jonasbase.wrapper
Class Wrapper

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
              extended by org.ow2.jonas.antmodular.jonasbase.wrapper.Wrapper
All Implemented Interfaces:
Cloneable

public class Wrapper
extends org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask

Wrapper ANT task

Author:
Jeremy Cazaux

Field Summary
static String DEFAULT_WRAPPER_HOME_DIRECTORY_NAME
          Default wrapper directory name
static String DELIMITER
          Delimiter
static String JAVA_COMMAND_PROPERTY
          JAVA_HOME property
static String JAVA_COMMAND_TOKEN
          JAVA_HOME token
static String JONAS_BASE_PROPERTY
          JONAS_BASE property
static String JONAS_BASE_TOKEN
          JONAS_BASE token
static String JONAS_ROOT_PROPERTY
          JONAS_ROOT property
static String JONAS_ROOT_TOKEN
          JONAS_ROOT token
static String JONAS_WRAPPER_BASE_CONF
          JOnAS wrapper base conf
static String JONAS_WRAPPER_SETENV_SH
          Wrapper Setenv SH file
static String JONAS_WRAPPER_START_CONF
          JOnAS wrapper start conf
static String JONAS_WRAPPER_STOP_CONF
          JOnAS wrapper stop conf
static String LOGFILE_PROPERTY
          logfile property
static String LOGFILE_ROLLMODE_PROPERTY
          logfile rollmode property
static String LOGFILE_ROLLMODE_TOKEN
          logfile's rollmode token
static String LOGFILE_TOKEN
          logfile token
static String SERVICE_DESCRIPTION_PROPERTY
          OS service description property
static String SERVICE_DESCRIPTION_TOKEN
          OS service description token
static String SERVICE_DISPLAYNAME
          OS service display name property
static String SERVICE_DISPLAYNAME_TOKEN
          OS service display name token
static String SERVICE_NAME_PROPERTY
          OS service name property
static String SERVICE_NAME_TOKEN
          OS service name token
static String SETENV_WRAPPER_BASE_PROPERTY
          wrapper_base setenv property
static String SETENV_WRAPPER_BASE_TOKEN
          wrapper_base setenv token
static String VERBOSITY_PROPERTY
          Wrapper debug property
static String VERBOSITY_TOKEN
          Wrapper debug token
static String WRAPPER_BASE_INCLUDE_PROPERTY
          Wrapper base include property
static String WRAPPER_BASE_INCLUDE_TOKEN
          Wrapper base include token
static String WRAPPER_BASE_VAR_PROPERTY
           
static String WRAPPER_BASE_VAR_TOKEN
           
static String WRAPPER_BIN_DIR
          Wrapper bin directory
static String WRAPPER_CONF_DIR
          Wrapper conf directory
static String WRAPPER_ROOT_PROPERTY
          wrapper_root setenv property
static String WRAPPER_ROOT_TOKEN
          wrapper_root setenv token
static String WRAPPER_STOP_INCLUDE_FILE
          jonas_stop include file
static String WRAPPER_STOP_INCLUDE_TOKEN
          jonas stop include token
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
CONF_DIR, destDir, jonasRoot, tasks
 
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
Wrapper()
          Default constructor
 
Method Summary
 void execute()
          Execute this task.
 void setJavaHome(String javaHome)
           
 void setLogfile(String logfile)
           
 void setLogfileRollmode(LogfileRollmode logfileRollmode)
           
 void setLogfileRollmode(String logfileRollmode)
           
 void setServiceDescription(String serviceDescription)
           
 void setServiceName(String serviceName)
           
 void setVerbosity(Boolean verbosity)
           
 void setWrapperHome(String wrapperHome)
           
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
addTask, addTasks, createServiceNameReplace, executeAllTask, getJOnASBase, getJOnASRoot, getTasks, setDestDir
 
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

JONAS_WRAPPER_START_CONF

public static final String JONAS_WRAPPER_START_CONF
JOnAS wrapper start conf

See Also:
Constant Field Values

JONAS_WRAPPER_STOP_CONF

public static final String JONAS_WRAPPER_STOP_CONF
JOnAS wrapper stop conf

See Also:
Constant Field Values

JONAS_WRAPPER_BASE_CONF

public static final String JONAS_WRAPPER_BASE_CONF
JOnAS wrapper base conf

See Also:
Constant Field Values

DELIMITER

public static final String DELIMITER
Delimiter

See Also:
Constant Field Values

JAVA_COMMAND_PROPERTY

public static final String JAVA_COMMAND_PROPERTY
JAVA_HOME property

See Also:
Constant Field Values

JAVA_COMMAND_TOKEN

public static final String JAVA_COMMAND_TOKEN
JAVA_HOME token

See Also:
Constant Field Values

JONAS_ROOT_PROPERTY

public static final String JONAS_ROOT_PROPERTY
JONAS_ROOT property

See Also:
Constant Field Values

JONAS_ROOT_TOKEN

public static final String JONAS_ROOT_TOKEN
JONAS_ROOT token

See Also:
Constant Field Values

JONAS_BASE_PROPERTY

public static final String JONAS_BASE_PROPERTY
JONAS_BASE property

See Also:
Constant Field Values

JONAS_BASE_TOKEN

public static final String JONAS_BASE_TOKEN
JONAS_BASE token

See Also:
Constant Field Values

LOGFILE_PROPERTY

public static final String LOGFILE_PROPERTY
logfile property

See Also:
Constant Field Values

LOGFILE_TOKEN

public static final String LOGFILE_TOKEN
logfile token

See Also:
Constant Field Values

LOGFILE_ROLLMODE_PROPERTY

public static final String LOGFILE_ROLLMODE_PROPERTY
logfile rollmode property

See Also:
Constant Field Values

LOGFILE_ROLLMODE_TOKEN

public static final String LOGFILE_ROLLMODE_TOKEN
logfile's rollmode token

See Also:
Constant Field Values

SERVICE_NAME_PROPERTY

public static final String SERVICE_NAME_PROPERTY
OS service name property

See Also:
Constant Field Values

SERVICE_NAME_TOKEN

public static final String SERVICE_NAME_TOKEN
OS service name token

See Also:
Constant Field Values

SERVICE_DISPLAYNAME

public static final String SERVICE_DISPLAYNAME
OS service display name property

See Also:
Constant Field Values

SERVICE_DISPLAYNAME_TOKEN

public static final String SERVICE_DISPLAYNAME_TOKEN
OS service display name token

See Also:
Constant Field Values

SERVICE_DESCRIPTION_PROPERTY

public static final String SERVICE_DESCRIPTION_PROPERTY
OS service description property

See Also:
Constant Field Values

SERVICE_DESCRIPTION_TOKEN

public static final String SERVICE_DESCRIPTION_TOKEN
OS service description token

See Also:
Constant Field Values

VERBOSITY_PROPERTY

public static final String VERBOSITY_PROPERTY
Wrapper debug property

See Also:
Constant Field Values

VERBOSITY_TOKEN

public static final String VERBOSITY_TOKEN
Wrapper debug token

See Also:
Constant Field Values

DEFAULT_WRAPPER_HOME_DIRECTORY_NAME

public static final String DEFAULT_WRAPPER_HOME_DIRECTORY_NAME
Default wrapper directory name

See Also:
Constant Field Values

JONAS_WRAPPER_SETENV_SH

public static final String JONAS_WRAPPER_SETENV_SH
Wrapper Setenv SH file

See Also:
Constant Field Values

WRAPPER_BASE_INCLUDE_PROPERTY

public static final String WRAPPER_BASE_INCLUDE_PROPERTY
Wrapper base include property

See Also:
Constant Field Values

WRAPPER_CONF_DIR

public static final String WRAPPER_CONF_DIR
Wrapper conf directory

See Also:
Constant Field Values

WRAPPER_BIN_DIR

public static final String WRAPPER_BIN_DIR
Wrapper bin directory

See Also:
Constant Field Values

WRAPPER_BASE_INCLUDE_TOKEN

public static final String WRAPPER_BASE_INCLUDE_TOKEN
Wrapper base include token


WRAPPER_STOP_INCLUDE_FILE

public static final String WRAPPER_STOP_INCLUDE_FILE
jonas_stop include file

See Also:
Constant Field Values

WRAPPER_STOP_INCLUDE_TOKEN

public static final String WRAPPER_STOP_INCLUDE_TOKEN
jonas stop include token


WRAPPER_ROOT_PROPERTY

public static final String WRAPPER_ROOT_PROPERTY
wrapper_root setenv property

See Also:
Constant Field Values

WRAPPER_ROOT_TOKEN

public static final String WRAPPER_ROOT_TOKEN
wrapper_root setenv token

See Also:
Constant Field Values

SETENV_WRAPPER_BASE_PROPERTY

public static final String SETENV_WRAPPER_BASE_PROPERTY
wrapper_base setenv property

See Also:
Constant Field Values

SETENV_WRAPPER_BASE_TOKEN

public static final String SETENV_WRAPPER_BASE_TOKEN
wrapper_base setenv token

See Also:
Constant Field Values

WRAPPER_BASE_VAR_PROPERTY

public static final String WRAPPER_BASE_VAR_PROPERTY
See Also:
Constant Field Values

WRAPPER_BASE_VAR_TOKEN

public static final String WRAPPER_BASE_VAR_TOKEN
See Also:
Constant Field Values
Constructor Detail

Wrapper

public Wrapper()
Default constructor

Method Detail

setJavaHome

public void setJavaHome(String javaHome)
Parameters:
javaHome - The path to the JAVA_HOME to set

setWrapperHome

public void setWrapperHome(String wrapperHome)
Parameters:
wrapperHome - wrapper

setServiceName

public void setServiceName(String serviceName)
Parameters:
serviceName - The name of the OS service

setLogfileRollmode

public void setLogfileRollmode(LogfileRollmode logfileRollmode)
Parameters:
logfileRollmode - The rollmode of the logfile to set

setLogfileRollmode

public void setLogfileRollmode(String logfileRollmode)
Parameters:
logfileRollmode - The rollmode of the logfile to set

setVerbosity

public void setVerbosity(Boolean verbosity)
Parameters:
verbosity - Verbosity mode

setServiceDescription

public void setServiceDescription(String serviceDescription)
Parameters:
serviceDescription - Service description to set

setLogfile

public void setLogfile(String logfile)
Parameters:
logfile - log file to set

execute

public void execute()
Execute this task.

Overrides:
execute in class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask


Copyright © 2012 OW2 Consortium. All Rights Reserved.