From: paspes <pa...@us...> - 2007-12-21 12:08:22
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12206/modules/core/src/com/babeldoc/core/pipeline/stage Modified Files: CallStagePipelineStage.java Log Message: Activate param discard_results i quit test parameter Index: CallStagePipelineStage.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/CallStagePipelineStage.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** CallStagePipelineStage.java 30 Jul 2004 01:33:03 -0000 1.9 --- CallStagePipelineStage.java 21 Dec 2007 12:06:54 -0000 1.10 *************** *** 90,95 **** /** configuration option for the discard results. */ public static final String DISCARD_RESULTS = "discardResults"; - /** configuration option for test. */ - public static final String TEST = "test"; --- 90,93 ---- *************** *** 113,119 **** options.add(new ConfigOption(DISCARD_RESULTS, IConfigOptionType.BOOLEAN, "true", false, I18n.get("core.pipeline.stage.callstage.discard"))); - options.add(new ConfigOption(TEST, IConfigOptionType.BOOLEAN, - "true", false, "If this option is set and it evaluates to true, the call is made otherwise")); - return options; } --- 111,114 ---- *************** *** 132,139 **** String callStage = getOptions(CALL_STAGE); ! // If the test is null or evaluates to true, then go, else ignore. ! String test = this.getOptions(TEST); ! if(Boolean.valueOf(test).booleanValue()) { ! if(this.hasOption(DISCARD_RESULTS)&&this.getOptions(DISCARD_RESULTS).equals(BooleanConfigOptionType.TRUE)) { PipelineDocument pdoc = (PipelineDocument)this.getDocument().clone(); PipelineFactoryFactory.process(callStage, this.getDocument(), --- 127,131 ---- String callStage = getOptions(CALL_STAGE); ! if(!this.hasOption(DISCARD_RESULTS) || this.getOptions(DISCARD_RESULTS).equals(BooleanConfigOptionType.TRUE)) { PipelineDocument pdoc = (PipelineDocument)this.getDocument().clone(); PipelineFactoryFactory.process(callStage, this.getDocument(), *************** *** 156,162 **** return docs; } - } else { - return this.processHelper(); - } } } --- 148,151 ---- |