mirror of https://github.com/apache/maven.git
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@307350 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a6726d91e2
commit
b6db4d80fd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue