Skip to content

Commit e317c1b

Browse files
committed
Optimize jetty startup when dealing with directories on the classpath
+ Jetty startup is very, very slow when there are exploded directories on the classpath + Jetty startup is rather fast when there are only JAR archives on the classpath + Created a new optimized webappclassloader that detects archives on the classpath, creates JAR archives for them and adds the archive to the classpath + Possibility to exclude specical directories via regular expressions (for example .*web.* to leave web modules as they are to enable tapestry live reloading) + Extend the eclipse plugin to enable/disable the usage of the optimized class loader + Extend the eclipse plugin to define the exclusion patterns + Change everything to java 1.8 (source and compile level) + Adapt .travis.yml to java 8
1 parent 29ca4ff commit e317c1b

19 files changed

Lines changed: 4526 additions & 4101 deletions

File tree

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
language: java
1+
sudo: required
2+
3+
language: java
4+
5+
jdk:
6+
- oraclejdk8
7+
8+
addons:
9+
apt:
10+
packages:
11+
- oracle-java8-installer
12+
- oracle-java8-set-default

plugins/eclipse-jetty-launcher/pom.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
<scope>provided</scope>
6060
<optional>true</optional>
6161
</dependency>
62+
63+
<dependency>
64+
<groupId>net.sourceforge.eclipsejetty</groupId>
65+
<artifactId>eclipse-jetty-optimized-webappclassloader</artifactId>
66+
<version>${project.version}</version>
67+
<scope>provided</scope>
68+
</dependency>
6269

6370
<dependency>
6471
<groupId>junit</groupId>
@@ -80,8 +87,8 @@
8087
<groupId>org.apache.maven.plugins</groupId>
8188
<artifactId>maven-compiler-plugin</artifactId>
8289
<configuration>
83-
<source>1.5</source>
84-
<target>1.5</target>
90+
<source>1.8</source>
91+
<target>1.8</target>
8592
</configuration>
8693
</plugin>
8794

@@ -103,7 +110,8 @@
103110
eclipse-jetty-starters-jetty8,
104111
eclipse-jetty-starters-jetty9,
105112
eclipse-jetty-starters-console,
106-
eclipse-jetty-starters-util</includeArtifactIds>
113+
eclipse-jetty-starters-util,
114+
eclipse-jetty-optimized-webappclassloader</includeArtifactIds>
107115
<outputDirectory>${project.build.directory}/../lib</outputDirectory>
108116
<stripVersion>true</stripVersion>
109117
</configuration>

plugins/eclipse-jetty-launcher/src/main/java/net/sourceforge/eclipsejetty/Messages.java

Lines changed: 218 additions & 213 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)