Browse Source

Pickup missing merge

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274083 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
abc9ae5a1b
1 changed files with 7 additions and 35 deletions
  1. +7
    -35
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java

+ 7
- 35
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java View File

@@ -130,14 +130,8 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {

/** Instance variable that determines whether generic ejb jars are kept. */

private boolean keepgenerated = false;

private String additionalArgs = "";

private boolean keepGeneric = false;

private String compiler = null;

private boolean alwaysRebuild = true;

private boolean ejbdeploy = true;
@@ -184,6 +178,8 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/** the scratchdir for the ejbdeploy operation */
private String tempdir = "_ejbdeploy_temp";

/** the home directory for websphere */
private File websphereHome;

/** Get the classpath to the websphere classpaths */
public Path createWASClasspath() {
@@ -218,7 +214,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/**
* Sets the name of the Database to create; optional.
*
* @param String
* @param dbName name of the database
*/
public void setDbname(String dbName) {
this.dbName = dbName;
@@ -228,7 +224,7 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
/**
* Sets the name of the schema to create; optional.
*
* @param String
* @param dbSchema name of the schema
*/
public void setDbschema(String dbSchema) {
this.dbSchema = dbSchema;
@@ -314,14 +310,6 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}


/**
* The compiler (switch <code>-compiler</code>) to use
*/
public void setCompiler(String compiler) {
this.compiler = compiler;
}


/**
* Set the rebuild flag to false to only update changes in the jar rather
* than rerunning ejbdeploy; optional, default true.
@@ -352,17 +340,6 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}


/**
* Sets whether -keepgenerated is passed to ejbdeploy (that is, the .java
* source files are kept).
*
* @param inValue either 'true' or 'false'
*/
public void setKeepgenerated(String inValue) {
this.keepgenerated = Boolean.valueOf(inValue).booleanValue();
}


/**
* Decide, wether ejbdeploy should be called or not;
* optional, default true.
@@ -374,12 +351,6 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
}


/** sets some additional args to send to ejbdeploy. */
public void setArgs(String args) {
this.additionalArgs = args;
}


/**
* Setter used to store the location of the Sun's Generic EJB DTD. This
* can be a file on the system or a resource on the classpath.
@@ -624,11 +595,12 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {
Environment.Variable var = new Environment.Variable();

var.setKey("websphere.lib.dir");
var.setValue(getTask().getProject().getProperty("websphere.home") + "/lib");
File libdir = new File(websphereHome, "lib");
var.setValue(libdir.getAbsolutePath());
javaTask.addSysproperty(var);

// Set the working directory
javaTask.setDir(new File(getTask().getProject().getProperty("websphere.home")));
javaTask.setDir(websphereHome);

// Set the Java class name
javaTask.setTaskName("ejbdeploy");


Loading…
Cancel
Save