avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/ant MetaGenerateTask.java
Date Sat, 16 Nov 2002 08:01:04 GMT
donaldp     2002/11/16 00:01:04

  Modified:    info/src/java/org/apache/avalon/framework/tools/ant
                        MetaGenerateTask.java
  Log:
  Destination directory exceptions are now more descriptive
  
  Revision  Changes    Path
  1.8       +8 -5      jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/ant/MetaGenerateTask.java
  
  Index: MetaGenerateTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/ant/MetaGenerateTask.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MetaGenerateTask.java	16 Nov 2002 07:41:30 -0000	1.7
  +++ MetaGenerateTask.java	16 Nov 2002 08:01:04 -0000	1.8
  @@ -125,18 +125,21 @@
       {
           if( null == m_destDir )
           {
  -            final String message = "DestDir not specified";
  +            final String message =
  +                "DestDir (" + m_destDir + ") not specified";
               throw new BuildException( message );
           }
           if( !m_destDir.isDirectory() )
           {
  -            final String message = "DestDir is not a directory.";
  +            final String message =
  +                "DestDir (" + m_destDir + ") is not a directory.";
               throw new BuildException( message );
           }
   
  -        if( !m_destDir.mkdirs() )
  +        if( !m_destDir.exists() && !m_destDir.mkdirs() )
           {
  -            final String message = "DestDir could not be created.";
  +            final String message =
  +                "DestDir (" + m_destDir + ") could not be created.";
               throw new BuildException( message );
           }
       }
  
  
  

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


Mime
View raw message