My exact problem!!! In going from a NT to Solaris machine, I think
that if you do not specify a remote directory, then I believe that it
tries to go to the root directory. Can anyone verify that it would try
to go to the root directory???
--Jim
--- Will Dyke <[EMAIL PROTECTED]> wrote:
> I suspect it might be the remotedir argument. Are there problems
> if it doesn't exist? I notice the Ant manual says that it's not
> required, but having tried it with remotedir, it works now -
> without remotedir, it doesn't work.
>
> Again, I'm transferring from NT to Solaris (seems to be a common
> problem area!) - don't know whether this makes a difference.
>
> Thanks for everyone's help on this matter - I wonder if either a
> bug fix or a documentation fix is required?
>
> Will
>
> > -----Original Message-----
> > From: James Bullington [mailto:[EMAIL PROTECTED]]
> > Sent: 18 September 2001 16:17
> > To: [EMAIL PROTECTED]
> > Subject: RE: FTP put problems
> >
> >
> > Are you sure that you are using the same username and password to
> log
> > in as your hand typing?
> >
> > I had a case where the directory did not exist on the target
> machine.
> > Everything looked OK but no files were transfered (Ant 1.3),
> > transfering files from a NT machine to a Solaris machine.
> >
> > --Jim
> >
> > --- Will Dyke <[EMAIL PROTECTED]> wrote:
> > > I've just tried ftp'ing files from my local machine
> > > to the remote machine, which showed me two things -
> > > one, that snoop would definitely detect this, and
> > > two, there are no problems with the particular file
> > > I wish to transfer. I've edited my fileset to
> > >
> > > <fileset dir=".">
> > > <include name="build.xml"/>
> > > </fileset>
> > >
> > > and build.xml is not sent by the task. FTPing by
> > > hand (via the command prompt, so nothing funky
> > > going on in the background) works fine.
> > >
> > > Will
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: 18 September 2001 12:40
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: FTP put problems
> > >
> > >
> > >
> > > Hi Will,
> > >
> > > I had faced a similar problem on Solaris once using Ant FTP task.
> At
> > > that
> > > time the reason was that the file had the characters "01"
> > in its name
> > > and
> > > for some reason the files in that case were becoming invisible.
> So I
> > > kept
> > > suspecting that there was a problem with Ant FTP only to
> > realise that
> > > even
> > > ordinary FTP was failing to show up the transferred file.
> > The problem
> > > got
> > > solved when I tried to run 'rm -i *' in that folder!!
> > >
> > > Regards
> > > _____________________________________
> > > Kapil Singh Pawar
> > > Consultant - Integration
> > > i2 Technologies India Private Ltd.
> > > 1 Primrose Road
> > > Bangalore 560 025, INDIA
> > > Email: [EMAIL PROTECTED]
> > > Tel: +91 80 558 1487-90 ext. 2416
> > >
> > >
> > > Will Dyke <[EMAIL PROTECTED]>
> > > 09/18/01 04:53 PM
> > > Please respond to ant-user
> > >
> > > To: "'[EMAIL PROTECTED]'"
> > > <[EMAIL PROTECTED]>
> > > cc:
> > > Subject: FTP put problems
> > >
> > >
> > >
> > > I'm using the following test script to ftp files up to a server
> > >
> > > <project name="fakebuild" default="ftp" basedir=".">
> > >
> > > <target name="ftp.properties.chk" if="ftp">
> > > <available file="ftp.properties"
> > > property="ftp.properties.exists"/>
> > > </target>
> > >
> > > <target name="ftp" depends="ftp.properties.chk"
> > > if="ftp.properties.exists">
> > > <property file="ftp.properties"/>
> > > <ftp server="${ftp.server}" userid="${ftp.userid}"
> > > password="${ftp.password}"
> > > action="put" binary="yes" verbose="yes">
> > > <fileset dir=".">
> > > <include name="*.xml"/>
> > > </fileset>
> > > </ftp>
> > > </target>
> > >
> > > </project>
> > >
> > > Running the command line ant -buildfile ftp-test.xml
> > -Dftp=yes -debug
> > > -verbose
> > > results in the following:
> > >
> > > Ant version 1.4 compiled on September 3 2001
> > > Ant version 1.4 compiled on September 3 2001
> > > Buildfile: ftp-test.xml
> > > Detected Java version: 1.3 in: c:\jdk1.3\jre
> > > Detected OS: Windows NT
> > > parsing buildfile D:\ant\1.4\bin\ftp-test.xml with URI =
> > > file:D:/ant/1.4/bin/ftp
> > > -test.xml
> > > Project base dir set to: D:\ant\1.4\bin
> > > Build sequence for target `ftp' is [ftp.properties.chk, ftp]
> > > Complete build sequence is [ftp.properties.chk, ftp]
> > >
> > > ftp.properties.chk:
> > >
> > > ftp:
> > > [property] Loading D:\ant\1.4\bin\ftp.properties
> > > [ftp] Opening FTP connection to
> www-cache-icl.reith.bbc.co.uk
> > > [ftp] connected
> > > [ftp] logging in to FTP server
> > > [ftp] login succeeded
> > > [ftp] disconnecting
> > >
> > > BUILD SUCCESSFUL
> > >
> > > Total time: 1 second
> > >
> > > No files are uploaded however. Snooping the ftp port at the
> server
> > > end also
> > > confirms that everything apart from the upload goes ok. I'm
> guessing
> > > the
> > > problem
> > > is my <fileset> but can anyone confirm this or suggest an
> > alternative
> > > reason?
> > >
> > > Thanks,
> > > Will Dyke
> > >
> > >
> > > This e-mail, and any attachment, is confidential. If you have
> > > received
> > > it in error, please delete it from your system, do not use or
> > > disclose
> > > the information in any way, and notify me immediately. The
> contents
> > > of
> > > this message may contain personal views which are not the views
> of
> > > the
> > > BBC, unless specifically stated.
> > >
> > >
> > > This e-mail, and any attachment, is confidential. If you have
> > > received
> > > it in error, please delete it from your system, do not use or
> > > disclose
> > > the information in any way, and notify me immediately. The
> contents
> > > of
> > > this message may contain personal views which are not the views
> of
> > > the
> > > BBC, unless specifically stated.
> >
> >
> > =====
> > "Those who live in the shelter of the Most High will find
> > rest in the shadow of the Almighty.
> > This I declare of the Lord: He alone is my refuge, my place
> > of safety; he is my God, and I am trusting him..."
> >
> > Psalms 91:1-2 (New Living Translation)
> >
> > __________________________________________________
> > Terrorist Attacks on U.S. - How can you help?
> > Donate cash, emergency relief information
> > http://dailynews.yahoo.com/fc/US/Emergency_Information/
> >
>
>
> This e-mail, and any attachment, is confidential. If you have
> received
> it in error, please delete it from your system, do not use or
> disclose
> the information in any way, and notify me immediately. The contents
> of
> this message may contain personal views which are not the views of
> the
> BBC, unless specifically stated.
=====
"Those who live in the shelter of the Most High will find rest in the shadow of the
Almighty.
This I declare of the Lord: He alone is my refuge, my place of safety; he is my God,
and I am trusting him…"
Psalms 91:1-2 (New Living Translation)
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/