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
}
			task.close( );
			return 0;
		}
		catch ( org.eclipse.birt.report.engine.api.EngineException e )
		{
			logger.log( Level.SEVERE, e.getMessage( ), e );
			return -1;
		}
	}
	/**
	 * print out the command line usage.
	 * 
	 */
	protected void printUsage( )
	{
		System.out.println( "org.eclipse.birt.report.engine.impl.ReportRunner" ); 
		System.out.println( "" ); 
		System.out
				.println( "--mode/-m [ run | render | runrender] the default is runrender" );
		System.out.println( " for runrender mode:" );
		System.out.println( "\t we should add it in the end<design file>" ); 
		System.out.println( "\t --format/-f [ HTML | FO | PDF ]" ); 
		System.out.println( "\t --output/-o <target file>" ); 
		System.out.println( "\t --htmltype/-t < HTML | ReportletNoCSS >" ); 
		System.out.println( "\t --locale /-l<locale>" ); 
		System.out.println( "\t --parameter/-p <parameterName=parameterValue>" ); 
		System.out.println( "\t --file/-F <parameter file>" ); 
		System.out.println( "\t --encoding/-e <target encoding>" ); 
		System.out.println( "\nLocale: default is english\n" );