kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 34d0d33aadac03bcd097887323d089fe0208b2bdcd1ed41a95b0b4510dcd1028 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-15 16:42 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-19 13:23 -05:00 |
| Parents | 52c6910bffed |
2 files changed
modified driver-tests/osgi/pom.xml +1 −1
| @@ -31,7 +31,7 @@ | ||
| 31 | 31 | |
| 32 | 32 | <properties> |
| 33 | 33 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 34 | - <felix.version>4.6.0</felix.version> | |
| 34 | + <felix.version>4.4.1</felix.version> | |
| 35 | 35 | <!-- more recent version require JDK7+ --> |
| 36 | 36 | <pax-exam.version>3.6.0</pax-exam.version> |
| 37 | 37 | <url.version>2.4.0</url.version> |
modified driver-tests/osgi/src/test/java/com/datastax/driver/osgi/BundleOptions.java +13 −1
| @@ -18,12 +18,15 @@ | ||
| 18 | 18 | import com.datastax.driver.core.CCMBridge; |
| 19 | 19 | import com.datastax.driver.core.ProtocolOptions; |
| 20 | 20 | import com.datastax.driver.core.TestUtils; |
| 21 | +import com.google.common.collect.Lists; | |
| 21 | 22 | import org.ops4j.pax.exam.Option; |
| 22 | 23 | import org.ops4j.pax.exam.options.CompositeOption; |
| 23 | 24 | import org.ops4j.pax.exam.options.MavenArtifactProvisionOption; |
| 24 | 25 | import org.ops4j.pax.exam.options.UrlProvisionOption; |
| 25 | 26 | import org.ops4j.pax.exam.util.PathUtils; |
| 26 | 27 | |
| 28 | +import java.util.List; | |
| 29 | + | |
| 27 | 30 | import static com.datastax.driver.osgi.VersionProvider.projectVersion; |
| 28 | 31 | import static org.ops4j.pax.exam.CoreOptions.*; |
| 29 | 32 | |
| @@ -115,7 +118,7 @@ | ||
| 115 | 118 | |
| 116 | 119 | @Override |
| 117 | 120 | public Option[] getOptions() { |
| 118 | - return options( | |
| 121 | + List<Option> options = Lists.newArrayList( | |
| 119 | 122 | // Delegate javax.security.cert to the parent classloader. javax.security.cert.X509Certificate is used in |
| 120 | 123 | // io.netty.util.internal.EmptyArrays, but not directly by the driver. |
| 121 | 124 | bootDelegationPackage("javax.security.cert"), |
| @@ -130,6 +133,15 @@ | ||
| 130 | 133 | systemPackages("org.testng", "org.junit", "org.junit.runner", "org.junit.runner.manipulation", |
| 131 | 134 | "org.junit.runner.notification", "com.jcabi.manifests") |
| 132 | 135 | ); |
| 136 | + if (CCMBridge.isWindows()) { | |
| 137 | + // Workaround for Felix + Windows Server 2012. Felix does not properly alias 'windowsserver2012' | |
| 138 | + // to 'win32', because of this some native libraries may fail to load. To work around this, force | |
| 139 | + // the os.name property to win32 if on a windows platform. | |
| 140 | + // See: https://issues.apache.org/jira/browse/FELIX-5184 | |
| 141 | + options.add(systemProperty("os.name").value("win32")); | |
| 142 | + } | |
| 143 | + | |
| 144 | + return options.toArray(new Option[options.size()]); | |
| 133 | 145 | } |
| 134 | 146 | }; |
| 135 | 147 | } |