Author: raffaeleguidi
Date: Sun Sep 16 22:51:47 2012
New Revision: 1385391
URL: http://svn.apache.org/viewvc?rev=1385391&view=rev
Log:
modified karaf configuration to allow using sun.misc.Unsafe
Modified:
directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
Modified:
directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
URL:
http://svn.apache.org/viewvc/directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java?rev=1385391&r1=1385390&r2=1385391&view=diff
==============================================================================
---
directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
(original)
+++
directmemory/trunk/itests/osgi/src/test/java/org/apache/directmemory/tests/osgi/DirectMemoryOsgiTestSupport.java
Sun Sep 16 22:51:47 2012
@@ -177,6 +177,12 @@ public class DirectMemoryOsgiTestSupport
mavenBundle().groupId( "org.apache.directmemory" ).artifactId(
"directmemory-cache" ).version(
System.getProperty( "direct.memory.version" ) ) );
List<Option> options = new ArrayList<Option>( mavenOptions );
+
+
options.add(vmOption("-Dorg.osgi.framework.system.packages.extra=sun.misc"));
+ // ^^^
+ //needed to avoid:
+ //org.osgi.framework.BundleException: The bundle
"directmemory-cache_0.2.0.SNAPSHOT [12]" could not be resolved. Reason: Missing
Constraint: Import-Package: sun.misc; version="0.0.0"
+
if ( Boolean.getBoolean( "osgi.debug" ) )
{
options.add( enabledDebuggingOnPort( Integer.getInteger(
"osgi.debug.port" ),