Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
38523
Description
Just to suggest adding a method like this:
public File findFileInClasspath(String fileName) throws FileNotFoundException
{
URL url = getClass().getClassLoader().getResource(fileName);
if (url == null)
return new File(url.getFile());
}