Browse Source

Fix javadoc, remove a call to deprecated FileUtils.newUtils()

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@395705 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 19 years ago
parent
commit
1428252373
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java

+ 4
- 3
src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java View File

@@ -175,7 +175,9 @@ public class TraXLiaison implements XSLTLiaison2, ErrorListener, XSLTLoggerAware
* @param is the stream containing the stylesheet data.
* @param infile the file that will be used for the systemid.
* @return the configured source instance matching the stylesheet.
* @throws Exception if there is a problem creating the source.
* @throws ParserConfigurationException if a parser cannot be created which
* satisfies the requested configuration.
* @throws SAXException in case of problem detected by the SAX parser.
*/
private Source getSource(InputStream is, File infile)
throws ParserConfigurationException, SAXException {
@@ -230,7 +232,6 @@ public class TraXLiaison implements XSLTLiaison2, ErrorListener, XSLTLoggerAware

/**
* Create a new transformer based on the liaison settings
* @return the newly created and configured transformer.
* @throws Exception thrown if there is an error during creation.
* @see #setStylesheet(java.io.File)
* @see #addParam(java.lang.String, java.lang.String)
@@ -403,7 +404,7 @@ public class TraXLiaison implements XSLTLiaison2, ErrorListener, XSLTLoggerAware
if (systemid != null) {
String url = systemid;
if (url.startsWith("file:")) {
url = FileUtils.newFileUtils().fromURI(url);
url = FileUtils.getFileUtils().fromURI(url);
}
msg.append(url);
} else {


Loading…
Cancel
Save