Hello,
Great news again !
I have attached a patch so that I can build the extension. It includes some other fixes to have maven to work.
I have tested Netty but it seems that status code is not written properly.
Rémi
On Wed, Oct 14, 2009 at 09:20, Jerome Louvel
<[hidden email]> wrote:
Hi
all,
I’m
glad to let you know that a Netty extension has been contributed to the Restlet
Framework by Gabriel Ciuloaica. Netty was created by Trustin Lee, the founder
of Apache MINA, and is part of JBoss Community: http://jboss.org/netty/
The
extension is currently in the Restlet Incubator but it will likely become part
of Restlet 2.0 M6. Gabriel also becomes the official maintainer of this new
extension: http://www.restlet.org/about/team
I
see this connector becoming a serious alternative to our Jetty based connectors
for demanding production applications. Thanks Gabriel for the contribution and
welcome as a new Restlet committer!
[netty-towork.patch]
Index: build/tmpl/poms/org.restlet.ext.netty.pom
===================================================================
--- build/tmpl/poms/org.restlet.ext.netty.pom (revision 0)
+++ build/tmpl/poms/org.restlet.ext.netty.pom (revision 0)
@@ -0,0 +1,28 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>@parent-group-id@</groupId>
+ <artifactId>@parent-artifact-id@</artifactId>
+ <version>@parent-version@</version>
+ </parent>
+
+
+ <artifactId>org.restlet.ext.netty</artifactId>
+ <name>Restlet Extension: Netty</name>
+ <description>Integration with Netty framework</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>${groupId}</groupId>
+ <artifactId>org.restlet</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.netty</groupId>
+ <artifactId>netty</artifactId>
+ <version>${lib-netty-version}</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+</project>
Index: build/tmpl/poms/org.restlet.ext.spring.pom
===================================================================
--- build/tmpl/poms/org.restlet.ext.spring.pom (revision 5479)
+++ build/tmpl/poms/org.restlet.ext.spring.pom (working copy)
@@ -32,27 +32,27 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
- <version>${lib-spring-version}</version>
+ <version>${lib-spring-core-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
- <version>${lib-spring-version}</version>
+ <version>${lib-spring-context-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
- <version>${lib-spring-version}</version>
+ <version>${lib-spring-beans-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
- <version>${lib-spring-version}</version>
+ <version>${lib-spring-web-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
- <version>${lib-spring-version}</version>
+ <version>${lib-spring-webmvc-version}</version>
</dependency>
</dependencies>
</project>
Index: libraries/org.jboss.netty_3.1/library.xml
===================================================================
--- libraries/org.jboss.netty_3.1/library.xml (revision 5479)
+++ libraries/org.jboss.netty_3.1/library.xml (working copy)
@@ -1,7 +1,7 @@
<library id="netty">
<package name="org.jboss.netty" />
<version>3.1</version>
- <release>5</release>
+ <release>5.GA</release>
<distributions>
<distribution id="classic" />
</distributions>