/** * Returns the base directory of this reader, if any. */ public File getBaseDir() { return includeWordReader != null ? includeWordReader.getBaseDir() : baseDir; }
/** * Returns the base directory of this reader, if any. */ public File getBaseDir() { return includeWordReader != null ? includeWordReader.getBaseDir() : baseDir; }
/** * Returns the base directory of this reader, if any. */ public File getBaseDir() { return includeWordReader != null ? includeWordReader.getBaseDir() : baseDir; }
/** * Returns the base directory of this reader, if any. */ public File getBaseDir() { return includeWordReader != null ? includeWordReader.getBaseDir() : baseDir; }
/** * Creates a properly resolved File, based on the given word. */ private File file(String word) throws ParseException { String fileName = replaceSystemProperties(word); File file = new File(fileName); // Try to get an absolute file. if (!file.isAbsolute()) { file = new File(reader.getBaseDir(), fileName); } return file; }
/** * Creates a properly resolved File, based on the given word. */ private File file(String word) throws ParseException { String fileName = replaceSystemProperties(word); File file = new File(fileName); // Try to get an absolute file. if (!file.isAbsolute()) { file = new File(reader.getBaseDir(), fileName); } return file; }
/** * Creates a properly resolved File, based on the given word. */ private File file(String word) throws ParseException { String fileName = replaceSystemProperties(word); File file = new File(fileName); // Try to get an absolute file. if (!file.isAbsolute()) { file = new File(reader.getBaseDir(), fileName); } return file; }
/** * Creates a properly resolved File, based on the given word. */ private File file(String word) throws ParseException { String fileName = replaceSystemProperties(word); File file = new File(fileName); // Try to get an absolute file. if (!file.isAbsolute()) { file = new File(reader.getBaseDir(), fileName); } // Try to get a canonical representation. try { file = file.getCanonicalFile(); } catch (IOException ex) { // Just keep the original representation. } return file; }
file = new File(reader.getBaseDir(), fileName);
file = new File(reader.getBaseDir(), fileName);
file = new File(reader.getBaseDir(), fileName);