Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » ejb » [javadoc | source]
org.apache.tools.ant.taskdefs.optional.ejb
public class: WLRun [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.tools.ant.taskdefs.optional.ejb.WLRun

All Implemented Interfaces:
    Cloneable

Starts a WebLogic server. A number of parameters are used to control the operation of the weblogic instance. Note that the task, and hence ant, will not complete until the weblogic instance is stopped.

Field Summary
protected static final  String DEFAULT_WL51_POLICY_FILE     
protected static final  String DEFAULT_WL60_POLICY_FILE     
protected static final  String DEFAULT_PROPERTIES_FILE     
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.taskdefs.optional.ejb.WLRun Summary:
createClasspath,   createWLClasspath,   execute,   setArgs,   setBEAHome,   setClasspath,   setDomain,   setHome,   setJvmargs,   setName,   setPKPassword,   setPassword,   setPolicy,   setProperties,   setUsername,   setWeblogicMainClass,   setWlclasspath
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.ejb.WLRun Detail:
 public Path createClasspath() 
    Add the classpath for the user classes
 public Path createWLClasspath() 
    Get the classpath to the weblogic classpaths
 public  void execute() throws BuildException 
    Do the work. The work is actually done by creating a separate JVM to run a helper task. This approach allows the classpath of the helper task to be set. Since the weblogic tools require the class files of the project's home and remote interfaces to be available in the classpath, this also avoids having to start ant with the class path of the project it is building.
 public  void setArgs(String args) 
    Additional argument string passed to the Weblogic instance; optional.
 public  void setBEAHome(File beaHome) 
    The location of the BEA Home; implicitly selects Weblogic 6.0; optional.
 public  void setClasspath(Path classpath) 
    The classpath to be used with the Java Virtual Machine that runs the Weblogic Server; required. Prior to Weblogic 6.0, this is typically set to the Weblogic boot classpath. Under Weblogic 6.0 this should include all the weblogic jars
 public  void setDomain(String domain) 
    Set the Domain to run in; required for WL6.0
 public  void setHome(File weblogicHome) 
    The location where weblogic lives. Required. This is the absolute location, not relative to BEA home.
 public  void setJvmargs(String args) 
    Set the additional arguments to pass to the weblogic JVM
 public  void setName(String serverName) 
    The name of the weblogic server within the weblogic home which is to be run. Optiona, defaults to "myserver"
 public  void setPKPassword(String pkpassword) 
    Set the private key password so the server can decrypt the SSL private key file; optional and only applicable to WL6.0.
 public  void setPassword(String password) 
    Set the management password of the server; optional and only applicable to WL6.0.
 public  void setPolicy(String securityPolicy) 
    The name of the security policy file within the weblogic home directory that is to be used. If not specified, the default policy file weblogic.policy is used.
 public  void setProperties(String propertiesFilename) 
    The name of the server's properties file within the weblogic home directory used to control the weblogic instance; required for WL4.5.1
 public  void setUsername(String username) 
    Set the management username to run the server; optional and only applicable to WL6.0.
 public  void setWeblogicMainClass(String c) 
    name of the main class for weblogic; optional.
 public  void setWlclasspath(Path weblogicClasspath) 
    Set the weblogic classpath used by the Weblogic Server; optional, and only applicable to WL4.5.1 The weblogic classpath is used by weblogic to support dynamic class loading.