Commit e789b400 authored by Aurelien Pupier's avatar Aurelien Pupier

TAL-12: Provide some drivers in a different fragment in order to not

have to patch, just not to include a bundle
parent 5997607e
......@@ -514,4 +514,12 @@
version="1.7.0.v201011041433"
unpack="false"/>
<plugin
id="org.bonitasoft.studio.connectors.database.drivers.prop"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
</feature>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.bonitasoft.studio.connectors.database.drivers.prop</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Provided drivers fragment
Bundle-SymbolicName: org.bonitasoft.studio.connectors.database.drivers.prop;singleton:=true
Bundle-Version: 6.5.3.qualifier
Bundle-Vendor: Bonitasoft S.A.
Fragment-Host: org.bonitasoft.studio.connectors;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
fragment.xml,\
drivers/
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<fragment>
</fragment>
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.bonitasoft.studio.bundles</groupId>
<artifactId>plugins</artifactId>
<version>6.5.3-SNAPSHOT</version>
</parent>
<groupId>org.bonitasoft.studio.bundles.plugins</groupId>
<artifactId>org.bonitasoft.studio.connectors.database.drivers.prop</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
......@@ -31,6 +31,7 @@
<module>org.bonitasoft.studio.configuration</module>
<module>org.bonitasoft.studio.connectors</module>
<module>org.bonitasoft.studio.connectors.database.drivers</module>
<module>org.bonitasoft.studio.connectors.database.drivers.prop</module>
<module>org.bonitasoft.studio.connectors.model</module>
<module>org.bonitasoft.studio.condition</module>
<module>org.bonitasoft.studio.condition.ui</module>
......
......@@ -21,7 +21,9 @@ import static org.assertj.core.api.Assertions.assertThat;
import java.net.URL;
import java.util.Enumeration;
import org.bonitasoft.studio.common.repository.RepositoryManager;
import org.bonitasoft.studio.connectors.ConnectorPlugin;
import org.bonitasoft.studio.connectors.repository.DatabaseConnectorPropertiesRepositoryStore;
import org.bonitasoft.studio.connectors.util.DriverConstants;
import org.junit.Test;
......@@ -43,4 +45,12 @@ public class DriverAssociationContributionIT {
}
}
@Test
public void testAssociationCreated() {
final DatabaseConnectorPropertiesRepositoryStore repo = RepositoryManager.getInstance().getRepositoryStore(
DatabaseConnectorPropertiesRepositoryStore.class);
assertThat(repo.getChild(DriverConstants.POSTGRES_DEFINITION_ID + ".properties")).isNotNull();
assertThat(repo.getChild(DriverConstants.ORACLE_11G_DEFINITION_ID + ".properties")).isNotNull();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment