} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
@SuppressWarnings("rawtypes") public void setFileNamePattern(String fnp) { super.setFileNamePattern(fnp); List converters = new ArrayList(); StringBuffer file = new StringBuffer(); ExtrasPatternParser .parse(fnp, converters, new ArrayList(), null, ExtrasPatternParser.getFileNamePatternRules()); if (!converters.isEmpty()) { ((LiteralPatternConverter) converters.get(0)).format(null, file); File f = new File(file.toString()); oozieLogDir = f.getParent(); logFileName = f.getName(); } else { XLogService xls = Services.get().get(XLogService.class); oozieLogDir = xls.getOozieLogPath(); logFileName = xls.getOozieLogName(); } } @Override
@SuppressWarnings("rawtypes") public void setFileNamePattern(String fnp) { super.setFileNamePattern(fnp); List converters = new ArrayList(); StringBuffer file = new StringBuffer(); ExtrasPatternParser .parse(fnp, converters, new ArrayList(), null, ExtrasPatternParser.getFileNamePatternRules()); if (!converters.isEmpty()) { ((LiteralPatternConverter) converters.get(0)).format(null, file); File f = new File(file.toString()); oozieLogDir = f.getParent(); logFileName = f.getName(); } else { XLogService xls = Services.get().get(XLogService.class); oozieLogDir = xls.getOozieLogPath(); logFileName = xls.getOozieLogName(); } } @Override
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(ExtrasFormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(ExtrasFormattingInfo.getDefault());
} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
} else { patternConverters[i] = new org.apache.log4j.pattern.LiteralPatternConverter("");
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(ExtrasFormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(ExtrasFormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); } else { new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());
new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault()); new LiteralPatternConverter(currentLiteral.toString())); formattingInfos.add(FormattingInfo.getDefault());