ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb WebsphereDeploymentTool.java
Date Tue, 27 Aug 2002 21:44:27 GMT
sbailliez    2002/08/27 14:44:26

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ejb Tag:
                        ANT_15_BRANCH WebsphereDeploymentTool.java
  Log:
  Incidentally committed the file I changed last week on the 1.5 branch while
  I was working on file in the main branch...ok, this one really removes the useless
  setters.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.4  +13 -44    jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
  
  Index: WebsphereDeploymentTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java,v
  retrieving revision 1.11.2.3
  retrieving revision 1.11.2.4
  diff -u -r1.11.2.3 -r1.11.2.4
  --- WebsphereDeploymentTool.java	27 Aug 2002 21:20:15 -0000	1.11.2.3
  +++ WebsphereDeploymentTool.java	27 Aug 2002 21:44:26 -0000	1.11.2.4
  @@ -130,14 +130,8 @@
   
       /** 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,8 +178,8 @@
       /** the scratchdir for the ejbdeploy operation */
       private String tempdir = "_ejbdeploy_temp";
   
  -    /** the websphere home set in the property file */
  -    private File websphereHome = null;
  +    /** the home directory for websphere */
  +    private File websphereHome;
   
       /** Get the classpath to the websphere classpaths */
       public Path createWASClasspath() {
  @@ -220,7 +214,7 @@
       /**
        * 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;
  @@ -230,7 +224,7 @@
       /**
        * 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;
  @@ -238,7 +232,7 @@
   
   
       /**
  -     * Flag, default false, to only generate the deployment 
  +     * Flag, default false, to only generate the deployment
        * code, do not run RMIC or Javac
        *
        * @param codegen option
  @@ -249,7 +243,7 @@
   
   
       /**
  -     * Flag, default true, to only output error messages. 
  +     * Flag, default true, to only output error messages.
        *
        * @param quiet option
        */
  @@ -281,7 +275,7 @@
       /**
        * Flag to disable informational messages; optional, default false.
        *
  -     * @param noinfom 
  +     * @param noinfom
        */
       public void setNoinform(boolean noinfom) {
           this.noinform = noinform;
  @@ -302,8 +296,8 @@
        *
        * @param options
        */
  -    public void setRmicoptions(String options) { 
  -        this.rmicOptions = options; 
  +    public void setRmicoptions(String options) {
  +        this.rmicOptions = options;
       }
   
       /**
  @@ -317,14 +311,6 @@
   
   
       /**
  -     * 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.
        */
  @@ -355,17 +341,6 @@
   
   
       /**
  -     * 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.
        *
  @@ -376,12 +351,6 @@
       }
   
   
  -    /** 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.
  @@ -625,9 +594,9 @@
                   // Set the Environment variable
                   Environment.Variable var = new Environment.Variable();
   
  -                File libDir = new File(websphereHome, "lib");
                   var.setKey("websphere.lib.dir");
  -                var.setValue(libDir.getAbsolutePath());
  +                File libdir = new File(websphereHome, "lib");
  +                var.setValue(libdir.getAbsolutePath());
                   javaTask.addSysproperty(var);
   
                   // Set the working directory
  @@ -704,9 +673,9 @@
           super.validateConfigured();
           String home = getTask().getProject().getProperty("websphere.home");
           if (home == null) {
  -            throw new BuildException("Please set the property websphere.home in your project");
  +            throw new BuildException("Please set the property 'websphere.home' in your
buildfile");
           }
  -        websphereHome = getTask().getProject().resolveFile(home);        
  +        websphereHome = getTask().getProject().resolveFile(home);
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message