ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Zimmer <bzim...@ignitemedia.com>
Subject [PATCH] adds "file:" to files sent to XSLTInputSource for XalanLi aison
Date Wed, 02 Aug 2000 14:46:55 GMT
An InputSource is expecting a URL if it is not sent an InputStream or
Reader.  This patch fixes this for XalanLiaison.

thanks,

brian

Index: XalanLiaison.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/
XalanLiaison.java,v
retrieving revision 1.2
diff -r1.2 XalanLiaison.java
70a71,72
>     protected final static String FILEURL = "file:";
>
79,80c81,82
<       xslSheet = new XSLTInputSource (fileName);
<     };
---
>       xslSheet = new XSLTInputSource (normalize(fileName));
>     }
83c85
<       processor.process(new XSLTInputSource(infile), xslSheet,
---
>       processor.process(new XSLTInputSource(normalize(infile)), xslSheet,
84a87,93
>     }
>
>               protected String normalize(String fileName) {
>                       if(fileName != null &&
!fileName.startsWith(FILEURL)) {
>                               return FILEURL + fileName;
>       }
>       return fileName;


<signature>
<name>brian zimmer</name>
<email>bzimmer <at/> ignitemedia <dot/> com</email>
<voice>773.293.4344</voice>
</signature>


Mime
View raw message