Bug 135439 JDBC database drivers are placed under both JDBC and Viewer plugin folder
steps to reproduce: - create a report - import JDBC database driver - check both JDBC and Viewer plugin folder expected behavior: - drivers are copied to JDBC plugin folder actual behavior: - drivers were copyied to both JDBC and Viewer plugin folders
data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/util/JarFile.java
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Serializable;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ResourceBundle;
import org.eclipse.datatools.connectivity.oda.OdaException;
import org.eclipse.birt.report.data.oda.jdbc.OdaJdbcDriver;
import org.eclipse.birt.report.data.oda.jdbc.ui.JdbcPlugin;
import org.eclipse.core.runtime.Platform;
import org.osgi.framework.Bundle;
/**
 * Jar file information and related action like add jar, delelte jar, check jar
 * state
 */
public class JarFile implements Serializable
{
	/**
	 * serial version id
	 */
	private static final long serialVersionUID = -765442524028110564L;
	/**
	 * File name of the Jar file
	 */
	private String fileName;