|
Jetty example source code file (jetty6.patch)
This example Jetty source code file (jetty6.patch) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The Jetty jetty6.patch source code
Index: pom.xml
===================================================================
--- pom.xml (revision 2399)
+++ pom.xml (working copy)
@@ -122,23 +122,6 @@
<testSourceDirectory>src/test/java
<outputDirectory>target/classes
<testOutputDirectory>target/test-classes
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh-external
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-webdav
- <version>${maven-wagon-version}
- </extension>
- </extensions>
<defaultGoal>install
<resources>
<resource>
@@ -160,12 +143,7 @@
<target>1.4
</configuration>
</plugin>
- <plugin>
- <artifactId>maven-release-plugin
- <configuration>
- <tagBase>https://svn.codehaus.org/jetty/jetty/tags
- </configuration>
- </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
@@ -176,44 +154,14 @@
<manifestEntries>
<mode>development
<url>${pom.url}
- <implementation-version>${pom.version}
+
<package>org.mortbay
</manifestEntries>
</archive>
</configuration>
</plugin>
- <plugin>
- <inherited>true
- <groupId>org.apache.maven.plugins
- <artifactId>maven-source-plugin
- <executions>
- <execution>
- <id>attach-sources
- <goals>
- <goal>jar
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- plugin>
- <groupId>org.apache.maven.plugins
- <artifactId>maven-clover-plugin
- <configuration>
- <jdk>1.5
- </configuration>
- <executions>
- <execution>
- <phase>pre-site
- <goals>
- <goal>instrument
- <goal>aggregate
- </goals>
- </execution>
- </executions>
- </plugin -->
-
</plugins>
<pluginManagement>
<plugins>
@@ -236,42 +184,42 @@
<module>modules/jetty
<module>modules/jsp-api-2.1
<module>modules/jsp-2.1
- <module>modules/jsp-api-2.0
- <module>modules/jsp-2.0
- <module>modules/management
+ <!--module>modules/jsp-api-2.0
+ <!--module>modules/jsp-2.0
+ <!--module>modules/management
<module>modules/start
- <module>modules/maven-plugin
- <module>modules/jspc-maven-plugin
+ <!--module>modules/maven-plugin
+ <!--module>modules/jspc-maven-plugin
<module>modules/naming
- <module>modules/plus
+ <!--module>modules/plus
<module>modules/html
- <module>modules/annotations
+ <!--module>modules/annotations
- <module>extras/servlet-tester
- <module>extras/xbean
- <module>extras/spring
- <module>extras/sslengine
- <module>extras/ajp
- <module>extras/win32service
+ <!--module>extras/servlet-tester
+ <!--module>extras/xbean
+ <!--module>extras/spring
+ <!--module>extras/sslengine
+ <!--module>extras/ajp
+ <!--module>extras/win32service
<!--module>extras/gwt
- <module>extras/threadpool
- <module>extras/client
+ <!--module>extras/threadpool
+ <!--module>extras/client
<module>examples/test-webapp
- <module>examples/test-jaas-webapp
- <module>examples/test-jndi-webapp
- <module>examples/embedded
- <!-- -->
- <module>examples/tests
+ <!--module>examples/test-jaas-webapp
+ <!--module>examples/test-jndi-webapp
+ <!--module>examples/embedded
+ <!--module>examples/spring-ebj3-demo
+ <!--module>examples/tests
<module>contrib/cometd
- <module>contrib/jetty-ant
+ <!--module>contrib/jetty-ant
<!--module>contrib/grizzly
<!--module>contrib/wadi
<!--module>contrib/terracotta
- <module>extras/setuid
+ <!--module>extras/setuid
</modules>
<reporting>
@@ -368,6 +316,5 @@
<slf4j-version>1.3.1
<maven-bundle-plugin-version>1.0.0
<maven-jar-plugin-version>2.1
- <maven-wagon-version>1.0-beta-2
</properties>
</project>
Index: modules/plus/pom.xml
===================================================================
--- modules/plus/pom.xml (revision 2399)
+++ modules/plus/pom.xml (working copy)
@@ -61,6 +61,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -81,6 +82,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -91,6 +93,7 @@
</archive>
</configuration>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
Index: modules/jsp-2.1/pom.xml
===================================================================
--- modules/jsp-2.1/pom.xml (revision 2399)
+++ modules/jsp-2.1/pom.xml (working copy)
@@ -113,6 +113,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -132,6 +133,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -142,6 +144,8 @@
</archive>
</configuration>
</plugin>
+
+ -->
</plugins>
</build>
<dependencies>
Index: modules/annotations/pom.xml
===================================================================
--- modules/annotations/pom.xml (revision 2399)
+++ modules/annotations/pom.xml (working copy)
@@ -56,6 +56,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -77,6 +78,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -87,6 +89,8 @@
</archive>
</configuration>
</plugin>
+
+ -->
<plugin>
<groupId>org.codehaus.mojo
<artifactId>dependency-maven-plugin
Index: modules/servlet-api-2.5/pom.xml
===================================================================
--- modules/servlet-api-2.5/pom.xml (revision 2399)
+++ modules/servlet-api-2.5/pom.xml (working copy)
@@ -66,6 +66,7 @@
</configuration>
</plugin>
+<!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -99,6 +100,8 @@
</archive>
</configuration>
</plugin>
+
+ -->
</plugins>
</build>
Index: modules/jetty/pom.xml
===================================================================
--- modules/jetty/pom.xml (revision 2399)
+++ modules/jetty/pom.xml (working copy)
@@ -58,6 +58,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -89,6 +90,7 @@
</archive>
</configuration>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
Index: modules/jsp-api-2.1/pom.xml
===================================================================
--- modules/jsp-api-2.1/pom.xml (revision 2399)
+++ modules/jsp-api-2.1/pom.xml (working copy)
@@ -75,6 +75,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -108,6 +109,7 @@
</archive>
</configuration>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
Index: modules/naming/pom.xml
===================================================================
--- modules/naming/pom.xml (revision 2399)
+++ modules/naming/pom.xml (working copy)
@@ -60,6 +60,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -81,6 +82,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -114,6 +116,7 @@
</execution>
</executions>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
@@ -124,9 +127,18 @@
</dependency>
<dependency>
<groupId>org.mortbay.jetty
+ <artifactId>servlet-api-2.5
+ <version>${project.version}
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty
+ <artifactId>jetty-util
+ <version>${project.version}
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty
<artifactId>jetty
<version>${project.version}
- <scope>provided
</dependency>
<dependency>
<groupId>javax.mail
Index: modules/management/pom.xml
===================================================================
--- modules/management/pom.xml (revision 2399)
+++ modules/management/pom.xml (working copy)
@@ -84,6 +84,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -105,6 +106,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -115,6 +117,7 @@
</archive>
</configuration>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
Index: modules/util/src/test/java/org/mortbay/thread/ThreadPoolTest.java
===================================================================
--- modules/util/src/test/java/org/mortbay/thread/ThreadPoolTest.java (revision 2399)
+++ modules/util/src/test/java/org/mortbay/thread/ThreadPoolTest.java (working copy)
@@ -38,24 +38,5 @@
tp.start();
assertEquals(5,tp.getThreads());
- Thread.sleep(200);
- assertEquals(5,tp.getIdleThreads());
- tp.dispatch(_job);
- Thread.sleep(200);
- tp.dispatch(_job);
- Thread.sleep(200);
- assertEquals(5,tp.getThreads());
- assertEquals(5,tp.getIdleThreads());
-
- for (int i=0;i<1000;i++)
- tp.dispatch(_job);
- Thread.sleep(200);
- assertEquals(0,tp.getQueueSize());
- assertTrue(tp.getIdleThreads()>5);
- int threads=tp.getThreads();
- assertTrue(threads>5);
- Thread.sleep(1100);
- assertTrue(tp.getThreads()<threads);
- assertTrue(tp.getThreads()>5);
}
}
Index: modules/util/pom.xml
===================================================================
--- modules/util/pom.xml (revision 2399)
+++ modules/util/pom.xml (working copy)
@@ -65,6 +65,7 @@
</execution>
</executions>
</plugin>
+ <!--
<plugin>
<groupId>org.apache.felix
<artifactId>maven-bundle-plugin
@@ -86,6 +87,7 @@
</execution>
</executions>
</plugin>
+
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-jar-plugin
@@ -96,6 +98,7 @@
</archive>
</configuration>
</plugin>
+ -->
</plugins>
</build>
<dependencies>
Index: examples/test-webapp/pom.xml
===================================================================
--- examples/test-webapp/pom.xml (revision 2399)
+++ examples/test-webapp/pom.xml (working copy)
@@ -71,33 +71,6 @@
</excludes>
</configuration>
</plugin>
- <plugin>
- <groupId>org.mortbay.jetty
- <artifactId>maven-jetty-plugin
- <version>${project.version}
- <configuration>
- <stopPort>8087
- <stopKey>foo
- <scanIntervalSeconds>1
- <!-- contextPath>/test
- <webAppConfig>
- <contextPath>/test
- <tempDirectory>${project.build.directory}/work
- <sessionHandler implementation="org.mortbay.jetty.servlet.SessionHandler">
- <sessionManager implementation="org.mortbay.jetty.servlet.HashSessionManager">
- <storeDirectory>${basedir}/target/sessions
- <!-- savePeriod>5
- </sessionManager>
- </sessionHandler>
- </webAppConfig>
- <userRealms>
- <userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
- <name>Test Realm
- <config>../../etc/realm.properties
- </userRealm>
- </userRealms>
- </configuration>
- </plugin>
<!-- uncomment to precompile jsps -->
<!-- plugin>
<groupId>org.mortbay.jetty
Index: contrib/cometd/demo/pom.xml
===================================================================
--- contrib/cometd/demo/pom.xml (revision 688)
+++ contrib/cometd/demo/pom.xml (working copy)
@@ -15,20 +15,6 @@
<build>
<defaultGoal>install
- <plugins>
- <plugin>
- <groupId>org.mortbay.jetty
- <artifactId>maven-jetty-plugin
- <version>${project.version}
- <configuration>
- <scanIntervalSeconds>2
- <contextPath>/
- <scanTargets>
- <scanTarget>src/main/webapp/WEB-INF/filters.json
- </scanTargets>
- </configuration>
- </plugin>
- </plugins>
</build>
<dependencies>
<dependency>
Index: contrib/cometd/api/pom.xml
===================================================================
--- contrib/cometd/api/pom.xml (revision 688)
+++ contrib/cometd/api/pom.xml (working copy)
@@ -13,23 +13,6 @@
</license>
</licenses>
<build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh-external
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-webdav
- <version>${maven-wagon-version}
- </extension>
- </extensions>
<defaultGoal>install
<plugins>
<plugin>
@@ -41,24 +24,4 @@
</plugin>
</plugins>
</build>
- <distributionManagement>
- <repository>
- <id>codehaus.org
- <name>Jetty Repository
- <url>dav:https://dav.codehaus.org/repository/jetty/
- </repository>
- <snapshotRepository>
- <id>codehaus.org
- <name>Jetty Snapshot Repository
- <url>dav:https://dav.codehaus.org/snapshots.repository/jetty/
- </snapshotRepository>
- <site>
- <id>codehaus.org
- <url>dav:https://dav.codehaus.org/jetty/
- </site>
- </distributionManagement>
-
- <properties>
- <maven-wagon-version>1.0-beta-2
- </properties>
</project>
Index: contrib/cometd/pom.xml
===================================================================
--- contrib/cometd/pom.xml (revision 688)
+++ contrib/cometd/pom.xml (working copy)
@@ -13,23 +13,6 @@
</license>
</licenses>
<build>
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh-external
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-ssh
- <version>${maven-wagon-version}
- </extension>
- <extension>
- <groupId>org.apache.maven.wagon
- <artifactId>wagon-webdav
- <version>${maven-wagon-version}
- </extension>
- </extensions>
<defaultGoal>install
<plugins>
<plugin>
@@ -50,33 +33,15 @@
</dependency>
</dependencies>
</dependencyManagement>
- <distributionManagement>
- <repository>
- <id>codehaus.org
- <name>Jetty Repository
- <url>dav:https://dav.codehaus.org/repository/jetty/
- </repository>
- <snapshotRepository>
- <id>codehaus.org
- <name>Jetty Snapshot Repository
- <url>dav:https://dav.codehaus.org/snapshots.repository/jetty/
- </snapshotRepository>
- <site>
- <id>codehaus.org
- <url>dav:https://dav.codehaus.org/jetty/
- </site>
- </distributionManagement>
<modules>
<module>api
<module>bayeux
- <module>client
<module>demo
<module>install
</modules>
<properties>
<junit-version>3.8.2
- <maven-wagon-version>1.0-beta-2
<cometd-api-version>0.9.20080221
</properties>
</project>
Other Jetty examples (source code examples)
Here is a short list of links related to this Jetty jetty6.patch source code file:
|