ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Re: cvs commit: jakarta-ant/docs/manual running.html
Date Fri, 01 Feb 2002 22:41:37 GMT
From: <ehatcher@apache.org>

>   +        // Load the property files specified by -propertyfile
>   +        for (int propertyFileIndex=0;
>   +             propertyFileIndex < propertyFiles.size();
>   +             propertyFileIndex++) {
>   +            String filename = (String)
propertyFiles.elementAt(propertyFileIndex);
>   +            Properties props = new Properties();
>   +            try {
>   +                FileInputStream fis = new FileInputStream(filename);
>   +                props.load(fis);
>   +            }
>   +            catch (IOException e) {
>   +                System.out.println("Could not load property file "
>   +                   + filename + ": " + e.getMessage());
>   +            }
>   +

Erik,
I notice that the FileInputStreams that are created are
not being closed...


Cheers,
Magesh




--
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