org.apache.tools.ant.taskdefs.optional.ejb
Class WLRun
java.lang.Object
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.optional.ejb.WLRun
- public class WLRun
- extends Task
Execute a Weblogic server.
- Author:
- Conor MacNeill, Cortex ebusiness Pty Limited
Constructor Summary |
WLRun()
|
Method Summary |
void |
execute()
Do the work.
|
void |
setClasspath(java.lang.String s)
Set the classpath to be used for this compilation. |
void |
setHome(java.lang.String weblogicHome)
The location where weblogic lives. |
void |
setName(java.lang.String serverName)
Set the name of the server to run |
void |
setPolicy(java.lang.String securityPolicy)
Set the security policy for this invocation of weblogic. |
void |
setProperties(java.lang.String propertiesFilename)
Set the properties file to use.
|
void |
setWlclasspath(java.lang.String weblogicClasspath)
Set the weblogic classpath.
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getTaskName, init, log, log, setDescription, setLocation, setOwningTarget, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WLRun
public WLRun()
execute
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.
- Overrides:
execute
in class Task
- Throws:
BuildException
- if someting goes wrong with the build
setClasspath
public void setClasspath(java.lang.String s)
- Set the classpath to be used for this compilation.
- Parameters:
s
- the classpath to use when executing the weblogic task.
setWlclasspath
public void setWlclasspath(java.lang.String weblogicClasspath)
- Set the weblogic classpath.
The weblogic classpath is used by weblogic to support dynamic class loading.
- Parameters:
weblogicClasspath
- the weblogic classpath
setPolicy
public void setPolicy(java.lang.String securityPolicy)
- Set the security policy for this invocation of weblogic.
- Parameters:
securityPolicy
- the security policy to use.
setHome
public void setHome(java.lang.String weblogicHome)
- The location where weblogic lives.
- Parameters:
weblogicHome
- the home directory of weblogic.
setName
public void setName(java.lang.String serverName)
- Set the name of the server to run
- Parameters:
systemName
- the name of the server.
setProperties
public void setProperties(java.lang.String propertiesFilename)
- Set the properties file to use.
The location of the properties file is relative to the weblogi system home
- Parameters:
propertiesFilename
- the properties file name
Copyright © 2000 Apache Software Foundation. All Rights Reserved.