Lines Matching defs:file
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
14 * version 2 for more details (a copy is included in the LICENSE file that
66 * read from a properties file. If the GUI dialog is invoked, values may
73 * Set the location of the private properties file used to keep the retain
218 Properties readProperties(File file) {
220 if (file != null && file.exists()) {
223 in = new BufferedReader(new FileReader(file));
227 throw new BuildException("error reading property file", e);
233 throw new BuildException("cannot close property file", e);
241 void writeProperties(File file, Properties p) {
242 if (file != null) {
245 File dir = file.getParentFile();
248 out = new BufferedWriter(new FileWriter(file));
252 throw new BuildException("error writing property file", e);
258 throw new BuildException("cannot close property file", e);