psp.genSubstitutedFile(new BufferedReader(new InputStreamReader(new FileInputStream(fileName))),
writer,
paramList.size() > 0 ? paramList.toArray(new String[0]) : null,
paramsFiles!=null ? paramsFiles.toArray(new String[0]) : null);
GruntParser grunt = new GruntParser(new StringReader(writer.toString()));
grunt.setInteractive(false);
grunt.setParams(this);
grunt.parseStopOnError(true);
} catch (FileNotFoundException e) {
log.error(e.getLocalizedMessage());
throw new IOException(e.getCause());
} catch (org.apache.pig.tools.pigscript.parser.ParseException e) {
log.error(e.getLocalizedMessage());