[hibernate-commits] Hibernate SVN: r19786 - in core/branches/gradle2: buildSrc/src/main/java/org/hibernate/gradle/util and 35 other directories.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Jun 23 01:56:06 EDT 2010


Author: steve.ebersole at jboss.com
Date: 2010-06-23 01:56:05 -0400 (Wed, 23 Jun 2010)
New Revision: 19786

Added:
   core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/BuildException.java
   core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IntegrationTestPlugin.java
   core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IvyResolutionHelper.java
   core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/ResolutionException.java
   core/branches/gradle2/databases/
   core/branches/gradle2/databases/db2v82/
   core/branches/gradle2/databases/db2v82/ivy.xml
   core/branches/gradle2/databases/db2v82/resources/
   core/branches/gradle2/databases/db2v82/resources/hibernate.properties
   core/branches/gradle2/databases/db2v91/
   core/branches/gradle2/databases/db2v91/ivy.xml
   core/branches/gradle2/databases/db2v91/resources/
   core/branches/gradle2/databases/db2v91/resources/hibernate.properties
   core/branches/gradle2/databases/db2v97/
   core/branches/gradle2/databases/db2v97/ivy.xml
   core/branches/gradle2/databases/db2v97/resources/
   core/branches/gradle2/databases/db2v97/resources/hibernate.properties
   core/branches/gradle2/databases/h2/
   core/branches/gradle2/databases/h2/ivy.xml
   core/branches/gradle2/databases/h2/resources/
   core/branches/gradle2/databases/h2/resources/hibernate.properties
   core/branches/gradle2/databases/hsqldb/
   core/branches/gradle2/databases/hsqldb/ivy.xml
   core/branches/gradle2/databases/hsqldb/resources/
   core/branches/gradle2/databases/hsqldb/resources/hibernate.properties
   core/branches/gradle2/databases/mssql2005/
   core/branches/gradle2/databases/mssql2005/ivy.xml
   core/branches/gradle2/databases/mssql2005/resources/
   core/branches/gradle2/databases/mssql2005/resources/hibernate.properties
   core/branches/gradle2/databases/mssql2008/
   core/branches/gradle2/databases/mssql2008/ivy.xml
   core/branches/gradle2/databases/mssql2008/resources/
   core/branches/gradle2/databases/mssql2008/resources/hibernate.properties
   core/branches/gradle2/databases/mysql50/
   core/branches/gradle2/databases/mysql50/ivy.xml
   core/branches/gradle2/databases/mysql50/resources/
   core/branches/gradle2/databases/mysql50/resources/hibernate.properties
   core/branches/gradle2/databases/mysql51/
   core/branches/gradle2/databases/mysql51/ivy.xml
   core/branches/gradle2/databases/mysql51/resources/
   core/branches/gradle2/databases/mysql51/resources/hibernate.properties
   core/branches/gradle2/databases/mysql51Cluster/
   core/branches/gradle2/databases/mysql51Cluster/ivy.xml
   core/branches/gradle2/databases/mysql51Cluster/resources/
   core/branches/gradle2/databases/mysql51Cluster/resources/hibernate.properties
   core/branches/gradle2/databases/oracle10g/
   core/branches/gradle2/databases/oracle10g/ivy.xml
   core/branches/gradle2/databases/oracle10g/resources/
   core/branches/gradle2/databases/oracle10g/resources/hibernate.properties
   core/branches/gradle2/databases/oracle11g/
   core/branches/gradle2/databases/oracle11g/ivy.xml
   core/branches/gradle2/databases/oracle11g/resources/
   core/branches/gradle2/databases/oracle11g/resources/hibernate.properties
   core/branches/gradle2/databases/oracle11gRAC/
   core/branches/gradle2/databases/oracle11gRAC/ivy.xml
   core/branches/gradle2/databases/oracle11gRAC/resources/
   core/branches/gradle2/databases/oracle11gRAC/resources/hibernate.properties
   core/branches/gradle2/databases/oracle9i/
   core/branches/gradle2/databases/oracle9i/ivy.xml
   core/branches/gradle2/databases/oracle9i/resources/
   core/branches/gradle2/databases/oracle9i/resources/hibernate.properties
   core/branches/gradle2/databases/postgresql82/
   core/branches/gradle2/databases/postgresql82/ivy.xml
   core/branches/gradle2/databases/postgresql82/resources/
   core/branches/gradle2/databases/postgresql82/resources/hibernate.properties
   core/branches/gradle2/databases/postgresql83/
   core/branches/gradle2/databases/postgresql83/ivy.xml
   core/branches/gradle2/databases/postgresql83/resources/
   core/branches/gradle2/databases/postgresql83/resources/hibernate.properties
   core/branches/gradle2/databases/sybase15/
   core/branches/gradle2/databases/sybase15/ivy.xml
   core/branches/gradle2/databases/sybase15/resources/
   core/branches/gradle2/databases/sybase15/resources/hibernate.properties
Log:
added infrastructure for integration testing

Added: core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/BuildException.java
===================================================================
--- core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/BuildException.java	                        (rev 0)
+++ core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/BuildException.java	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,16 @@
+package org.hibernate.gradle.util;
+
+/**
+ * TODO : javadoc
+ *
+ * @author Steve Ebersole
+ */
+public class BuildException extends RuntimeException {
+	public BuildException(String message) {
+		super( message );
+	}
+
+	public BuildException(String message, Throwable cause) {
+		super( message, cause );
+	}
+}

Added: core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IntegrationTestPlugin.java
===================================================================
--- core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IntegrationTestPlugin.java	                        (rev 0)
+++ core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IntegrationTestPlugin.java	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,215 @@
+package org.hibernate.gradle.util;
+
+import java.io.File;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.gradle.api.Plugin;
+import org.gradle.api.Project;
+import org.gradle.api.Task;
+import org.gradle.api.artifacts.Configuration;
+import org.gradle.api.file.FileCollection;
+import org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency;
+import org.gradle.api.plugins.JavaPluginConvention;
+import org.gradle.api.tasks.SourceSet;
+import org.gradle.api.tasks.SourceSetContainer;
+import org.gradle.api.tasks.testing.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.gradle.api.plugins.JavaPlugin.COMPILE_CONFIGURATION_NAME;
+import static org.gradle.api.plugins.JavaPlugin.RUNTIME_CONFIGURATION_NAME;
+import static org.gradle.api.plugins.JavaPlugin.TEST_TASK_NAME;
+
+
+/**
+ * TODO : would be nice to allow singular configuration of common attributes across all the intgTest_X tasks
+ * As it is each would need to be configured individually
+ *
+ * @author Steve Ebersole
+ */
+public class IntegrationTestPlugin implements Plugin<Project> {
+	private static final Logger log = LoggerFactory.getLogger( IntegrationTestPlugin.class );
+
+	public static final String INTG_TEST_TASK_NAME = "intgTest";
+	public static final String INTG_TEST_SOURCE_SET_NAME = "intgTest";
+	public static final String INTG_TEST_COMPILE_CONFIG_NAME = "intgTestCompile";
+	public static final String INTG_TEST_RUNTIME_CONFIG_NAME = "intgTestRuntime";
+
+	private Project project;
+	private IvyResolutionHelper ivyResolutionHelper;
+	private Set<File> databaseDirs = new HashSet<File>();
+
+	private Configuration intgTestCompileConfig;
+	private Configuration intgTestRuntimeConfig;
+	private SourceSet intgTestSourceSet;
+	private Task intgTestGroupTask;
+
+	public void apply(Project project) {
+		this.project = project;
+		this.ivyResolutionHelper = new IvyResolutionHelper( project );
+		this.databaseDirs = new HashSet<File>();
+		applyDatabaseDirectories( new File( project.getRootProject().getProjectDir(), "databases" ) );
+
+		intgTestCompileConfig = prepareCompileConfiguration();
+		intgTestRuntimeConfig = prepareRuntimeConfiguration();
+
+		intgTestSourceSet = prepareSourceSet();
+
+		// create a "grouping task" for all the integration tests in *this* project
+		intgTestGroupTask = project.getTasks().add( INTG_TEST_TASK_NAME );
+
+// todo : handle "extra" / "local" database directories; requires convention object and delayed task generation
+//
+//		project.getGradle().addBuildListener(
+//				new BuildAdapter() {
+//					@Override
+//					public void projectsEvaluated(Gradle gradle) {
+//						finishUp();
+//					}
+//				}
+//		);
+// for now we just use the defaults and finish up immediately
+		finishUp();
+	}
+
+	private SourceSet prepareSourceSet() {
+		final SourceSetContainer sourceSets = project.getConvention().getPlugin( JavaPluginConvention.class ).getSourceSets();
+		SourceSet sourceSet = sourceSets.findByName( INTG_TEST_SOURCE_SET_NAME );
+		if ( sourceSet == null ) {
+			sourceSet = sourceSets.add( INTG_TEST_SOURCE_SET_NAME );
+		}
+//		sourceSet.setCompileClasspath( intgTestCompileConfig );
+//		// this one is not totally accurate as it is missing the specific jdbc drivers.
+//		sourceSet.setRuntimeClasspath( intgTestSourceSet.getClasses().plus( intgTestRuntimeConfig ) );
+
+		final SourceSet mainSourceSet = sourceSets.getByName( SourceSet.MAIN_SOURCE_SET_NAME );
+		sourceSet.setCompileClasspath( mainSourceSet.getClasses().plus( intgTestCompileConfig ) );
+		sourceSet.setRuntimeClasspath( mainSourceSet.getClasses().plus( sourceSet.getClasses() ).plus( intgTestRuntimeConfig ) );
+
+		final SourceSet unitTestSourceSet = sourceSets.getByName( SourceSet.TEST_SOURCE_SET_NAME );
+		sourceSet.setClassesDir( unitTestSourceSet.getClassesDir() );
+
+		return sourceSet;
+	}
+
+	private Configuration prepareCompileConfiguration() {
+		return project.getConfigurations().add( INTG_TEST_COMPILE_CONFIG_NAME )
+				.setVisible( true )
+				.setTransitive( false )
+				.setDescription( "Libraries/dependencies used to compile the integration tests" )
+				.extendsFrom( project.getConfigurations().getByName( COMPILE_CONFIGURATION_NAME ) );
+	}
+
+	private Configuration prepareRuntimeConfiguration() {
+		return project.getConfigurations().add( INTG_TEST_RUNTIME_CONFIG_NAME )
+				.setVisible( true )
+				.setTransitive( true )
+				.setDescription( "Libraries/dependencies used to run the integration tests" )
+				.extendsFrom( intgTestCompileConfig )
+				.extendsFrom( project.getConfigurations().getByName( RUNTIME_CONFIGURATION_NAME ) );
+	}
+
+	private void applyDatabaseDirectories(File databasesBaseDir) {
+		File[] files = databasesBaseDir.listFiles();
+		for ( File file : files ) {
+			log.debug( "Checking potential database directory : {}", file.getName() );
+			if ( !file.isDirectory() ) {
+				continue;
+			}
+			// look for a file named 'ivy.xml' or a directory named 'jdbc' (expected to contain driver-related jars)
+			File ivyXml = new File( file, "ivy.xml" );
+			if ( ivyXml.exists() && ivyXml.isFile() ) {
+				databaseDirs.add( file );
+				continue;
+			}
+			File jdbcDir = new File( file, "jdbc" );
+			if ( jdbcDir.exists() && jdbcDir.isDirectory() ) {
+				// it better have entries also...
+				File[] jdbcDirFiles = jdbcDir.listFiles();
+				if ( jdbcDirFiles == null || jdbcDirFiles.length == 0 ) {
+					log.warn( "Found 'jdbc' directory, but no entries" );
+				}
+				databaseDirs.add( file );
+				continue;
+			}
+			log.info( "Skipping database directory [{}] as no 'ivy.xml' file nor 'jdbc' directory could be found", file.getName() );
+		}
+	}
+
+	private void finishUp() {
+		for ( File databaseDir : databaseDirs ) {
+			processDatabase( databaseDir );
+		}
+	}
+
+	private void processDatabase(File databaseDir) {
+		try {
+			Configuration configuration = prepareJdbcDependencies( databaseDir );
+			configuration.extendsFrom( intgTestRuntimeConfig );
+			Task intgTestTask = prepareTestTask( databaseDir, configuration );
+			intgTestGroupTask.dependsOn( intgTestTask );
+		}
+		catch ( ResolutionException e ) {
+			log.info( "Skipping database '{}' due to problems resolving dependencies", databaseDir.getName() );
+		}
+	}
+
+	private Configuration prepareJdbcDependencies(File databaseDir) {
+		final String databaseName = databaseDir.getName();
+		log.debug( "Starting processing of '{}' database", databaseName );
+		final File ivyXml = new File( databaseDir, "ivy.xml" );
+		if ( ivyXml.exists() && ivyXml.isFile() ) {
+			return ivyResolutionHelper.resolve( ivyXml, databaseName );
+		}
+		else {
+			return createSelfContainedConfiguration( new File( databaseDir, "jdbc" ), databaseName );
+		}
+	}
+
+	private Configuration createSelfContainedConfiguration(File directory, String configurationName) {
+		DefaultSelfResolvingDependency dependency = new DefaultSelfResolvingDependency(
+				project.files( (File[]) directory.listFiles() )
+		);
+		Configuration configuration = ivyResolutionHelper.getOrCreateConfiguration( configurationName );
+		configuration.addDependency( dependency );
+		return configuration;
+	}
+
+	private static final String INTG_TEST_INCLUDES = "**/org/hibernate/test/**";
+
+	private Task prepareTestTask(File databaseDir, Configuration configuration) {
+		final String databaseName = databaseDir.getName();
+		final Test intgTestTask = project.getTasks().add( String.format( "intgTest_%s", databaseName ), Test.class );
+		intgTestTask.setDescription( "Runs the integration tests for " + databaseName );
+
+		final FileCollection classpath = project.files( new File( databaseDir, "resources" ) )
+				.plus( intgTestSourceSet.getRuntimeClasspath() )
+				.plus( configuration );
+		intgTestTask.setClasspath( classpath );
+		intgTestTask.setTestClassesDir( intgTestSourceSet.getClassesDir() );
+		intgTestTask.getTestSrcDirs().addAll( intgTestSourceSet.getJava().getSrcDirs() );
+
+		final File baseOutputDirectory = new File( new File( project.getBuildDir(), "intgTest" ), databaseName );
+		intgTestTask.setWorkingDir( baseOutputDirectory );
+		intgTestTask.setTestReportDir( new File( baseOutputDirectory, "reports" ) );
+		intgTestTask.setTestResultsDir( new File( baseOutputDirectory, "results" ) );
+
+		// todo : to make this more general purpose we would need to expose the Test options via a convention object.
+		// for now we just set the Hibernate specific needs...
+		intgTestTask.include( INTG_TEST_INCLUDES );
+
+		final Test unitTestTask = (Test) project.getTasks().findByName( TEST_TASK_NAME );
+		if ( unitTestTask != null ) {
+			intgTestTask.dependsOn( unitTestTask );
+			unitTestTask.exclude( INTG_TEST_INCLUDES );
+		}
+		intgTestTask.dependsOn( project.getTasks().getByName( intgTestSourceSet.getClassesTaskName() ) );
+
+		intgTestTask.setMaxHeapSize( "1024m" );
+		intgTestTask.getSystemProperties().put( "hibernate.test.validatefailureexpected", "true" );
+
+		return intgTestTask;
+	}
+
+}

Added: core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IvyResolutionHelper.java
===================================================================
--- core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IvyResolutionHelper.java	                        (rev 0)
+++ core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/IvyResolutionHelper.java	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,192 @@
+package org.hibernate.gradle.util;
+
+import java.io.File;
+import java.io.IOException;
+import java.text.ParseException;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.ivy.Ivy;
+import org.apache.ivy.core.module.descriptor.DependencyDescriptor;
+import org.apache.ivy.core.module.descriptor.ModuleDescriptor;
+import org.apache.ivy.core.module.id.ModuleRevisionId;
+import org.apache.ivy.core.report.ResolveReport;
+import org.apache.ivy.core.settings.IvySettings;
+import org.apache.ivy.util.AbstractMessageLogger;
+import org.apache.ivy.util.Message;
+import org.apache.ivy.util.MessageLogger;
+import org.gradle.api.Project;
+import org.gradle.api.artifacts.Configuration;
+import org.gradle.api.artifacts.Dependency;
+import org.gradle.api.artifacts.repositories.InternalRepository;
+import org.gradle.api.internal.artifacts.IvyService;
+import org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer;
+import org.gradle.api.internal.artifacts.configurations.ResolverProvider;
+import org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency;
+import org.gradle.api.internal.artifacts.ivyservice.DefaultIvyService;
+import org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService;
+import org.gradle.api.internal.artifacts.ivyservice.IvyFactory;
+import org.gradle.api.internal.artifacts.ivyservice.SettingsConverter;
+import org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsIvyService;
+import org.gradle.invocation.DefaultGradle;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.gradle.api.plugins.JavaPlugin.TEST_RUNTIME_CONFIGURATION_NAME;
+
+/**
+ * A helper for handling resolution of ivy.xml files through Ivy calls using the bits and pieces of Ivy config
+ * from Gradle.
+ *
+ * @author Steve Ebersole
+ */
+public class IvyResolutionHelper {
+	private static final Logger log = LoggerFactory.getLogger( IvyResolutionHelper.class );
+
+	private final Project project;
+
+	/**
+	 * Creates an Ivy resolution helper for the given project.  The project will be the one on
+	 * which the requested configurations are created/used.
+	 *
+	 * @param project The project into which to inject the resolved dependencies.
+	 */
+	public IvyResolutionHelper(Project project) {
+		this.project = project;
+	}
+
+	/**
+	 * Constitutes the main API.  Resolve the dependencies named in the given ivy.xml file into the named
+	 * configuration.
+	 *
+	 * @param ivyXmlFile The ivy.xml file
+	 * @param configurationName The name of the configuration into which to place the resolved dependencies.
+	 *
+	 * @return The configuration. Returns null to indicate a problem doing the resolution.
+	 */
+	public Configuration resolve(File ivyXmlFile, String configurationName) {
+		ResolveReport resolveReport = performResolve( getIvy(), ivyXmlFile );
+		ModuleDescriptor moduleDescriptor = resolveReport.getModuleDescriptor();
+		Configuration configuration = getOrCreateConfiguration( configurationName );
+		for ( DependencyDescriptor dependencyDescriptor : moduleDescriptor.getDependencies() ) {
+			final ModuleRevisionId info = dependencyDescriptor.getDynamicConstraintDependencyRevisionId();
+			final Dependency dependency = new DefaultExternalModuleDependency(
+					info.getOrganisation(),
+					info.getName(),
+					info.getRevision()
+			);
+			configuration.addDependency( dependency );
+			log.debug( "Added dependency {} to configuration {}", dependency, configurationName );
+		}
+
+		return configuration;
+	}
+
+	public Configuration getOrCreateConfiguration(String configurationName) {
+		Configuration configuration = project.getConfigurations().findByName( configurationName );
+		if ( configuration == null ) {
+			configuration = project.getConfigurations().add( configurationName );
+			configuration.setVisible( true );
+			configuration.setDescription( "The [" + configurationName + "] integration test dependency configuration" );
+			configuration.extendsFrom( project.getConfigurations().getByName( TEST_RUNTIME_CONFIGURATION_NAME ) );
+		}
+		return configuration;
+	}
+
+	@SuppressWarnings({ "unchecked" })
+	protected ResolveReport performResolve(Ivy ivy, File ivyXmlFile) {
+		final MessageLogger originalMessageLogger = Message.getDefaultLogger();
+		Message.setDefaultLogger( new NoOpMessageLogger() );
+		try {
+			ResolveReport resolveReport = ivy.resolve( ivyXmlFile );
+			if ( resolveReport.hasError() ) {
+				throw new ResolutionException(
+						resolveReport.getModuleDescriptor().getModuleRevisionId().toString(),
+						resolveReport.getAllProblemMessages()
+				);
+			}
+			return resolveReport;
+		}
+		catch ( ParseException e ) {
+			throw new BuildException( "Malformed ivy dependency file [" + ivyXmlFile.getName() + "]", e );
+		}
+		catch ( IOException e ) {
+			throw new BuildException( "Problem reading ivy dependency file [" + ivyXmlFile.getName() + "]", e );
+		}
+		finally {
+			Message.setDefaultLogger( originalMessageLogger );
+		}
+	}
+
+	/**
+	 * Create an {@link Ivy} instance based on the running Gradle instance.
+	 * <p/>
+	 * Much of this is copied from {@link org.gradle.api.internal.artifacts.ivyservice.DefaultIvyService} because it
+	 * unfortunately does not expose the needed information.
+	 *
+	 * @return The generated {@link Ivy} instance
+	 */
+	private Ivy getIvy() {
+		DefaultIvyService ivyService = unwrap(
+				( (DefaultConfigurationContainer) project.getConfigurations() ).getIvyService()
+		);
+
+		final IvyFactory ivyFactory = ivyService.getIvyFactory();
+		final SettingsConverter settingsConverter = ivyService.getSettingsConverter();
+		final ResolverProvider resolverProvider = ivyService.getResolverProvider();
+
+		// Ugh, can absolutely find no way to access this other than a bunch of recursive reflection calls to
+		// locate the build's org.gradle.api.internal.project.TopLevelBuildServiceRegistry and access its
+		// private org.gradle.api.internal.project.TopLevelBuildServiceRegistry.clientModuleRegistry field.
+		//
+		// Not sure if it is critical to reuse that map instance or not.  seems to work without, but i have no
+		// idea about the ramifications.
+		Map<String, ModuleDescriptor> clientModuleRegistry = new HashMap<String, ModuleDescriptor>();
+
+		// this part is mainly DefaultIvyService#ivyForResolve
+		IvySettings ivySettings = settingsConverter.convertForResolve(
+				resolverProvider.getResolvers(),
+				project.getGradle().getGradleUserHomeDir(),
+				getGradeService( InternalRepository.class ),
+				clientModuleRegistry
+		);
+        return ivyFactory.createIvy( ivySettings );
+	}
+
+	private DefaultIvyService unwrap(IvyService ivyService) {
+		if ( DefaultIvyService.class.isInstance( ivyService ) ) {
+			return (DefaultIvyService) ivyService;
+		}
+
+		if ( ErrorHandlingIvyService.class.isInstance( ivyService ) ) {
+			return unwrap( ( (ErrorHandlingIvyService) ivyService ).getIvyService() );
+		}
+
+		if ( ShortcircuitEmptyConfigsIvyService.class.isInstance( ivyService ) ) {
+			return unwrap( ( (ShortcircuitEmptyConfigsIvyService) ivyService ).getIvyService() );
+		}
+
+		throw new BuildException( "Do not know how to extract needed ivy config from ivy service of type " + ivyService.getClass().getName() );
+	}
+
+	protected <T> T getGradeService(Class<T> type) {
+		return ( (DefaultGradle) project.getGradle() ).getServiceRegistryFactory().get( type );
+	}
+
+	private static class NoOpMessageLogger extends AbstractMessageLogger implements MessageLogger {
+		public void log(String s, int i) {
+		}
+
+		public void rawlog(String s, int i) {
+		}
+
+		public void sumupProblems() {
+		}
+
+		protected void doProgress() {
+		}
+
+		protected void doEndProgress(String s) {
+		}
+	}
+}

Added: core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/ResolutionException.java
===================================================================
--- core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/ResolutionException.java	                        (rev 0)
+++ core/branches/gradle2/buildSrc/src/main/java/org/hibernate/gradle/util/ResolutionException.java	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,27 @@
+package org.hibernate.gradle.util;
+
+import java.util.List;
+
+/**
+ * TODO : javadoc
+ *
+ * @author Steve Ebersole
+ */
+public class ResolutionException extends BuildException {
+	private final String moduleDescriptor;
+	private final List<String> problemMessages;
+
+	public ResolutionException(String moduleDescriptor, List<String> problemMessages) {
+		super( "Problem performing resolution of module [" + moduleDescriptor + "]" );
+		this.moduleDescriptor = moduleDescriptor;
+		this.problemMessages = problemMessages;
+	}
+
+	public String getModuleDescriptor() {
+		return moduleDescriptor;
+	}
+
+	public List<String> getProblemMessages() {
+		return problemMessages;
+	}
+}

Added: core/branches/gradle2/databases/db2v82/ivy.xml
===================================================================
--- core/branches/gradle2/databases/db2v82/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/db2v82/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,7 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="db2v82"/>
+    <dependencies>
+        <dependency org="com.ibm" name="db2jcc" rev="3.1.57" />
+        <dependency org="com.ibm" name="db2jcc_license_cu" rev="3.1.57" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/db2v82/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/db2v82/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/db2v82/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.DB2Dialect
+hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
+hibernate.connection.url jdbc:db2://dev32.qa.atl.jboss.com:50000/jbossqa
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/db2v91/ivy.xml
===================================================================
--- core/branches/gradle2/databases/db2v91/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/db2v91/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,7 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="db2-91"/>
+    <dependencies>
+        <dependency org="com.ibm" name="db2jcc" rev="3.8.47" />
+        <dependency org="com.ibm" name="db2jcc_license_cu" rev="3.8.47" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/db2v91/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/db2v91/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/db2v91/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.DB2Dialect
+hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
+hibernate.connection.url jdbc:db2://dev67.qa.atl.jboss.com:50000/jbossqa
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/db2v97/ivy.xml
===================================================================
--- core/branches/gradle2/databases/db2v97/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/db2v97/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,7 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="db2-97"/>
+    <dependencies>
+        <dependency org="com.ibm" name="db2jcc" rev="3.57.86" />
+        <dependency org="com.ibm" name="db2jcc_license_cu" rev="3.57.86" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/db2v97/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/db2v97/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/db2v97/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.DB2Dialect
+hibernate.connection.driver_class com.ibm.db2.jcc.DB2Driver
+hibernate.connection.url jdbc:db2://vmg06.mw.lab.eng.bos.redhat.com:50000/jbossqa
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/h2/ivy.xml
===================================================================
--- core/branches/gradle2/databases/h2/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/h2/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="h2"/>
+    <dependencies>
+        <dependency org="com.h2database" name="h2" rev="1.2.134" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/h2/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/h2/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/h2/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.H2Dialect
+hibernate.connection.driver_class org.h2.Driver
+hibernate.connection.url jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1;MVCC=TRUE
+hibernate.connection.username sa
+hibernate.connection.password
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/hsqldb/ivy.xml
===================================================================
--- core/branches/gradle2/databases/hsqldb/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/hsqldb/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="hsqldb"/>
+    <dependencies>
+        <dependency org="hsqldb" name="hsqldb" rev="1.8.0.2" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/hsqldb/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/hsqldb/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/hsqldb/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.HSQLDialect
+hibernate.connection.driver_class org.hsqldb.jdbcDriver
+hibernate.connection.url jdbc:hsqldb:.
+hibernate.connection.username sa
+hibernate.connection.password
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/mssql2005/ivy.xml
===================================================================
--- core/branches/gradle2/databases/mssql2005/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/mssql2005/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="mssql2005"/>
+    <dependencies>
+        <dependency org="com.microsoft.sqlserver" name="msjdbc" rev="2.0.1008.2" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/mssql2005/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/mssql2005/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/mssql2005/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,31 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.SQLServerDialect
+hibernate.connection.driver_class com.microsoft.sqlserver.jdbc.SQLServerDriver
+hibernate.connection.url jdbc:sqlserver://dev30.qa.atl.jboss.com:3918
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+hibernate.connection.isolation 4096
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/mssql2008/ivy.xml
===================================================================
--- core/branches/gradle2/databases/mssql2008/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/mssql2008/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="mssql2008"/>
+    <dependencies>
+        <dependency org="com.microsoft.sqlserver" name="msjdbc" rev="2.0.1008.2" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/mssql2008/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/mssql2008/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/mssql2008/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,31 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.SQLServerDialect
+hibernate.connection.driver_class com.microsoft.sqlserver.jdbc.SQLServerDriver
+hibernate.connection.url jdbc:sqlserver://vmg04.mw.lab.eng.bos.redhat.com:1433
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+hibernate.connection.isolation 4096
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/mysql50/ivy.xml
===================================================================
--- core/branches/gradle2/databases/mysql50/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/mysql50/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="mysql50"/>
+    <dependencies>
+        <dependency org="mysql" name="mysql-connector-java" rev="5.0.5" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/mysql50/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/mysql50/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/mysql50/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.MySQL5InnoDBDialect
+hibernate.connection.driver_class com.mysql.jdbc.Driver
+hibernate.connection.url jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com/hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/mysql51/ivy.xml
===================================================================
--- core/branches/gradle2/databases/mysql51/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/mysql51/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="mysql51"/>
+    <dependencies>
+        <dependency org="mysql" name="mysql-connector-java" rev="5.0.5" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/mysql51/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/mysql51/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/mysql51/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.MySQL5InnoDBDialect
+hibernate.connection.driver_class com.mysql.jdbc.Driver
+hibernate.connection.url jdbc:mysql://vmg02.mw.lab.eng.bos.redhat.com/hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/mysql51Cluster/ivy.xml
===================================================================
--- core/branches/gradle2/databases/mysql51Cluster/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/mysql51Cluster/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="mysql51-cluster"/>
+    <dependencies>
+        <dependency org="mysql" name="mysql-connector-java" rev="5.1.8" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/mysql51Cluster/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/mysql51Cluster/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/mysql51Cluster/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.MySQL5Dialect
+hibernate.connection.driver_class com.mysql.jdbc.Driver
+hibernate.connection.url jdbc:mysql:loadbalance://dev61.qa.atl2.redhat.com:3306,dev62.qa.atl2.redhat.com:3306/hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/oracle10g/ivy.xml
===================================================================
--- core/branches/gradle2/databases/oracle10g/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/oracle10g/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="oracle10g"/>
+    <dependencies>
+        <dependency org="com.oracle" name="ojdbc14" rev="10.0.2.0" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/oracle10g/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/oracle10g/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/oracle10g/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.Oracle10gDialect
+hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
+hibernate.connection.url jdbc:oracle:thin:@vmg05.mw.lab.eng.bos.redhat.com:1521:qaora10
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/oracle11g/ivy.xml
===================================================================
--- core/branches/gradle2/databases/oracle11g/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/oracle11g/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="oracle11g"/>
+    <dependencies>
+        <dependency org="com.oracle" name="ojdbc5" rev="11.1.0.7.0" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/oracle11g/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/oracle11g/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/oracle11g/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.Oracle10gDialect
+hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
+hibernate.connection.url jdbc:oracle:thin:@dev04.qa.atl2.redhat.com:1521:qaora11
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/oracle11gRAC/ivy.xml
===================================================================
--- core/branches/gradle2/databases/oracle11gRAC/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/oracle11gRAC/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="oracle11gRAC"/>
+    <dependencies>
+        <dependency org="com.oracle" name="ojdbc5" rev="11.1.0.7.0" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/oracle11gRAC/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/oracle11gRAC/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/oracle11gRAC/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.Oracle10gDialect
+hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
+hibernate.connection.url jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=vmg24-vip.mw.lab.eng.bos.redhat.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=vmg25-vip.mw.lab.eng.bos.redhat.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=qarac.jboss)))
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/oracle9i/ivy.xml
===================================================================
--- core/branches/gradle2/databases/oracle9i/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/oracle9i/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="oracle9i"/>
+    <dependencies>
+        <dependency org="com.oracle" name="ojdbc14" rev="10.0.2.0" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/oracle9i/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/oracle9i/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/oracle9i/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.Oracle9iDialect
+hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
+hibernate.connection.url jdbc:oracle:thin:@dev20.qa.atl.jboss.com:1521:qa
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/postgresql82/ivy.xml
===================================================================
--- core/branches/gradle2/databases/postgresql82/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/postgresql82/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="postgresql82"/>
+    <dependencies>
+        <dependency org="postgresql" name="postgresql" rev="8.2-504.jdbc3" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/postgresql82/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/postgresql82/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/postgresql82/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
+hibernate.connection.driver_class org.postgresql.Driver
+hibernate.connection.url jdbc:postgresql://vmg01.mw.lab.eng.bos.redhat.com:5432:hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/postgresql83/ivy.xml
===================================================================
--- core/branches/gradle2/databases/postgresql83/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/postgresql83/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="postgresql83"/>
+    <dependencies>
+        <dependency org="postgresql" name="postgresql" rev="8.2-504.jdbc3" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/postgresql83/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/postgresql83/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/postgresql83/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
+hibernate.connection.driver_class org.postgresql.Driver
+hibernate.connection.url jdbc:postgresql://vmg03.mw.lab.eng.bos.redhat.com:5432:hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider

Added: core/branches/gradle2/databases/sybase15/ivy.xml
===================================================================
--- core/branches/gradle2/databases/sybase15/ivy.xml	                        (rev 0)
+++ core/branches/gradle2/databases/sybase15/ivy.xml	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,6 @@
+<ivy-module version="2.0">
+    <info organisation="org.hibernate.intgTest" module="sybase15"/>
+    <dependencies>
+        <dependency org="com.sybase" name="jconnect" rev="6.0.5" />
+    </dependencies>
+</ivy-module>

Added: core/branches/gradle2/databases/sybase15/resources/hibernate.properties
===================================================================
--- core/branches/gradle2/databases/sybase15/resources/hibernate.properties	                        (rev 0)
+++ core/branches/gradle2/databases/sybase15/resources/hibernate.properties	2010-06-23 05:56:05 UTC (rev 19786)
@@ -0,0 +1,30 @@
+################################################################################
+# Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.            #
+#                                                                              #
+# This copyrighted material is made available to anyone wishing to use, modify,#
+# copy, or redistribute it subject to the terms and conditions of the GNU      #
+# Lesser General Public License, v. 2.1. This program is distributed in the    #
+# hope that it will be useful, but WITHOUT A WARRANTY; without even the implied#
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
+# Lesser General Public License for more details. You should have received a   #
+# copy of the GNU Lesser General Public License, v.2.1 along with this         #
+# distribution; if not, write to the Free Software Foundation, Inc.,           #
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                 #
+#                                                                              #
+# Red Hat Author(s): Steve Ebersole                                            #
+################################################################################
+hibernate.dialect org.hibernate.dialect.SybaseASE15Dialect
+hibernate.connection.driver_class com.sybase.jdbc3.jdbc.SybDriver
+hibernate.connection.url jdbc:sybase:Tds:vmg07.mw.lab.eng.bos.redhat.com:5000/hibbrtru
+hibernate.connection.username hibbrtru
+hibernate.connection.password hibbrtru
+
+hibernate.connection.pool_size 5
+
+hibernate.show_sql true
+hibernate.format_sql true
+
+hibernate.max_fetch_depth 5
+
+hibernate.cache.region_prefix hibernate.test
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider



More information about the hibernate-commits mailing list