Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
This commit is contained in:
commit
c53bc0709c
|
@ -29,12 +29,11 @@ public interface ByteBufferPool
|
|||
{
|
||||
/**
|
||||
* <p>Requests a {@link ByteBuffer} of the given size.</p>
|
||||
* <p>The returned buffer may have a bigger capacity than the size being
|
||||
* requested but it will have the limit set to the given size.</p>
|
||||
* <p>The returned buffer may have a bigger capacity than the size being requested.</p>
|
||||
*
|
||||
* @param size the size of the buffer
|
||||
* @param direct whether the buffer must be direct or not
|
||||
* @return the requested buffer
|
||||
* @return a buffer with at least the requested capacity, with position and limit set to 0.
|
||||
* @see #release(ByteBuffer)
|
||||
*/
|
||||
ByteBuffer acquire(int size, boolean direct);
|
||||
|
|
|
@ -26,7 +26,7 @@ public interface RetainableByteBufferPool
|
|||
* Acquires a memory buffer from the pool.
|
||||
* @param size The size of the buffer. The returned buffer will have at least this capacity.
|
||||
* @param direct true if a direct memory buffer is needed, false otherwise.
|
||||
* @return a memory buffer.
|
||||
* @return a memory buffer with position and size set to 0.
|
||||
*/
|
||||
RetainableByteBuffer acquire(int size, boolean direct);
|
||||
|
||||
|
|
|
@ -503,4 +503,11 @@ public class MavenWebAppContext extends WebAppContext
|
|||
LOG.warn("Problem initializing cdi", e);
|
||||
}
|
||||
}
|
||||
|
||||
// need to be overridden to avoid Maven reflection issues with super class and override method
|
||||
public void setExtraClasspath(String extraClasspath) throws IOException
|
||||
{
|
||||
super.setExtraClasspath(extraClasspath);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,7 +14,12 @@
|
|||
<properties>
|
||||
<osgi-version>3.18.0</osgi-version>
|
||||
<osgi-services-version>3.10.200</osgi-services-version>
|
||||
<osgi-util-version>3.6.100</osgi-util-version>
|
||||
<osgi-util-version>3.7.1</osgi-util-version>
|
||||
<osgi-util-function-version>1.2.0</osgi-util-function-version>
|
||||
<osgi-util-promise-version>1.2.0</osgi-util-promise-version>
|
||||
<osgi-util-measurement-version>1.0.2</osgi-util-measurement-version>
|
||||
<osgi-util-position-version>1.0.1</osgi-util-position-version>
|
||||
<osgi-util-xml-version>1.0.2</osgi-util-xml-version>
|
||||
<equinox-http-servlet-version>1.0.0-v20070606</equinox-http-servlet-version>
|
||||
</properties>
|
||||
|
||||
|
|
|
@ -135,6 +135,30 @@
|
|||
<version>1.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.util.promise</artifactId>
|
||||
<version>${osgi-util-promise-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.util.measurement</artifactId>
|
||||
<version>${osgi-util-measurement-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.util.position</artifactId>
|
||||
<version>${osgi-util-position-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.util.xml</artifactId>
|
||||
<version>${osgi-util-xml-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- Jetty OSGi Deps -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
|
|
|
@ -164,6 +164,11 @@ public class TestOSGiUtil
|
|||
*/
|
||||
res.add(mavenBundle().groupId("org.eclipse.jetty.toolchain").artifactId("jetty-jakarta-servlet-api").versionAsInProject().start());
|
||||
res.add(mavenBundle().groupId("org.eclipse.platform").artifactId("org.eclipse.osgi.util").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.osgi").artifactId("org.osgi.util.function").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.osgi").artifactId("org.osgi.util.promise").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.osgi").artifactId("org.osgi.util.measurement").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.osgi").artifactId("org.osgi.util.position").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.osgi").artifactId("org.osgi.util.xml").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.eclipse.platform").artifactId("org.eclipse.osgi.services").versionAsInProject());
|
||||
res.add(mavenBundle().groupId("org.ow2.asm").artifactId("asm").versionAsInProject().start());
|
||||
res.add(mavenBundle().groupId("org.ow2.asm").artifactId("asm-commons").versionAsInProject().start());
|
||||
|
|
|
@ -60,6 +60,31 @@
|
|||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-random-dependency</id>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>copy</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<version>@junit.version@</version>
|
||||
<type>jar</type>
|
||||
<outputDirectory>${project.build.directory}/dependency</outputDirectory>
|
||||
<destFileName>junit-jupiter-engine.jar</destFileName>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
|
@ -92,6 +117,9 @@
|
|||
<goal>start</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<webApp>
|
||||
<extraClasspath>${project.build.directory}/dependency/junit-jupiter-engine.jar</extraClasspath>
|
||||
</webApp>
|
||||
<contextXml>${basedir}/src/config/context.xml</contextXml>
|
||||
<systemProperties>
|
||||
<jetty.port.file>${jetty.port.file}</jetty.port.file>
|
||||
|
|
Loading…
Reference in New Issue