lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/xml DocumentHelper.java
Date Sun, 31 Aug 2003 13:04:31 GMT
andreas     2003/08/31 06:04:31

  Modified:    src/java/org/apache/lenya/xml DocumentHelper.java
  Log:
  added mkdirs() to writeDocument()
  
  Revision  Changes    Path
  1.20      +2 -1      cocoon-lenya/src/java/org/apache/lenya/xml/DocumentHelper.java
  
  Index: DocumentHelper.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/xml/DocumentHelper.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DocumentHelper.java	13 Aug 2003 09:46:24 -0000	1.19
  +++ DocumentHelper.java	31 Aug 2003 13:04:31 -0000	1.20
  @@ -213,6 +213,7 @@
        */
       public static void writeDocument(Document document, File file)
           throws TransformerConfigurationException, TransformerException, IOException {
  +        file.getParentFile().mkdirs();
           file.createNewFile();
   
           DOMSource source = new DOMSource(document);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message