You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by am...@apache.org on 2003/09/18 00:08:28 UTC
cvs commit: xml-security/src_unitTests/org/apache/xml/security/test/c14n/implementations Canonicalizer20010315Test.java
amattheu 2003/09/17 15:08:28
Modified: src_unitTests/org/apache/xml/security/test/c14n/implementations
Canonicalizer20010315Test.java
Log:
Make sure the appropriate directory and file gets created to write failed tests results to.
Revision Changes Path
1.16 +5 -0 xml-security/src_unitTests/org/apache/xml/security/test/c14n/implementations/Canonicalizer20010315Test.java
Index: Canonicalizer20010315Test.java
===================================================================
RCS file: /home/cvs/xml-security/src_unitTests/org/apache/xml/security/test/c14n/implementations/Canonicalizer20010315Test.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Canonicalizer20010315Test.java 29 Apr 2003 21:36:58 -0000 1.15
+++ Canonicalizer20010315Test.java 17 Sep 2003 22:08:28 -0000 1.16
@@ -1214,6 +1214,11 @@
if (result == false) {
File f = new File(fileOut);
+ if (!f.exists()) {
+ File parent = new File(f.getParent());
+ parent.mkdirs();
+ f.createNewFile();
+ }
FileOutputStream fos = new FileOutputStream(f);
fos.write(c14nBytes);