Bug 211004 Failed to remove temp db directory after running multiple reports
Description: I use Report Engine API to do runAndrender, run and dataextract tasks on multiple reports. Before the Platform started, I change the temp folder(System.setProperty( "java.io.tmpdir", TEMP_HOME )). Each task is closed after it finished and I shutdown the Platform after all the tasks finished. In log I found "Fail to remove one or more file in temp db directory,but it will be removed when the VM exits: D:\BIRT_NG\temp/BIRTSampleDB_1196129572031_10a6ae2". In temp folder the BIRTSampleDB_XXX is still here but not removed. I think it is the issue when remove the Temp sampleDB. Build number: 2.3.0.v20071127-0630
data/org.eclipse.birt.report.data.oda.sampledb/src/org/eclipse/birt/report/data/oda/sampledb/SampledbPlugin.java
*
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.data.oda.sampledb;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.logging.Logger;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import org.eclipse.birt.core.plugin.BIRTPlugin;
import org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager;
import org.eclipse.core.runtime.Platform;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
 * Plugin class for Sample DB
 * This class initializes a private copy of the Sample database by unzipping the DB
 * files to a subdir in the TEMP directory. A private copy is required because
 * (1) Derby 10.1.2.1 has a bug which disabled BIRT read-only access to a JAR'ed 
 *     DB. (See http://issues.apache.org/jira/browse/DERBY-854)
 * (2) BIRT instances in multiple JVMs may try to access the sample DB (such when preview
 *     mode). We will corrupt the DB if a single copy of the DB is used
 */
public class SampledbPlugin extends BIRTPlugin