Browse Source

Quick fix about naming.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271353 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
5c43f6c93e
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java

+ 5
- 5
src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java View File

@@ -393,16 +393,16 @@ public class Translate extends MatchingTask {
*/ */
private void processBundle(final String bundleFile, final int i, private void processBundle(final String bundleFile, final int i,
final boolean checkLoaded) throws BuildException { final boolean checkLoaded) throws BuildException {
String l_BundleFile = bundleFile + ".properties";
final File propsFile = new File(bundleFile + ".properties");
FileInputStream ins = null; FileInputStream ins = null;
try { try {
ins = new FileInputStream(l_BundleFile);
ins = new FileInputStream(propsFile);
loaded = true; 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); loadResourceMap(ins);
} catch (IOException ioe) { } 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 //if all resource files associated with this bundle
//have been scanned for and still not able to //have been scanned for and still not able to
//find a single resrouce file, throw exception //find a single resrouce file, throw exception


Loading…
Cancel
Save