[jboss-cvs] JBossAS SVN: r95709 - projects/jboss-osgi/trunk/reactor/jta/src/main/java/org/jboss/osgi/jta.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 28 17:26:47 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-28 17:26:47 -0400 (Wed, 28 Oct 2009)
New Revision: 95709
Modified:
projects/jboss-osgi/trunk/reactor/jta/src/main/java/org/jboss/osgi/jta/TransactionCapability.java
Log:
Use target/ObjectStore if it exists
Modified: projects/jboss-osgi/trunk/reactor/jta/src/main/java/org/jboss/osgi/jta/TransactionCapability.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/jta/src/main/java/org/jboss/osgi/jta/TransactionCapability.java 2009-10-28 21:23:55 UTC (rev 95708)
+++ projects/jboss-osgi/trunk/reactor/jta/src/main/java/org/jboss/osgi/jta/TransactionCapability.java 2009-10-28 21:26:47 UTC (rev 95709)
@@ -23,6 +23,8 @@
//$Id$
+import java.io.File;
+
import javax.transaction.TransactionManager;
import org.jboss.osgi.spi.capability.Capability;
@@ -46,7 +48,8 @@
{
super(TransactionManager.class.getName());
- addSystemProperty(Environment.OBJECTSTORE_DIR, "target/ObjectStore");
+ if (new File("target").exists())
+ addSystemProperty(Environment.OBJECTSTORE_DIR, "target/ObjectStore");
addBundle("bundles/jboss-osgi-jta.jar");
}
More information about the jboss-cvs-commits
mailing list