jvanzyl     2002/07/09 13:42:06

  Modified:    src/java/org/apache/maven ProjectVerifier.java
  Log:
  o When downloading new project artifacts create the necessary directory
    structure if it is missing.
  
  Revision  Changes    Path
  1.12      +9 -1      
jakarta-turbine-maven/src/java/org/apache/maven/ProjectVerifier.java
  
  Index: ProjectVerifier.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/ProjectVerifier.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ProjectVerifier.java      9 Jul 2002 17:14:02 -0000       1.11
  +++ ProjectVerifier.java      9 Jul 2002 20:42:06 -0000       1.12
  @@ -232,6 +232,14 @@
               
               if (jarFile.exists() == false)
               {
  +                // The directory structure for this project may
  +                // not exists so create it if missing.
  +                File directory = jarFile.getParentFile();
  +                if (directory.exists() == false)
  +                {
  +                    directory.mkdirs();
  +                }
  +            
                   // We are missing a dependency. Either the user didn't
                   // run update-jars or something else has gone wrong. So
                   // We'll add the jar to our list of failed dependencies
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to