o Fixed file creation

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@697476 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-21 11:30:40 +00:00
parent b17193d288
commit 755d7baa81
2 changed files with 5 additions and 3 deletions

View File

@ -41,7 +41,7 @@ public class FileMojo
/**
* The path to the output file, relative to the current working directory.
*
* @parameter expression="${maven.pathname}" default-value="file.txt" alias="outputFile"
* @parameter expression="${maven.pathname}" default-value="target/file.txt" alias="outputFile"
*/
private String pathname;
@ -67,7 +67,8 @@ public class FileMojo
try
{
outputFile.createNewFile();
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
}
catch ( IOException e )
{

View File

@ -77,7 +77,8 @@ public class FilesMojo
try
{
outputFile.createNewFile();
outputFile.getParentFile().mkdirs();
outputFile.createNewFile();
}
catch ( IOException e )
{