Author: steve.ebersole(a)jboss.com
Date: 2010-06-30 11:55:13 -0400 (Wed, 30 Jun 2010)
New Revision: 19875
Modified:
core/branches/gradle2/hibernate-infinispan/hibernate-infinispan.gradle
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/JndiInfinispanRegionFactory.java
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/AbstractNonFunctionalTestCase.java
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/cluster/DualNodeTestCase.java
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/tm/JBossStandaloneJtaExampleTest.java
Log:
helps to do a clean build sometimes to ferret out problems :)
Modified: core/branches/gradle2/hibernate-infinispan/hibernate-infinispan.gradle
===================================================================
--- core/branches/gradle2/hibernate-infinispan/hibernate-infinispan.gradle 2010-06-30
14:35:26 UTC (rev 19874)
+++ core/branches/gradle2/hibernate-infinispan/hibernate-infinispan.gradle 2010-06-30
15:55:13 UTC (rev 19875)
@@ -21,7 +21,7 @@
type = 'jar'
}
}
-// testCompile( project(':hibernate-core').sourceSets.testing.classes )
+ testCompile( project(':hibernate-core').sourceSets.matrix.classes )
testCompile( [group: 'org.jboss', name: 'jboss-common-core', version:
'2.2.14.GA'] )
testCompile( [group: 'org.jboss.naming', name: 'jnp-client', version:
jnpVersion] )
testCompile( [group: 'org.jboss.naming', name: 'jnpserver', version:
jnpVersion] )
@@ -50,6 +50,12 @@
test {
executable = java6Home.getJavaExecutable()
+ environment['java.net.preferIPv4Stack'] = true
+ environment['jgroups.ping.timeout'] = 500
+ environment['jgroups.ping.num_initial_members'] = 1
+ environment['jgroups.udp.enable_bundling'] = false
+ // quite a few failures and the old maven module disabled these tests as well
+ enabled = false
}
// todo : need to account for skipUnitTests from pom.xml
Modified:
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java
===================================================================
---
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java 2010-06-30
14:35:26 UTC (rev 19874)
+++
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java 2010-06-30
15:55:13 UTC (rev 19875)
@@ -159,7 +159,7 @@
/** {@inheritDoc} */
public CollectionRegion buildCollectionRegion(String regionName, Properties
properties, CacheDataDescription metadata) throws CacheException {
- log.debug("Building collection cache region [" + regionName +
"]");
+ if (log.isDebugEnabled()) log.debug("Building collection cache region ["
+ regionName + "]");
Cache cache = getCache(regionName, COLLECTION_KEY, properties);
CacheAdapter cacheAdapter = CacheAdapterImpl.newInstance(cache);
CollectionRegionImpl region = new CollectionRegionImpl(cacheAdapter, regionName,
metadata, transactionManager, this);
@@ -182,7 +182,7 @@
*/
public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties
properties)
throws CacheException {
- log.debug("Building query results cache region [" + regionName +
"]");
+ if (log.isDebugEnabled()) log.debug("Building query results cache region
[" + regionName + "]");
String cacheName = typeOverrides.get(QUERY_KEY).getCacheName();
CacheAdapter cacheAdapter =
CacheAdapterImpl.newInstance(manager.getCache(cacheName));
QueryResultsRegionImpl region = new QueryResultsRegionImpl(cacheAdapter,
regionName, properties, transactionManager, this);
@@ -195,7 +195,7 @@
*/
public TimestampsRegion buildTimestampsRegion(String regionName, Properties
properties)
throws CacheException {
- log.debug("Building timestamps cache region [" + regionName +
"]");
+ if (log.isDebugEnabled()) log.debug("Building timestamps cache region ["
+ regionName + "]");
String cacheName = typeOverrides.get(TIMESTAMPS_KEY).getCacheName();
CacheAdapter cacheAdapter =
CacheAdapterImpl.newInstance(manager.getCache(cacheName));
TimestampsRegionImpl region = new TimestampsRegionImpl(cacheAdapter, regionName,
transactionManager, this);
Modified:
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/JndiInfinispanRegionFactory.java
===================================================================
---
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/JndiInfinispanRegionFactory.java 2010-06-30
14:35:26 UTC (rev 19874)
+++
core/branches/gradle2/hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/JndiInfinispanRegionFactory.java 2010-06-30
15:55:13 UTC (rev 19875)
@@ -51,7 +51,15 @@
* There is no default value -- the user must specify the property.
*/
public static final String CACHE_MANAGER_RESOURCE_PROP =
"hibernate.cache.infinispan.cachemanager";
-
+
+ public JndiInfinispanRegionFactory() {
+ super();
+ }
+
+ public JndiInfinispanRegionFactory(Properties props) {
+ super(props);
+ }
+
@Override
protected CacheManager createCacheManager(Properties properties) throws CacheException
{
String name = PropertiesHelper.getString(CACHE_MANAGER_RESOURCE_PROP, properties,
null);
Modified:
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/AbstractNonFunctionalTestCase.java
===================================================================
---
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/AbstractNonFunctionalTestCase.java 2010-06-30
14:35:26 UTC (rev 19874)
+++
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/AbstractNonFunctionalTestCase.java 2010-06-30
15:55:13 UTC (rev 19875)
@@ -29,7 +29,6 @@
import org.hibernate.cache.infinispan.util.CacheHelper;
import org.hibernate.testing.junit.UnitTestCase;
import org.hibernate.test.cache.infinispan.util.CacheTestSupport;
-
import org.infinispan.Cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Modified:
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/cluster/DualNodeTestCase.java
===================================================================
---
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/cluster/DualNodeTestCase.java 2010-06-30
14:35:26 UTC (rev 19874)
+++
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/cluster/DualNodeTestCase.java 2010-06-30
15:55:13 UTC (rev 19875)
@@ -135,7 +135,7 @@
/**
* Apply any node-specific configurations to our first node.
*
- * @param the
+ * @param cfg the
* Configuration to update.
*/
protected void configureFirstNode(Configuration cfg) {
@@ -145,7 +145,7 @@
/**
* Apply any node-specific configurations to our second node.
*
- * @param the
+ * @param cfg the
* Configuration to update.
*/
protected void configureSecondNode(Configuration cfg) {
Modified:
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/tm/JBossStandaloneJtaExampleTest.java
===================================================================
---
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/tm/JBossStandaloneJtaExampleTest.java 2010-06-30
14:35:26 UTC (rev 19874)
+++
core/branches/gradle2/hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/tm/JBossStandaloneJtaExampleTest.java 2010-06-30
15:55:13 UTC (rev 19875)
@@ -34,7 +34,6 @@
import org.hibernate.stat.Statistics;
import org.hibernate.test.cache.infinispan.functional.Item;
import org.hibernate.util.ConfigHelper;
-import org.hibernate.util.PropertiesHelper;
import org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup;
import org.infinispan.util.logging.Log;
@@ -53,7 +52,6 @@
import javax.transaction.Status;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
-import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.SQLException;
@@ -277,7 +275,7 @@
private SessionFactory buildSessionFactory() {
// Extra options located in src/test/resources/hibernate.properties
Configuration cfg = new Configuration();
- cfg.setProperty(Environment.DIALECT,
"org.hibernate.dialect.HSQLDialect");
+// cfg.setProperty(Environment.DIALECT,
"org.hibernate.dialect.HSQLDialect");
cfg.setProperty(Environment.HBM2DDL_AUTO, "create-drop");
cfg.setProperty(Environment.DATASOURCE, "java:/MyDatasource");
cfg.setProperty(Environment.JNDI_CLASS,
"org.jnp.interfaces.NamingContextFactory");