Create parent directories before write exportedpom.xml file

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2005-07-04 07:31:59 +00:00
parent e57cac7fc9
commit 22c7243746
1 changed files with 5 additions and 1 deletions

View File

@ -278,7 +278,11 @@ public class MavenArchiver
{
String buildDirectory = project.getBuild().getDirectory();
File fullPom = new File( buildDirectory, "exported-pom.xml" );
File buildDirectoryFile = new File( buildDirectory );
buildDirectoryFile.mkdirs();
File fullPom = new File( buildDirectoryFile, "exported-pom.xml" );
FileWriter fWriter = null;