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" <[EMAIL PROTECTED]>
To: <[email protected]>
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