You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2004/06/30 13:59:51 UTC

cvs commit: maven/src/java/org/apache/maven/plugin PluginCacheManager.java

evenisse    2004/06/30 04:59:50

  Modified:    src/java/org/apache/maven/jelly Tag: MAVEN-1_0-BRANCH
                        MavenJellyContext.java
               src/java/org/apache/maven/plugin Tag: MAVEN-1_0-BRANCH
                        PluginCacheManager.java
  Log:
  [MAVEN-1351] Creates necessary directories when they dont exists
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.35.4.10 +7 -1      maven/src/java/org/apache/maven/jelly/MavenJellyContext.java
  
  Index: MavenJellyContext.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/jelly/MavenJellyContext.java,v
  retrieving revision 1.35.4.9
  retrieving revision 1.35.4.10
  diff -u -r1.35.4.9 -r1.35.4.10
  --- MavenJellyContext.java	28 Jun 2004 09:39:09 -0000	1.35.4.9
  +++ MavenJellyContext.java	30 Jun 2004 11:59:50 -0000	1.35.4.10
  @@ -698,6 +698,12 @@
       {
           String value = ( String ) getVariable( var );
           File f = new File( value );
  +
  +        if ( !f.getParentFile().exists() )
  +        {
  +            f.getParentFile().mkdirs();
  +        }
  +
           if ( !f.isAbsolute() )
           {
               f = new File( basedir, f.getPath() );
  
  
  
  No                   revision
  No                   revision
  1.16.4.18 +4 -0      maven/src/java/org/apache/maven/plugin/PluginCacheManager.java
  
  Index: PluginCacheManager.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/plugin/PluginCacheManager.java,v
  retrieving revision 1.16.4.17
  retrieving revision 1.16.4.18
  diff -u -r1.16.4.17 -r1.16.4.18
  --- PluginCacheManager.java	26 Jun 2004 14:52:05 -0000	1.16.4.17
  +++ PluginCacheManager.java	30 Jun 2004 11:59:50 -0000	1.16.4.18
  @@ -178,6 +178,10 @@
           checkLockFile( lockFile );
   
           log.debug( "Locking " + lockFile );
  +        if ( !lockFile.getParentFile().exists() )
  +        {
  +            lockFile.getParentFile().mkdirs();
  +        }
           lockFile.createNewFile();
   
           try
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org