o Adding debug statements for testing on windows.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-03-02 02:41:09 +00:00
parent 11e305e84f
commit 90ab124653
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ public class WriteFileTag
String content = (String) getBody(context, String.class);
String filename = (String) requireTagAttribute(FILE_ATTR, String.class, context);
System.out.println("Attempting to write to file: \'" + filename + "\' contents:");
System.out.println(content);
File file = new File(filename);
File dir = file.getParentFile();
if(dir != null && !dir.exists())