Bug 123038 Change order of BIRT streams
Currenlty, birt streams have no order. For example, the version number is stored at the very end of the file! Need to exert some ordering.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/archive/FileArchiveWriter.java
public FileArchiveWriter( String fileName ) throws IOException
	{
		if ( fileName == null ||
			 fileName.length() == 0 )
			throw new IOException("The file name is null or empty string.");
		
		File fd = new File( fileName );
		fileName = fd.getCanonicalPath();   
		this.fileName = fileName;
		
		SimpleDateFormat df = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss"); 
		String dateTimeString = df.format( new Date() );
		tempFolder = fileName + "_" + dateTimeString; 
		File archiveRootFolder = new File( tempFolder );
		
		if ( archiveRootFolder.exists() )
			ArchiveUtil.DeleteAllFiles( archiveRootFolder );
		
					
		archiveRootFolder.mkdirs();		
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.birt.core.archive.IDocArchiveWriter#initialize()
	 */
	public void initialize() 
	{
		
	}
	/* (non-Javadoc)