stevenn     2003/02/21 00:58:42

  Modified:    tools/src XConfToolTask.java
  Log:
  Trying to make XConfTool Task work when CVS sandbox directory contains spaces (don't 
ask: W2K, My Documents et al.)
  
  Revision  Changes    Path
  1.9       +3 -3      xml-cocoon2/tools/src/XConfToolTask.java
  
  Index: XConfToolTask.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/tools/src/XConfToolTask.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XConfToolTask.java        17 Feb 2003 15:06:59 -0000      1.8
  +++ XConfToolTask.java        21 Feb 2003 08:58:42 -0000      1.9
  @@ -79,7 +79,7 @@
   
               // load xml
               System.out.println("Reading: " + file);
  -            final Document configuration = builder.parse(file);
  +            final Document configuration = builder.parse((new 
File(file)).toURL().toExternalForm());
   
               // process recursive
               if (process(builder, configuration, 
this.project.resolveFile(this.directory), this.extension)) {
  @@ -119,7 +119,7 @@
                       String file = files[i].getCanonicalPath();
                       try {
                           // Adds configuration snippet from the file to the 
configuration
  -                        hasChanged |= add(configuration, builder.parse(file), file);
  +                        hasChanged |= add(configuration, builder.parse((new 
File(file)).toURL().toExternalForm()), file);
                       } catch (SAXException e) {
                           System.out.println("Ignoring: " + file + "\n(not a valid 
XML)");
                       }
  
  
  


Reply via email to