Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 352515
Collapse All | Expand All

(-)commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ContainerImpl.java (-6 / +12 lines)
Lines 202-214 Link Here
202
			getFiles();
202
			getFiles();
203
		}
203
		}
204
		
204
		
205
		IPath URIPath = new Path(URI);
205
		// Some load strategies load the files as relative, and some as absolute paths, so...
206
		// First try with the original URI
207
		File file = (File) getFileIndex().get(URI);
206
		
208
		
207
		if (URIPath.segmentCount() > 1)
209
		if (file == null){
208
			URIPath = URIPath.makeAbsolute();
210
			// If the file was not found, try using absolute path
209
			
211
			IPath URIPath = new Path(URI);
210
		File file = (File) getFileIndex().get(URIPath.toString());
212
			if (URIPath.segmentCount() > 1){
211
			
213
				URIPath = URIPath.makeAbsolute();
214
				file = (File) getFileIndex().get(URIPath.toString());
215
			}			
216
		}
217
				
212
		if (file == null) {
218
		if (file == null) {
213
			throw new java.io.FileNotFoundException(URI);
219
			throw new java.io.FileNotFoundException(URI);
214
		}
220
		}

Return to bug 352515