Bug 156642 [Regression]Script of onPrepare is no effect
Details: Script of onPrepare is no effect Set any function on onPrepare, but it is no effect. For example: this.getStyle().color="red" Excepted: it is effect
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunTask.java
{
		if ( reportDocName == null || reportDocName.length( ) == 0 )
			throw new EngineException(
					"Report document name is not specified when running a report." ); 
		try
		{
			File file = new File( reportDocName );
			if ( file.exists( ) )
			{
				if ( file.isDirectory( ) )
				{
					archive = new FolderArchiveWriter( reportDocName );
				}
				else
				{
					archive = new FileArchiveWriter( reportDocName );
				}
			} 
			else
			{
				if ( reportDocName.endsWith( "\\" ) || reportDocName.endsWith( "/" ) )
				{
					archive = new FolderArchiveWriter( reportDocName );
				}
				else
				{
					archive = new FileArchiveWriter( reportDocName );
				}
			}
		}