ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: pushd and popd
Date Wed, 12 Dec 2001 03:08:55 GMT
Even after you succeed running these [by using something like "cmd /c 
pushd ..." etc] it will be of no use: the commands take effect in the 
spawned processes and do not affect the current JVM process that is 
running ANT.

Unfortunately, Java does not support the notion of a changeable current 
process directory.

If you need pushd/popd only to change into another dir and do a quick 
command or two from there, the "cmd /c pusd ... && <other command>" syntax 
may do the trick.


Please respond to "Ant Users List" <>
To:     Ant Users List <>

Subject:        Re: pushd and popd

--- Anthony Rodriguez <> wrote:
> Has anyone had any luck using the Win 2000 programs, pushd and popd?

Most likely they're built-ins rather than executables, so you'd need to
exec DOS's command shell, with pushd/popd as args to it.



Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at
or bid at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message