You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2001/10/12 21:04:55 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime DefaultRun.java

tmiller     01/10/12 12:04:55

  Modified:    java/src/org/apache/xalan/xsltc/runtime DefaultRun.java
  Log:
  ncluded a more portable way to create an URI from a File
  
  Revision  Changes    Path
  1.13      +4 -3      xml-xalan/java/src/org/apache/xalan/xsltc/runtime/DefaultRun.java
  
  Index: DefaultRun.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/DefaultRun.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DefaultRun.java	2001/08/14 09:16:45	1.12
  +++ DefaultRun.java	2001/10/12 19:04:55	1.13
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: DefaultRun.java,v 1.12 2001/08/14 09:16:45 morten Exp $
  + * @(#)$Id: DefaultRun.java,v 1.13 2001/10/12 19:04:55 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -149,8 +149,9 @@
   	    dom.setDocumentURI(_fileName);
   	    if (_uri)
   		reader.parse(_fileName);
  -	    else
  -		reader.parse("file:"+(new File(_fileName).getAbsolutePath()));
  +	    else {
  +	        reader.parse(new File(_fileName).toURL().toExternalForm());
  +	    }
   	    
   	    // Set size of key/id indices
   	    _translet.setIndexSize(dom.getSize());
  
  
  

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