|
From: <mic...@us...> - 2003-11-25 17:44:40
|
Update of /cvsroot/babeldoc/babeldoc/modules/jfreereports/src/com/babeldoc/jfreereports/pipeline/stage
In directory sc8-pr-cvs1:/tmp/cvs-serv14655/modules/jfreereports/src/com/babeldoc/jfreereports/pipeline/stage
Modified Files:
Tag: TEMP_MIKEA
JFRPipelineStage.java
Log Message:
Added some logging
Index: JFRPipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/jfreereports/src/com/babeldoc/jfreereports/pipeline/stage/Attic/JFRPipelineStage.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** JFRPipelineStage.java 24 Nov 2003 09:01:19 -0000 1.1.2.3
--- JFRPipelineStage.java 25 Nov 2003 17:44:37 -0000 1.1.2.4
***************
*** 229,234 ****
--- 229,236 ----
// If unsuccessful, then try for a report definition URL from the document attributes
if (xmlReportDefinition == null) {
+ log.logDebug("No report definition document attribute, trying for URL document attribute");
strReportDefinitionUrl = (String) getDocument().get(REPORT_DEF_URL);
if (strReportDefinitionUrl != null) {
+ log.logDebug("Report definition URL found in document attribute");
URL urlReportDefinitionUrl;
try {
***************
*** 240,251 ****
--- 242,259 ----
throw new PipelineException(I18n.get("jfr.103"), e);
}
+ } else {
+ log.logDebug("Report definition URL not found in document attribute");
}
+ } else {
+ log.logDebug("Report definition found in document attribute");
}
// If still unsuccessful, then try the stage definition for a report definition
if (xmlReportDefinition == null) {
+ log.logDebug("Trying for report definition in stage option");
xmlReportDefinition = (String) this.getInfo().getOption(REPORT_DEF).getValue();
}
// Otherwise a report definition URL from the stage definition
if (xmlReportDefinition == null) {
+ log.logDebug("Try for report definition URL in stage options");
strReportDefinitionUrl = (String) this.getInfo().getOption(REPORT_DEF_URL).getValue();
if (strReportDefinitionUrl != null) {
***************
*** 254,257 ****
--- 262,266 ----
urlReportDefinitionUrl = new URL(strReportDefinitionUrl);
xmlReportDefinition = (String) urlReportDefinitionUrl.getContent();
+ log.logDebug("Report definition URL found in stage options");
} catch (java.net.MalformedURLException e) {
throw new PipelineException(I18n.get("jfr.102"), e);
***************
*** 260,263 ****
--- 269,274 ----
}
}
+ } else {
+ log.logDebug("Report definition found in stage options");
}
return (xmlReportDefinition);
|