Class Locator

java.lang.Object
org.apache.tools.ant.launch.Locator

public final class Locator extends Object
The Locator is a utility class which is used to find certain items in the environment.

It is used at boot time in the launcher, and cannot make use of any of Ant's other classes.

This is a surprisingly brittle piece of code, and has had lots of bugs filed against it: running ant off a network share can cause Ant to fail, use File.toURI().toURL().toExternalForm(), Locator implementation not encoding URI strings properly: spaces in paths. It also breaks Eclipse 3.3 Betas: Exception if installation path has spaces.

Be very careful when making changes to this class, as a break will upset a lot of people.

Since:
Ant 1.6