mirror of https://github.com/apache/maven.git
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:
parent
b17193d288
commit
755d7baa81
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -77,7 +77,8 @@ public class FilesMojo
|
|||
|
||||
try
|
||||
{
|
||||
outputFile.createNewFile();
|
||||
outputFile.getParentFile().mkdirs();
|
||||
outputFile.createNewFile();
|
||||
}
|
||||
catch ( IOException e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue