JBoss Cache SVN: r4479 - core/trunk/src/main/java/org/jboss/cache/interceptors.
by jbosscache-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-09-17 23:25:16 -0400 (Mon, 17 Sep 2007)
New Revision: 4479
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
Log:
[JBCACHE-1175] Option to force call sync/async
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2007-09-18 03:23:34 UTC (rev 4478)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/TxInterceptor.java 2007-09-18 03:25:16 UTC (rev 4479)
@@ -300,6 +300,7 @@
if (implicitTransaction)
{
copyInvocationScopeOptionsToTxScope(ctx);
+ copyForcedCacheModeToTxScope(ctx);
txManager.commit();
}
}
@@ -327,6 +328,26 @@
return result;
}
+ /**
+ * @param ctx
+ */
+ private void copyForcedCacheModeToTxScope(InvocationContext ctx)
+ {
+ Option optionOverride = ctx.getOptionOverrides();
+ if (optionOverride != null
+ && (optionOverride.isForceAsynchronous() || optionOverride.isForceSynchronous()))
+ {
+ TransactionEntry entry = txTable.get(ctx.getGlobalTransaction());
+ if (entry != null)
+ {
+ if (optionOverride.isForceAsynchronous())
+ entry.setForceAsyncReplication(true);
+ else
+ entry.setForceSyncReplication(true);
+ }
+ }
+ }
+
private MethodCall attachGlobalTransaction(InvocationContext ctx, Transaction tx, MethodCall m) throws Exception
{
if (log.isDebugEnabled())
17 years, 3 months
JBoss Cache SVN: r4478 - core/trunk/src/main/java/org/jboss/cache/interceptors.
by jbosscache-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-09-17 23:23:34 -0400 (Mon, 17 Sep 2007)
New Revision: 4478
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java
core/trunk/src/main/java/org/jboss/cache/interceptors/InvalidationInterceptor.java
core/trunk/src/main/java/org/jboss/cache/interceptors/ReplicationInterceptor.java
Log:
[JBCACHE-1175] Option to force call sync/async
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java 2007-09-18 03:22:49 UTC (rev 4477)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/BaseRpcInterceptor.java 2007-09-18 03:23:34 UTC (rev 4478)
@@ -6,6 +6,8 @@
import org.jboss.cache.CacheSPI;
import org.jboss.cache.InvocationContext;
import org.jboss.cache.buddyreplication.BuddyManager;
+import org.jboss.cache.config.Option;
+import org.jboss.cache.config.Configuration.CacheMode;
import org.jboss.cache.marshall.MethodCall;
import org.jboss.cache.marshall.MethodCallFactory;
import org.jboss.cache.marshall.MethodDeclarations;
@@ -27,12 +29,15 @@
private BuddyManager buddyManager;
private boolean usingBuddyReplication;
+ protected boolean defaultSynchronous;
public void setCache(CacheSPI cache)
{
super.setCache(cache);
buddyManager = cache.getBuddyManager();
usingBuddyReplication = buddyManager != null;
+ CacheMode mode = cache.getConfiguration().getCacheMode();
+ defaultSynchronous = (mode == CacheMode.REPL_SYNC || mode == CacheMode.INVALIDATION_SYNC);
}
/**
@@ -73,7 +78,11 @@
{
GlobalTransaction gtx = cache.getTransactionTable().get(tx);
TransactionEntry te = cache.getTransactionTable().get(gtx);
- if (te != null && te.isForceAsyncReplication()) sync = false;
+ if (te != null)
+ {
+ if (te.isForceAsyncReplication()) sync = false;
+ else if (te.isForceSyncReplication()) sync = true;
+ }
}
if (!sync && cache.getRPCManager().getReplicationQueue() != null && !usingBuddyReplication)
{
@@ -127,4 +136,16 @@
return false;
}
}
+
+ protected boolean isSynchronous(Option option)
+ {
+ if (option != null)
+ {
+ if (option.isForceSynchronous())
+ return true;
+ else if (option.isForceAsynchronous())
+ return false;
+ }
+ return defaultSynchronous;
+ }
}
\ No newline at end of file
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/InvalidationInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/InvalidationInterceptor.java 2007-09-18 03:22:49 UTC (rev 4477)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/InvalidationInterceptor.java 2007-09-18 03:23:34 UTC (rev 4478)
@@ -81,7 +81,7 @@
{
// the no-tx case:
//replicate an evict call.
- invalidateAcrossCluster(fqn, null);
+ invalidateAcrossCluster(fqn, null, isSynchronous(optionOverride));
}
}
}
@@ -117,7 +117,7 @@
{
try
{
- invalidateModifications(modifications, configuration.isNodeLockingOptimistic() ? getWorkspace(gtx) : null);
+ invalidateModifications(modifications, configuration.isNodeLockingOptimistic() ? getWorkspace(gtx) : null, defaultSynchronous);
}
catch (Throwable t)
{
@@ -175,8 +175,17 @@
return retval;
}
+ /**
+ * Same as <code>invalidateAcrossCluster(fqn, workspace, defaultSynchronous)</code>
+ * @deprecated use {@link #invalidateAcrossCluster(Fqn, TransactionWorkspace, boolean)
+ */
protected void invalidateAcrossCluster(Fqn fqn, TransactionWorkspace workspace) throws Throwable
{
+ invalidateAcrossCluster(fqn, workspace, defaultSynchronous);
+ }
+
+ protected void invalidateAcrossCluster(Fqn fqn, TransactionWorkspace workspace, boolean synchronous) throws Throwable
+ {
// increment invalidations counter if statistics maintained
if (configuration.getExposeManagementStatistics() && getStatisticsEnabled())
m_invalidations++;
@@ -188,14 +197,23 @@
if (log.isDebugEnabled()) log.debug("Cache [" + cache.getLocalAddress() + "] replicating " + call);
// voila, invalidated!
- replicateCall(call, configuration.getCacheMode() == Configuration.CacheMode.INVALIDATION_SYNC);
+ replicateCall(call, synchronous);
}
+ /**
+ * Same as <code>invalidateModifications(modifications, workspace, defaultSynchronous)</code>
+ * @deprecated use {@link #invalidateModifications(List<MethodCall>, TransactionWorkspace, boolean)
+ */
protected void invalidateModifications(List<MethodCall> modifications, TransactionWorkspace workspace) throws Throwable
{
+ invalidateModifications(modifications, workspace, defaultSynchronous);
+ }
+
+ protected void invalidateModifications(List<MethodCall> modifications, TransactionWorkspace workspace, boolean synchronous) throws Throwable
+ {
// optimise the calls list here.
Set<Fqn> modifiedFqns = optimisedIterator(modifications);
- for (Fqn fqn : modifiedFqns) invalidateAcrossCluster(fqn, workspace);
+ for (Fqn fqn : modifiedFqns) invalidateAcrossCluster(fqn, workspace, synchronous);
}
protected TransactionWorkspace getWorkspace(GlobalTransaction gtx)
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/ReplicationInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/ReplicationInterceptor.java 2007-09-18 03:22:49 UTC (rev 4477)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/ReplicationInterceptor.java 2007-09-18 03:23:34 UTC (rev 4478)
@@ -82,10 +82,11 @@
{
// NON-TRANSACTIONAL and CRUD method
if (log.isTraceEnabled()) log.trace("Non-tx crud meth");
+
+ // don't re-broadcast if we've received this from another cache in the cluster.
if (ctx.isOriginLocal())
{
- // don't re-broadcast if we've received this from anotehr cache in the cluster.
- handleReplicatedMethod(m, configuration.getCacheMode());
+ handleReplicatedMethod(m, isSynchronous(optionOverride));
}
}
else
@@ -96,7 +97,7 @@
return o;
}
- void handleReplicatedMethod(MethodCall m, Configuration.CacheMode mode) throws Throwable
+ void handleReplicatedMethod(MethodCall m, boolean synchronous) throws Throwable
{
if (log.isTraceEnabled())
{
@@ -104,7 +105,7 @@
configuration.getCacheMode() + ", exclude_self=" + true + ", timeout=" +
configuration.getSyncReplTimeout());
}
- if (mode == Configuration.CacheMode.REPL_ASYNC || m.getMethodId() == MethodDeclarations.putForExternalReadMethodLocal_id)
+ if (!synchronous || m.getMethodId() == MethodDeclarations.putForExternalReadMethodLocal_id)
{
// 2. Replicate change to all *other* members (exclude self !)
replicateCall(m, false);
17 years, 3 months
JBoss Cache SVN: r4477 - core/trunk/src/main/java/org/jboss/cache/config.
by jbosscache-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-09-17 23:22:49 -0400 (Mon, 17 Sep 2007)
New Revision: 4477
Modified:
core/trunk/src/main/java/org/jboss/cache/config/Option.java
Log:
[JBCACHE-1175] Option to force call sync/async
[JBCACHE-1178] Option to set lock timeout
Modified: core/trunk/src/main/java/org/jboss/cache/config/Option.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/Option.java 2007-09-18 03:21:42 UTC (rev 4476)
+++ core/trunk/src/main/java/org/jboss/cache/config/Option.java 2007-09-18 03:22:49 UTC (rev 4477)
@@ -25,6 +25,11 @@
private boolean forceWriteLock;
private boolean skipCacheStatusCheck;
+
+ private boolean forceAsynchronous;
+ private boolean forceSynchronous;
+
+ private int lockAcquisitionTimeout = -1;
/**
* @since 1.4.0
@@ -144,7 +149,89 @@
this.skipDataGravitation = skipDataGravitation;
}
+ /**
+ * Gets whether replication or invalidation should be done asynchronously,
+ * even if the cache is configured in a synchronous mode. Has no
+ * effect if the call is occuring within a transactional context.
+ *
+ * @return <code>true</code> if replication/invalidation should be done
+ * asynchronously; <code>false</code> if the default mode
+ * configured for the cache should be used.
+ */
+ public boolean isForceAsynchronous()
+ {
+ return forceAsynchronous;
+ }
+ /**
+ * Sets whether replication or invalidation should be done asynchronously,
+ * even if the cache is configured in a synchronous mode. Has no
+ * effect if the call is occuring within a transactional context.
+ *
+ * @param forceAsynchronous <code>true</code> if replication/invalidation
+ * should be done asynchronously; <code>false</code>
+ * if the default mode configured for the cache
+ * should be used.
+ */
+ public void setForceAsynchronous(boolean forceAsynchronous)
+ {
+ this.forceAsynchronous = forceAsynchronous;
+ }
+
+ /**
+ * Gets whether replication or invalidation should be done synchronously,
+ * even if the cache is configured in an asynchronous mode. Has no
+ * effect if the call is occuring within a transactional context.
+ *
+ * @return <code>true</code> if replication/invalidation should be done
+ * synchronously; <code>false</code> if the default mode
+ * configured for the cache should be used.
+ */
+ public boolean isForceSynchronous()
+ {
+ return forceSynchronous;
+ }
+
+ /**
+ * Sets whether replication or invalidation should be done synchronously,
+ * even if the cache is configured in an asynchronous mode. Has no
+ * effect if the call is occuring within a transactional context.
+ *
+ * @param forceAsynchronous <code>true</code> if replication/invalidation
+ * should be done synchronously; <code>false</code>
+ * if the default mode configured for the cache
+ * should be used.
+ */
+ public void setForceSynchronous(boolean forceSynchronous)
+ {
+ this.forceSynchronous = forceSynchronous;
+ }
+
+ /**
+ * Gets any lock acquisition timeout configured for the call.
+ *
+ * @return the time in ms that lock acquisition attempts should block
+ * before failing with a TimeoutException. A value < 0 indicates
+ * that the cache's default timeout should be used.
+ */
+ public int getLockAcquisitionTimeout()
+ {
+ return lockAcquisitionTimeout;
+ }
+
+ /**
+ * Sets any lock acquisition timeout configured for the call.
+ *
+ * @param lockAcquisitionTimeout the time in ms that lock acquisition
+ * attempts should block before failing with a
+ * TimeoutException. A value < 0 indicates
+ * that the cache's default timeout should be used.
+ */
+ public void setLockAcquisitionTimeout(int lockAcquisitionTimeout)
+ {
+ this.lockAcquisitionTimeout = lockAcquisitionTimeout;
+ }
+
public String toString()
{
return "Option{" +
@@ -152,8 +239,11 @@
", cacheModeLocal=" + cacheModeLocal +
", dataVersion=" + dataVersion +
", suppressLocking=" + suppressLocking +
+ ", lockAcquisitionTimeout=" + lockAcquisitionTimeout +
", forceDataGravitation=" + forceDataGravitation +
", skipDataGravitation=" + skipDataGravitation +
+ ", forceAsynchronous=" + forceAsynchronous +
+ ", forceSynchronous=" + forceSynchronous +
'}';
}
@@ -177,6 +267,9 @@
if (suppressLocking != option.suppressLocking) return false;
if (dataVersion != null ? !dataVersion.equals(option.dataVersion) : option.dataVersion != null) return false;
if (forceWriteLock != option.forceWriteLock) return false;
+ if (forceAsynchronous != option.forceAsynchronous) return false;
+ if (forceSynchronous != option.forceSynchronous) return false;
+ if (lockAcquisitionTimeout != option.lockAcquisitionTimeout) return false;
return true;
}
@@ -190,6 +283,9 @@
result = 29 * result + (forceDataGravitation ? 1 : 0);
result = 29 * result + (skipDataGravitation ? 1 : 0);
result = 29 * result + (forceWriteLock ? 0 : 1);
+ result = 29 * result + (forceAsynchronous ? 0 : 1);
+ result = 29 * result + (forceSynchronous ? 0 : 1);
+ result = 29 * result + (lockAcquisitionTimeout);
return result;
}
@@ -205,6 +301,9 @@
this.suppressLocking = false;
this.dataVersion = null;
this.forceWriteLock = false;
+ this.forceAsynchronous = false;
+ this.forceSynchronous = false;
+ this.lockAcquisitionTimeout = -1;
}
/**
17 years, 3 months
JBoss Cache SVN: r4476 - core/trunk/src/main/java/org/jboss/cache/transaction.
by jbosscache-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2007-09-17 23:21:42 -0400 (Mon, 17 Sep 2007)
New Revision: 4476
Modified:
core/trunk/src/main/java/org/jboss/cache/transaction/TransactionEntry.java
Log:
[JBCACHE-1175] Option to force call sync/async
Modified: core/trunk/src/main/java/org/jboss/cache/transaction/TransactionEntry.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/transaction/TransactionEntry.java 2007-09-17 23:08:24 UTC (rev 4475)
+++ core/trunk/src/main/java/org/jboss/cache/transaction/TransactionEntry.java 2007-09-18 03:21:42 UTC (rev 4476)
@@ -57,6 +57,7 @@
private Option option;
private boolean forceAsyncReplication = false;
+ private boolean forceSyncReplication = false;
/**
* List<MethodCall> of modifications ({@link MethodCall}). They will be replicated on TX commit
@@ -286,17 +287,51 @@
/**
* Sets the value of the forceAsyncReplication flag. Used by ReplicationInterceptor and OptimisticReplicationInterceptor
* when dealing with {@link org.jboss.cache.Cache#putForExternalRead(org.jboss.cache.Fqn,Object,Object)} within
- * a transactional context.
+ * a transactional context. Also used by OptimisticReplicationInterceptor when dealing
+ * with {@link org.jboss.cache.config.Option#setForceAsynchronous(boolean)} in a
+ * non-transactional context (i.e. with an implicit transaction).
*
* @param forceAsyncReplication value of forceAsyncReplication
*/
public void setForceAsyncReplication(boolean forceAsyncReplication)
{
this.forceAsyncReplication = forceAsyncReplication;
+ if (forceAsyncReplication)
+ {
+ forceSyncReplication = false;
+ }
}
+ /**
+ * Gets the value of the forceSyncReplication flag. Used by ReplicationInterceptor and OptimisticReplicationInterceptor
+ * when dealing with {@link org.jboss.cache.Cache#putForExternalRead(org.jboss.cache.Fqn,Object,Object)} within
+ * a transactional context.
+ *
+ * @return true if the forceAsyncReplication flag is set to true.
+ */
+ public boolean isForceSyncReplication()
+ {
+ return forceSyncReplication;
+ }
/**
+ * Sets the value of the forceSyncReplication flag. Used by ReplicationInterceptor and OptimisticReplicationInterceptor
+ * when dealing with {@link org.jboss.cache.Cache#putForExternalRead(org.jboss.cache.Fqn,Object,Object)} within
+ * a transactional context.
+ *
+ * @param forceAsyncReplication value of forceAsyncReplication
+ */
+ public void setForceSyncReplication(boolean forceSyncReplication)
+ {
+ this.forceSyncReplication = forceSyncReplication;
+ if (forceSyncReplication)
+ {
+ forceAsyncReplication = false;
+ }
+ }
+
+
+ /**
* Posts all undo operations to the CacheImpl.
*/
public void undoOperations(CacheSPI cache)
17 years, 3 months
JBoss Cache SVN: r4475 - support/trunk/common.
by jbosscache-commits@lists.jboss.org
Author: jason.greene(a)jboss.com
Date: 2007-09-17 19:08:24 -0400 (Mon, 17 Sep 2007)
New Revision: 4475
Modified:
support/trunk/common/pom.xml
Log:
Add linux ip6 workaround
Modified: support/trunk/common/pom.xml
===================================================================
--- support/trunk/common/pom.xml 2007-09-17 22:12:36 UTC (rev 4474)
+++ support/trunk/common/pom.xml 2007-09-17 23:08:24 UTC (rev 4475)
@@ -147,6 +147,10 @@
<name>jgroups.stack</name>
<value>udp</value>
</property>
+ <property>
+ <name>java.net.preferIPv4Stack</name>
+ <value>true</value>
+ </property>
</systemProperties>
<groups>functional</groups>
<forkMode>always</forkMode>
17 years, 3 months
JBoss Cache SVN: r4474 - pojo/trunk.
by jbosscache-commits@lists.jboss.org
Author: jason.greene(a)jboss.com
Date: 2007-09-17 18:12:36 -0400 (Mon, 17 Sep 2007)
New Revision: 4474
Modified:
pojo/trunk/pom.xml
Log:
Add prefer ipv4 stack
Modified: pojo/trunk/pom.xml
===================================================================
--- pojo/trunk/pom.xml 2007-09-17 19:29:06 UTC (rev 4473)
+++ pojo/trunk/pom.xml 2007-09-17 22:12:36 UTC (rev 4474)
@@ -72,6 +72,10 @@
<value>127.0.0.1</value>
</property>
<property>
+ <name>java.net.preferIPv4Stack</name>
+ <value>true</value>
+ </property>
+ <property>
<name>jgroups.stack</name>
<value>udp</value>
</property>
17 years, 3 months
JBoss Cache SVN: r4473 - support/trunk/common.
by jbosscache-commits@lists.jboss.org
Author: jason.greene(a)jboss.com
Date: 2007-09-17 15:29:06 -0400 (Mon, 17 Sep 2007)
New Revision: 4473
Modified:
support/trunk/common/pom.xml
Log:
Maven is a buggy piece of shit
Modified: support/trunk/common/pom.xml
===================================================================
--- support/trunk/common/pom.xml 2007-09-17 19:24:33 UTC (rev 4472)
+++ support/trunk/common/pom.xml 2007-09-17 19:29:06 UTC (rev 4473)
@@ -198,7 +198,7 @@
<version>2.3</version>
</plugin>
- <!-- javadocs -->
+ <!-- DISABLE - Maven doesn't build the classpath correctly
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
@@ -210,6 +210,7 @@
</links>
</configuration>
</plugin>
+ -->
<!-- JXR - links from javadocs and junit reports to an html representation of the code -->
<plugin>
17 years, 3 months
JBoss Cache SVN: r4472 - pojo/trunk/src/main/java/org/jboss/cache.
by jbosscache-commits@lists.jboss.org
Author: jason.greene(a)jboss.com
Date: 2007-09-17 15:24:33 -0400 (Mon, 17 Sep 2007)
New Revision: 4472
Removed:
pojo/trunk/src/main/java/org/jboss/cache/MyClass.java
Log:
Get rid of bogus class
Deleted: pojo/trunk/src/main/java/org/jboss/cache/MyClass.java
===================================================================
--- pojo/trunk/src/main/java/org/jboss/cache/MyClass.java 2007-09-17 18:00:58 UTC (rev 4471)
+++ pojo/trunk/src/main/java/org/jboss/cache/MyClass.java 2007-09-17 19:24:33 UTC (rev 4472)
@@ -1,60 +0,0 @@
-package org.jboss.cache;
-
-import org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap;
-
-/**
- * // TODO: Add Javadocs
- *
- * @author <a href="mailto:manik@jboss.org">Manik Surtani</a>
- * @since 2.0.0
- */
-public class MyClass
-{
- private int x, y;
-
-
- public MyClass()
- {
- // some dummy dependency
- //
-
- org.jgroups.Address addr = new org.jgroups.stack.IpAddress();
- }
-
- public MyClass(int x, int y)
- {
- this.x = x;
- this.y = y;
- }
-
-
- public int getX()
- {
- return x;
- }
-
- public void setX(int x)
- {
- this.x = x;
- }
-
- public int getY()
- {
- return y;
- }
-
- public void setY(int y)
- {
- this.y = y;
- }
-
- public int add()
- {
- return x + y;
- }
-
- public int multiply()
- {
- return x * y;
- }
-}
17 years, 3 months
JBoss Cache SVN: r4471 - in core/trunk: src/main/java/org/jboss/cache/util and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-09-17 14:00:58 -0400 (Mon, 17 Sep 2007)
New Revision: 4471
Removed:
core/trunk/src/main/java/org/jboss/cache/util/XMLUnitTestFormatter.java
Modified:
core/trunk/pom.xml
Log:
Added common-core as a dependency and removed unused JUnit output formatter
Modified: core/trunk/pom.xml
===================================================================
--- core/trunk/pom.xml 2007-09-17 17:57:11 UTC (rev 4470)
+++ core/trunk/pom.xml 2007-09-17 18:00:58 UTC (rev 4471)
@@ -58,6 +58,12 @@
<artifactId>jboss-javaee</artifactId>
<version>5.0.0.Beta3</version>
</dependency>
+
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-common-core</artifactId>
+ <version>2.2.1.GA</version>
+ </dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.easymock</groupId>
Deleted: core/trunk/src/main/java/org/jboss/cache/util/XMLUnitTestFormatter.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/util/XMLUnitTestFormatter.java 2007-09-17 17:57:11 UTC (rev 4470)
+++ core/trunk/src/main/java/org/jboss/cache/util/XMLUnitTestFormatter.java 2007-09-17 18:00:58 UTC (rev 4471)
@@ -1,20 +0,0 @@
-package org.jboss.cache.util;
-
-import org.apache.tools.ant.taskdefs.optional.junit.JUnitTest;
-import org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter;
-
-public class XMLUnitTestFormatter extends XMLJUnitResultFormatter
-{
-
- public void startTestSuite(JUnitTest test)
- {
- String configuration = (String) System.getProperties().get("jgroups.stack");
-
- if (configuration != null && !configuration.trim().equals(""))
- {
- test.setName(test.getName() + "(" + configuration + ")");
- }
-
- super.startTestSuite(test);
- }
-}
17 years, 3 months
JBoss Cache SVN: r4470 - core/trunk.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2007-09-17 13:57:11 -0400 (Mon, 17 Sep 2007)
New Revision: 4470
Modified:
core/trunk/pom.xml
Log:
JBCACHE-1127 and removed MC/AOP deps
Modified: core/trunk/pom.xml
===================================================================
--- core/trunk/pom.xml 2007-09-17 17:30:49 UTC (rev 4469)
+++ core/trunk/pom.xml 2007-09-17 17:57:11 UTC (rev 4470)
@@ -56,7 +56,7 @@
<dependency>
<groupId>org.jboss.javaee</groupId>
<artifactId>jboss-javaee</artifactId>
- <version>4.0.0.Beta3</version>
+ <version>5.0.0.Beta3</version>
</dependency>
<!-- test dependencies -->
<dependency>
17 years, 3 months