Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350634

Summary: Cleanup FileResource construction
Product: [RT] Jetty Reporter: Michael Gorovoy <mgorovoy>
Component: serverAssignee: Greg Wilkins <gregw>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jetty-inbox
Version: 7.4.2   
Target Milestone: 7.2.x   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Gorovoy CLA 2011-06-28 16:27:09 EDT
Expose a FileResource(File) constructor that could be used to resolve ambiguities and avoid JVM encoding deficiencies. Remove Java 1.4 hack from FileResource(URL) constructor and make it work using standard Java methods.
Comment 1 Michael Gorovoy CLA 2011-06-28 21:00:19 EDT
Committed r3434.
Comment 2 Michael Gorovoy CLA 2011-07-07 19:14:16 EDT
Changes were reverted.
Comment 3 Greg Wilkins CLA 2011-09-06 00:28:35 EDT
a File is used by Resource.newResource(String)
the gains for a FileResource(File) constructor are small and would need changes to Resource class constructors.

I've added a Resource.newResource(File) as a convenience.
Comment 4 Jesse McConnell CLA 2011-09-20 15:52:43 EDT
Resolved -> Closed