MCPcopy Create free account
hub / github.com/apache/ant / fileToURL

Method fileToURL

src/main/org/apache/tools/ant/launch/Locator.java:336–339  ·  view source on GitHub ↗

Convert a File to a URL. File.toURL() does not encode characters like #. File.toURI() has been introduced in java 1.4, so Ant cannot use it (except by reflection) <!-- TODO no longer true --> File.toURI() cannot be used by Locator.java Implemented this way. File.toURL() adds file: and changes '\' to

(File file)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

getLocationURLsMethod · 0.95

Calls 1

toURIMethod · 0.80

Tested by

no test coverage detected