ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: pushd and popd
Date Wed, 12 Dec 2001 18:32:55 GMT

----- Original Message -----
From: "Anthony Rodriguez" <>
To: "'Ant Users List'" <>
Sent: Wednesday, December 12, 2001 10:16 AM
Subject: RE: pushd and popd

> What I'm really trying to acheive here is to map a network path to a drive
> letter, then copy files to that path.  The copy utility I'm using was
> developed in-house and has trouble with UNC paths.  It has other features
> however that are specific and necessary to my environment.  So the idea
> to pushd the UNC path, copy to the new drive that pushd assigns, then popd
> when I'm done.
> However by reading the various responses, it looks like Ant wouldn't leave
> me in the drive that pushd would assign.  Is this correct?  Is there a way
> for me to work around this aspect of Ant?   Would I be better served by
> writing a .bat file and executing that from Ant?
> -Anthony

You dont need to faff around with pushd and popd; I am not even sure that
net use is needed if you set your domain up right

<property name="outdir" location=\\server\c$$\tomcat\webapps" />
<copy todir="outdir">
 <fileset dir="dist">
   <include name="*.war"/>

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

View raw message