ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v...@trilogy.com
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.

Vlad.


Please respond to "Ant Users List" <ant-user@jakarta.apache.org>
To:     Ant Users List <ant-user@jakarta.apache.org>
cc: 

Subject:        Re: pushd and popd


--- Anthony Rodriguez <Anthony@WeddingChannel.com> 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.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




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