From 5c43f6c93edfa3d34075b59a4ae199eb7257dab9 Mon Sep 17 00:00:00 2001 From: Stephane Bailliez Date: Thu, 14 Feb 2002 23:02:26 +0000 Subject: [PATCH] Quick fix about naming. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271353 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/optional/i18n/Translate.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java b/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java index e02ac6337..be4531799 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java @@ -393,16 +393,16 @@ public class Translate extends MatchingTask { */ private void processBundle(final String bundleFile, final int i, final boolean checkLoaded) throws BuildException { - String l_BundleFile = bundleFile + ".properties"; + final File propsFile = new File(bundleFile + ".properties"); FileInputStream ins = null; try { - ins = new FileInputStream(l_BundleFile); + ins = new FileInputStream(propsFile); loaded = true; - bundleLastModified[i] = new File(l_BundleFile).lastModified(); - log("Using " + l_BundleFile, Project.MSG_DEBUG); + bundleLastModified[i] = propsFile.lastModified(); + log("Using " + propsFile, Project.MSG_DEBUG); loadResourceMap(ins); } catch (IOException ioe) { - log(l_BundleFile + " not found.", Project.MSG_DEBUG); + log(propsFile + " not found.", Project.MSG_DEBUG); //if all resource files associated with this bundle //have been scanned for and still not able to //find a single resrouce file, throw exception