o Fixed IT plugin to create missing parent directories of output file

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@721543 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-11-28 18:03:41 +00:00
parent 0718730270
commit 19d3d90c50
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ public class UsesPropertiesMojo
{ {
try try
{ {
FileOutputStream fos = new FileOutputStream( new File( basedir, "target/project.properties" ) ); File file = new File( basedir, "target/project.properties" );
file.getParentFile().mkdirs();
FileOutputStream fos = new FileOutputStream( file );
properties.store( fos, "# Properties generated by the execution of a mojo that uses interpolated POM values for configuration." ); properties.store( fos, "# Properties generated by the execution of a mojo that uses interpolated POM values for configuration." );
} }