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
protected Object stringToObject( int type, String value )
			throws BirtException
	{
		if ( value == null )
		{
			return null;
		}
		switch ( type )
		{
			case IScalarParameterDefn.TYPE_BOOLEAN :
				return DataTypeUtil.toBoolean( value );
			case IScalarParameterDefn.TYPE_DATE_TIME :
				return DataTypeUtil.toDate( value );
			case IScalarParameterDefn.TYPE_DECIMAL :
				return DataTypeUtil.toBigDecimal( value );
			case IScalarParameterDefn.TYPE_FLOAT :
				return DataTypeUtil.toDouble( value );
			case IScalarParameterDefn.TYPE_STRING :
				return DataTypeUtil.toString( value );
		}
		return null;
	}
	/**
	 * If -o (targetFile) is not specified, assume same directory as inputfile,
	 * and inputfile.*** as output file name (where *** is the output format.
	 * 
	 * If -o specifies a directory, assume the file name is the same as
	 * inputfile.***.
	 * 
	 * If -o specifies a file, it has a path part and a filename part. Take the