User: user57  
  Date: 01/08/16 14:49:11

  Modified:    src/main/org/jboss/resource RARDeployer.java
  Log:
   o use mkdirs() instead of mkdir() when creating the temp directory to avoid
     exceptions when the base directory does not exist.
  
  Revision  Changes    Path
  1.5       +6 -4      jbosscx/src/main/org/jboss/resource/RARDeployer.java
  
  Index: RARDeployer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RARDeployer.java  2001/07/25 09:47:46     1.4
  +++ RARDeployer.java  2001/08/16 21:49:10     1.5
  @@ -46,7 +46,7 @@
    * service.
    *
    * @author Toby Allsopp ([EMAIL PROTECTED])
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    *
    * @see org.jboss.resource.ConnectionFactoryLoader
    *
  @@ -67,8 +67,10 @@
      /** The directory that will contain local copies of deployed RARs */
      private File rarTmpDir;
   
  -   /** The next sequence number to be used in notifications about
  -       (un)deployment */
  +   /**
  +    * The next sequence number to be used in notifications about
  +    * (un)deployment 
  +    */
      private int nextMessageNum = 0;
       
      // Static --------------------------------------------------------
  @@ -131,7 +133,7 @@
                           "the previous run. This might cause problems.");
            }
         }
  -      if (!rarTmpDir.exists() && !rarTmpDir.mkdir())
  +      if (!rarTmpDir.exists() && !rarTmpDir.mkdirs())
         {
            throw new DeploymentException("Can't create temp directory '" +
                                          rarTmpDir + "'");
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to