traverse(t0, macroNodes, inlineNodes);
}
}
private FetchFileRet getMacroFile(String fname) {
FetchFileRet localFileRet = null;
try {
if (fnameMap.get(fname) != null) {
localFileRet = fnameMap.get(fname);
} else {
try {
File localFile = QueryParserUtils.getFileFromImportSearchPath(fname);
localFileRet = localFile == null ?
FileLocalizer.fetchFile(pigContext.getProperties(), fname)
: new FetchFileRet(localFile.getCanonicalFile(), false);
} catch (FileNotFoundException e) {
// ignore this since we'll attempt to load as a resource before failing
LOG.debug(String.format("Macro file %s was not found", fname));
}