You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:26:32 UTC

[maven-ant-plugin] 14/50: PR: MNG-749 Submitted by: Edwin Punzalan Reviewed by: Brett Porter make directories in ant plugin for repository files

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-ant-plugin-2.0
in repository https://gitbox.apache.org/repos/asf/maven-ant-plugin.git

commit 75e9ec93343535b02fe9635eb34cf0f11f4d261f
Author: Brett Leslie Porter <br...@apache.org>
AuthorDate: Sun Oct 9 03:06:24 2005 +0000

    PR: MNG-749
    Submitted by: Edwin Punzalan
    Reviewed by:  Brett Porter
    make directories in ant plugin for repository files
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-ant-plugin@307350 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
index 118b669..10f7e51 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
@@ -409,6 +409,14 @@ public class AntBuildWriter
             // TODO: should the artifacthandler be used instead?
             String path = toRelative( localRepository, artifact.getFile().getPath() );
 
+            File parentDirs = new File( path ).getParentFile();
+            if ( parentDirs != null ) 
+            {
+                writer.startElement( "mkdir" );
+                writer.addAttribute( "dir", parentDirs.getAbsolutePath() );
+                writer.endElement(); // mkdir
+            }
+            
             for ( Iterator j = project.getRepositories().iterator(); j.hasNext(); )
             {
                 Repository repository = (Repository) j.next();

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.