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:
Brett Leslie Porter 2005-10-09 03:06:24 +00:00
parent a6726d91e2
commit b6db4d80fd
1 changed files with 8 additions and 0 deletions

View File

@ -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();