| Method from org.apache.tools.ant.taskdefs.optional.ejb.WLRun Detail: |
public Path createClasspath() {
if (classpath == null) {
classpath = new Path(getProject());
}
return classpath.createPath();
}
Add the classpath for the user classes |
public Path createWLClasspath() {
if (weblogicClasspath == null) {
weblogicClasspath = new Path(getProject());
}
return weblogicClasspath.createPath();
}
Get the classpath to the weblogic classpaths |
public void execute() throws BuildException {
if (weblogicSystemHome == null) {
throw new BuildException("weblogic home must be set");
}
if (!weblogicSystemHome.isDirectory()) {
throw new BuildException("weblogic home directory "
+ weblogicSystemHome.getPath() + " is not valid");
}
if (beaHome != null) {
executeWLS6();
} else {
executeWLS();
}
}
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) {
additionalArgs = args;
}
Additional argument string passed to the Weblogic instance;
optional. |
public void setBEAHome(File beaHome) {
this.beaHome = beaHome;
}
The location of the BEA Home; implicitly
selects Weblogic 6.0; optional. |
public void setClasspath(Path classpath) {
this.classpath = 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) {
this.weblogicDomainName = domain;
}
Set the Domain to run in; required for WL6.0 |
public void setHome(File weblogicHome) {
weblogicSystemHome = weblogicHome;
}
The location where weblogic lives.
Required. This is the absolute location, not relative to
BEA home. |
public void setJvmargs(String args) {
this.additionalJvmArgs = args;
}
Set the additional arguments to pass to the weblogic JVM |
public void setName(String serverName) {
this.weblogicSystemName = 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) {
this.pkPassword = 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) {
this.managementPassword = password;
}
Set the management password of the server;
optional and only applicable to WL6.0. |
public void setPolicy(String securityPolicy) {
this.securityPolicy = 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) {
this.weblogicPropertiesFile = 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) {
this.managementUsername = username;
}
Set the management username to run the server;
optional and only applicable to WL6.0. |
public void setWeblogicMainClass(String c) {
weblogicMainClass = c;
}
name of the main class for weblogic; optional. |
public void setWlclasspath(Path weblogicClasspath) {
this.weblogicClasspath = 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. |