Hi all,
I am having difficulties with the ftp task, used to update a site's
contents.
When It checks file dates, any files in subfolders that need to be
updated will cause the build to
terminate as it is trying to create the directory the file is already
in.
File updating works fine in the root directory.
<clip>
D:\projects\geocities.com\updatesite.xml:23: could not create directory:
521 "/ryan_townshend/buildfiles" directory exists
</clip>
Is this the desired behaviour?
If so how do I update a subfolder structure?
Is there a way to not try to create directory?
I am attaching the build file used and a build log.
Any insight would be appreciated, thanks.
Ryan
Buildfile: updatesite.xml
Detected Java version: 1.3 in: D:\JDK1.3\JRE
Detected OS: Windows 98
parsing buildfile D:\projects\geocities.com\updatesite.xml with URI =
file:D:/projects/geocities.com/updatesite.xml
Project base dir set to: D:\projects\geocities.com
Build sequence for target `upload' is [upload]
Complete build sequence is [upload]
upload:
[ftp] Opening FTP connection to ftp.geocities.com
<project name="Site Upload System" default="upload" basedir=".">
<!--
This Target configuration will basically mirror a local
directory structure to the webhost through the optional
FTP task, see Ant Manual for details
-->
<target name="upload">
<ftp server="ftp.geocities.com"
remotedir="/ryan_townshend"
userid="username"
password="password"
depends="yes"
binary="no"
action="put"
verbose="yes">
<!--
Fileset is a basic Ant task that can be used to
"include" or "exclude" files and directories by
names or wildcards, see Ant Manual for more
-->
<fileset dir="site/">
<include name="**/*.html"/>
<include name="**/*.js"/>
<include name="**/*.css"/>
<include name="**/*.xml"/>
<exclude name="**/Ws_ftp.log"/>
<exclude name="**/tacticaltips/"/>
<exclude name="**/video/"/>
</fileset>
</ftp>
</target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>