diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java index 91732376b..5ca4fec06 100644 --- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java +++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java @@ -216,8 +216,8 @@ public class XSLTProcess extends MatchingTask { /** * Sets the file to use for styling relative to the base directory. */ - public void setStyle(String xslFile) { - this.xslFile = new File(xslFile); + public void setStyle(File xslFile) { + this.xslFile = xslFile; } /**