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?

Why does the current directory (".") need to be in the classpath? I
couldn't figure out what's being placed in there. Shouldn't we move
whatever it is to be in the "build/classes" folder or a "build/lib"
folder to keep everything clean.

-Nathan

On 6/6/07, Alexander Kleymenov <[EMAIL PROTECTED]> wrote:
Hi,

On 6/6/07, Nathan Beyer <[EMAIL PROTECTED]> wrote:
> Hey, I don't understand this change in the 'buildtest.bat' file below.
>
> Why change the '%~dp0' to '.;%CD%'? Was this an over-zealous patch? I
> added the '%~dp0' myself because the CD is an environment variable
> that's no set anywhere and '%~dp0' is the expansion for getting the
> current directory.

%CD% is a dynamic environment variable. It expands to the current
directory (SET /?) while %~dp0 expands to where the bat file is
placed. So these notions are almost the same excepting the possibility
to preset CD variable before .bat execution. I think here this
difference is not important and if you like %~dp0 you can revert the
change (but don't forget about dot please).

Thanks,
Alexander

Reply via email to