From: markt Date: Sun, 3 Jan 2010 15:42:57 +0000 (+0000) Subject: Don't use deprecated methods. Use recommended alternative. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=64e1adfce5acc678cf07574d2dc60930810038ea;p=tomcat7.0 Don't use deprecated methods. Use recommended alternative. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@895422 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/JspC.java b/java/org/apache/jasper/JspC.java index fae2266cd..d9537eeab 100644 --- a/java/org/apache/jasper/JspC.java +++ b/java/org/apache/jasper/JspC.java @@ -1412,9 +1412,9 @@ public class JspC implements Options { protected File resolveFile(final String s) { if(getProject() == null) { // Note FileUtils.getFileUtils replaces FileUtils.newFileUtils in Ant 1.6.3 - return FileUtils.newFileUtils().resolveFile(null, s); + return FileUtils.getFileUtils().resolveFile(null, s); } else { - return FileUtils.newFileUtils().resolveFile(getProject().getBaseDir(), s); + return FileUtils.getFileUtils().resolveFile(getProject().getBaseDir(), s); } } }