Bug 125084 -o option does not work when generating PDF with ReportRunner
My command line looks like this: %JAVACMD% -cp "%BIRTCLASSPATH%" -DBIRT_HOME="%BIRT_HOME%\Report Engine" org.eclipse.birt.report.engine.api.ReportRunner -f PDF -o output pdfTest.rptdesign It would seem there is no way to specify the name of the output pdf file, I need different outputs for different parameters. I get the stacktrace below: WARNING: output\pdfTest.PDF (The system cannot find the path specified) java.io.FileNotFoundException: output\pdfTest.PDF (The system cannot find the pa th specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.eclipse.birt.report.engine.emitter.pdf.PDFEmitter.initialize(PDFE mitter.java:172) at org.eclipse.birt.report.engine.layout.impl.ReportLayoutEngine.initial ize(ReportLayoutEngine.java:415) at org.eclipse.birt.report.engine.presentation.WrappedEmitter.initialize (WrappedEmitter.java:44) at org.eclipse.birt.report.engine.presentation.LocalizedEmitter.initiali ze(LocalizedEmitter.java:129) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.createConten tEmitter(RunAndRenderTask.java:145) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRe nderTask.java:174) at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(Re portRunner.java:232) at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner. java:158) at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav a:129)
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ReportRunner.java
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.eclipse.birt.core.archive.FileArchiveWriter;
import org.eclipse.birt.core.archive.IDocArchiveWriter;
import org.eclipse.birt.core.data.DataTypeUtil;
import org.eclipse.birt.core.exception.BirtException;
import org.eclipse.birt.core.framework.IPlatformContext;
import org.eclipse.birt.core.framework.PlatformFileContext;
/**
 * Defines a standalone reporting application that uses
 * <code>StandaloneReportEngine</code> class. This application allows running
 * a report to output in one or multiple formats.
 * <p>
 * Report parameters are handled as command line parameters. Currently, only
 * scalar parameters are handled.
 * 
 * @version $Revision: 1.15 $ $Date: 2005/12/12 09:19:54 $
 */
public class ReportRunner
{
	
	static protected Logger logger = Logger.getLogger( ReportRunner.class
			.getName( ) );
	/**
	 * the input paramters
	 */
	protected String[] args; 
	/**
	 * the source input ,can be designName or reportArchive name