public static URL codeLocationFromPath ( String filePath ) { try { return new File ( filePath ) . toURI ( ) . toURL ( ) ; } catch ( Exception e ) { throw new InvalidCodeLocation ( filePath ) ; } }
Creates a code location URL from a file path