ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robertson, Julie" <Julie.Robert...@conocophillips.com>
Subject RE: Mapped vs UNC
Date Thu, 29 Mar 2007 15:06:21 GMT
Yes, that will only create a folder on my machine in my Ant home.  I am using properties, I
just pasted the path for the email to make it easier to explain.  I just tried it again to
be sure.  Thanks for the help.

-----Original Message-----
From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Thursday, March 29, 2007 9:57 AM
To: Ant Users List
Subject: Re: Mapped vs UNC

usually read from a property in build.xml or .properties file

<property name="foo.dist" value="\\\\server\\resource\\directory"/>

then later on,,
       <fileset dir="{foo.dist}">
         <include name="*.zip"/>
       </fileset>

--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual
or entity to which it is addressed and may contain information that is privileged, proprietary
, confidential and exempt from disclosure. If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this communication is strictly
prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant)
s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé
ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il
est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "Robertson, Julie" <Julie.Robertson@conocophillips.com>
To: <user@ant.apache.org>
Sent: Thursday, March 29, 2007 10:36 AM
Subject: Mapped vs UNC


I am working on an Ant build file that uses the ftp task to copy files
to other servers.  My problem is I can get it to work fine by using a
mapped drive, but when I try and use a UNC path, it just copies the
folder structure and files to my Ant directory on my machine.

Works:
 <ftp action="get"
          server="${testServer}"
          userid="${testUserID}"
          password="${testPW}"
          remotedir="${testFolder}"
          systemTypeKey="UNIX">
       <fileset dir="J:\folder1\folder2\folder3\folder4">
         <include name="*.zip"/>
       </fileset>
     </ftp> 


Does not work:
 <ftp action="get"
          server="${testServer}"
          userid="${testUserID}"
          password="${testPW}"
          remotedir="${testFolder}"
          systemTypeKey="UNIX">
       <fileset dir="\\computername\folder1\folder2\folder3\folder4">
         <include name="*.zip"/>
       </fileset>
     </ftp> 

I have tried both forward and backward slashes, and tried to double them
also.  Any ideas on what I am doing wrong?
Thanks,
Julie

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


Mime
View raw message