ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n Translate.java
Date Thu, 14 Feb 2002 23:02:26 GMT
sbailliez    02/02/14 15:02:26

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/i18n
                        Translate.java
  Log:
  Quick fix about naming.
  
  Revision  Changes    Path
  1.9       +5 -5      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java
  
  Index: Translate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Translate.java	14 Feb 2002 20:50:36 -0000	1.8
  +++ Translate.java	14 Feb 2002 23:02:26 -0000	1.9
  @@ -393,16 +393,16 @@
        */
       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
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message