Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 63804 invoked by uid 500); 27 Jun 2001 13:04:23 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 63619 invoked by uid 500); 27 Jun 2001 13:04:20 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Date: 27 Jun 2001 13:04:19 -0000 Message-ID: <20010627130419.63550.qmail@apache.org> From: conor@apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb BorlandDeploymentTool.java conor 01/06/27 06:04:19 Modified: src/main/org/apache/tools/ant/taskdefs/optional/ejb BorlandDeploymentTool.java Log: Cleanup of Borland ejbjar element Submitted by: MOUSSAUD Benoit Revision Changes Path 1.6 +8 -38 jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java Index: BorlandDeploymentTool.java =================================================================== RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- BorlandDeploymentTool.java 2001/06/25 15:17:26 1.5 +++ BorlandDeploymentTool.java 2001/06/27 13:04:17 1.6 @@ -73,18 +73,17 @@ import org.xml.sax.*; /** - * BorlandDeploymentTool is dedicated to the Borland Application Server 4.5 + * BorlandDeploymentTool is dedicated to the Borland Application Server 4.5 and 4.5.1 * This task generates and compiles the stubs and skeletons for all ejb described into the * Deployement Descriptor, builds the jar file including the support files and verify * whether the produced jar is valid or not. * The supported options are: *
    - *
  • debug (boolean) : turn on the debug mode for generation of stubs and skeletons (default:false)
  • - *
  • verify (boolean) : turn on the verification at the end of the jar production (default:true)
  • + *
  • debug (boolean) : turn on the debug mode for generation of stubs and skeletons (default:false)
  • + *
  • verify (boolean) : turn on the verification at the end of the jar production (default:true)
  • *
  • verifyargs (String) : add optional argument to verify command (see vbj com.inprise.ejb.util.Verify)
  • - *
  • ejbdtd (String) : location of the SUN DTD
  • - *
  • basdtd (String) : location of the BAS DTD
  • - *
  • generatelclient (boolean) : turn on the client jar file generation
  • + *
  • basdtd (String) : location of the BAS DTD
  • + *
  • generateclient (boolean) : turn on the client jar file generation
  • *
* *
  @@ -105,11 +104,6 @@
    */
   public class BorlandDeploymentTool extends GenericDeploymentTool 
   {
  -    public static final String PUBLICID_EJB11
  -    = "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN";
  -    public static final String PUBLICID_EJB20
  -    = "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN";
  -
       public static final String PUBLICID_BORLAND_EJB
       = "-//Inprise Corporation//DTD Enterprise JavaBeans 1.1//EN";
   
  @@ -132,9 +126,6 @@
   
       /** Instance variable that stores the location of the borland DTD file. */
       private String borlandDTD;
  -
  -    /** Instance variable that stores the location of the ejb 1.1 DTD file. */
  -    private String ejb11DTD;
           
   
       /** Instance variable that determines whether the debug mode is on */
  @@ -147,14 +138,14 @@
       private String  verifyArgs = "";
   
       /** 
  -     * set the debug mode for java2iiop
  +     * set the debug mode for java2iiop (default false)
        **/
       public void setDebug(boolean debug) {
           this.java2iiopdebug = debug;
       }
   
       /** 
  -     * set the verify  mode for the produced jar
  +     * set the verify  mode for the produced jar (default true)
        **/
       public void setVerify(boolean verify) {
           this.verify = verify;
  @@ -177,8 +168,7 @@
       public void setVerifyArgs(String args) {
           this.verifyArgs = args;
       }
  -    
  -    
  +        
       /**
        * Setter used to store the location of the borland DTD. This can be a file on the system 
        * or a resource on the classpath. 
  @@ -188,14 +178,6 @@
           this.borlandDTD = inString;
       }
   
  -    /**
  -     * 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. 
  -     * @param inString the string to use as the DTD location.
  -     */
  -    public void setEJBdtd(String inString) {
  -        this.ejb11DTD = inString;
  -    }
           
       /**
        * setter used to store whether the task will include the generate client task.
  @@ -206,10 +188,6 @@
       }
   
   
  -    protected void registerKnownDTDs(DescriptorHandler handler) {
  -        handler.registerDTD(PUBLICID_EJB11, DEFAULT_BAS45_EJB11_DTD_LOCATION);
  -    }
  -
       protected DescriptorHandler getBorlandDescriptorHandler(final File srcDir) {
           DescriptorHandler handler =
              new DescriptorHandler(getTask(), srcDir) {
  @@ -336,7 +314,6 @@
        */
       private void buildBorlandStubs(Iterator ithomes,Hashtable files ) {
           org.apache.tools.ant.taskdefs.ExecTask execTask = null;
  -        //File java2iiopOut = new File("java2iiop.log");
           File java2iiopOut = null;
           try {
               java2iiopOut = File.createTempFile("java2iiop","log");
  @@ -455,11 +432,4 @@
           return classfile;
       }
   
  -    /**
  -     * Called to validate that the tool parameters have been configured.
  -     *
  -     */
  -    public void validateConfigured() throws BuildException {
  -        super.validateConfigured();
  -    }
   }