I think this analysis is incorrect. Ant 1.4.1 asks the JVM to execute 'cmd /c
cd x && y', where x is the current working directory (user.dir) and y is the
command line (pushd \\nqa2\testdir\). Wouldn't the example give here result in
'cmd /c cd x && cmd /c pushd \\nqa2\testdir\'?

Part of the confusion is that the way ant works. The executable attribute of
the exec element is a misnomer. On Windows 2000 it just becomes part of the
string that the cmd shell is being asked to execute. At least that's my
interpretation of the Windows 2000 CMD ducumentation.

[EMAIL PROTECTED] wrote:

> Diane is correct. It would look something like:
>
> <target name="pushpop">
>    <exec executable="cmd /c">
>        <arg line="pushd \\${server}\${testdir}">
>    </exec>
>    <exec executable="cmd /c">
>        <arg line="popd">
>    </exec>
> </target>
>
> -----Original Message-----
> From: Diane Holt [mailto:[EMAIL PROTECTED]]
> Sent: 11 December, 2001 03:59 PM
> To: Ant Users List
> Subject: Re: pushd and popd
>
> --- Anthony Rodriguez <[EMAIL PROTECTED]> 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
>
> =====
> ([EMAIL PROTECTED])
>
> __________________________________________________
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to