On 6/7/07, Alexander Kleymenov <[EMAIL PROTECTED]> wrote:
On 6/7/07, Nathan Beyer <[EMAIL PROTECTED]> wrote:
> Okay, I see the difference. Wouldn't the '%~dp0' expansion be the most
> flexible? It would allow proper setup if executed in a different
> folder?

I've no objection against ~dp (+1).
But to be more correct here, we should place this path not into
CLASSPATH, but into PATCHED_ANT_CLASSES and append it to ant launcher
by means of -lib option.

So, if we do this, then we can remove setting the CLASSPATH in
environment altogether? This seems cleaner and less like magic, which
is always good.

-Nathan

> Why does the current directory (".") need to be in the classpath?
> I couldn't figure out what's being placed in there.

Some child java processes are launched without -classpath option and
expect the classes in their cwd (default JVM behaviour). This dot in
CLASSPATH satisfies these expectations. If we will run ant without
changes in CLASSPATH this dot won't be needed (as and "SET CLASSPATH"
itself).

Thanks,
Alexander

Reply via email to