Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Jetty/Howto/Upgrade from Jetty 6 to Jetty 7"
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Jetty | + | {{Jetty Howto |
− | + | ||
|introduction = | |introduction = | ||
− | The jetty6to7 converter tool will help convert your | + | With the move to Eclipse, the Jetty 7 code base was refactored; this has several long-term benefits, but means that configuration files and code which use Jetty 6 classes must first be converted to Jetty 7. The jetty6to7 converter tool will help you convert your files. For classes no longer available on Jetty 7 (e.g <tt>org.mortbay.jetty.security.HashUserRealm</tt>), the tool will offer recommendations on how to proceed. |
− | + | ||
− | For classes no longer available on Jetty 7 (e.g <tt>org.mortbay.jetty.security.HashUserRealm</tt>), the tool will offer recommendations on how to proceed. | + | |
|steps = | |steps = | ||
Line 11: | Line 8: | ||
java -jar jetty6to7-1.0.jar /path/to/your/files/or/dir | java -jar jetty6to7-1.0.jar /path/to/your/files/or/dir | ||
− | + | The tool modifies your files; it does not create new copies. | |
− | + | ||
− | + | ||
− | + | ||
|examples = | |examples = | ||
− | === | + | === Converting a single file === |
− | + | java -jar jetty6to7-1.0.jar src/main/config/jetty.xml | |
− | === | + | === Converting multiple files and directories === |
− | + | java -jar jetty6to7-1.0.jar src/main/config/jetty.xml src/main/etc/jetty-env.xml src/main/java | |
− | === | + | === Viewing available options === |
− | + | java -jar jetty6to7-1.0.jar | |
+ | |||
+ | === Converting with options === | ||
+ | java -jar jetty6to7-1.0.jar -Dconversion.recursive=false src/main/java | ||
+ | |||
+ | | more = | ||
+ | * [[Jetty/Reference/Dependencies|Jetty Jars and Dependencies]] | ||
+ | * [http://blogs.webtide.com/gregw/entry/jetty_6_jetty_7_and Roadmap for Jetty 6, Jetty 7, and Jetty 8] | ||
+ | * [[Jetty/Starting/Porting to Jetty 7/Packages and Classes|Reference to package and classnames which have been refactored]] | ||
}} | }} | ||
+ | |||
+ | [[Category: Jetty Porting]] | ||
+ | [[Category: Jetty Starting]] |
Revision as of 17:35, 21 November 2009
Contents
Introduction
With the move to Eclipse, the Jetty 7 code base was refactored; this has several long-term benefits, but means that configuration files and code which use Jetty 6 classes must first be converted to Jetty 7. The jetty6to7 converter tool will help you convert your files. For classes no longer available on Jetty 7 (e.g org.mortbay.jetty.security.HashUserRealm), the tool will offer recommendations on how to proceed.
Steps
- Download the jetty6to7 converter tool (~19kb).
- Run:
java -jar jetty6to7-1.0.jar /path/to/your/files/or/dir
The tool modifies your files; it does not create new copies.
Examples
Converting a single file
java -jar jetty6to7-1.0.jar src/main/config/jetty.xml
Converting multiple files and directories
java -jar jetty6to7-1.0.jar src/main/config/jetty.xml src/main/etc/jetty-env.xml src/main/java
Viewing available options
java -jar jetty6to7-1.0.jar
Converting with options
java -jar jetty6to7-1.0.jar -Dconversion.recursive=false src/main/java