Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97626 invoked from network); 18 Jan 2006 18:53:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jan 2006 18:53:30 -0000 Received: (qmail 42229 invoked by uid 500); 18 Jan 2006 18:53:24 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42191 invoked by uid 500); 18 Jan 2006 18:53:24 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 42176 invoked by uid 99); 18 Jan 2006 18:53:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 10:53:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rhino1@sympatico.ca designates 209.226.175.188 as permitted sender) Received: from [209.226.175.188] (HELO tomts25-srv.bellnexxia.net) (209.226.175.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 10:53:22 -0800 Received: from athlon ([65.95.168.172]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060118185252.OHGM25777.tomts25-srv.bellnexxia.net@athlon> for ; Wed, 18 Jan 2006 13:52:52 -0500 Received: from 127.0.0.1 (AVG SMTP 7.1.375 [267.14.20/233]); Wed, 18 Jan 2006 13:51:57 -0500 Message-ID: <00b801c61c60$41b75590$0d02a8c0@athlon> From: "Rhino" To: "Ant Users List" References: <20060118183319.66566.qmail@web32703.mail.mud.yahoo.com> Subject: Re: SCP probleme Date: Wed, 18 Jan 2006 13:51:57 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: To: "Ant Users" Sent: Wednesday, January 18, 2006 1:33 PM Subject: SCP probleme > > I have the follwoing issue. > The scp task confiured as such : > > verbose="true" > failonerror="true" > trust="true" > password="${pwd}"> > > > > > Fail and gives this : > /data/Projects/test/performance/build.xml:101: 'todir' and 'file' > attributes must have syntax like the following: user:password@host:/path > at > org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:187) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at org.apache.tools.ant.Project.executeTarget(Project.java:1214) > at org.apache.tools.ant.Project.executeTargets(Project.java:1062) > at org.apache.tools.ant.Main.runBuild(Main.java:673) > at org.apache.tools.ant.Main.startAnt(Main.java:188) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) > Caused by: 'todir' and 'file' attributes must have syntax like the > following: user:password@host:/path > at > org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:181) > ... 10 more > > But ... > Not both should have a syntx with "@" in the path ... ? > > \T, > I don't know if this helps but here are two tasks that work perfectly for me; the first one downloads a directory from a remote server to the local system and the secone one uploads a directory from the local system to a remote server: Remember, filesets can only be used for uploads to a remote server, not for downloads from that server. See the 'scp' article in the Ant Manual if you don't believe me ;-) I'm using a keyfile and you appear to be using passwords but I'm sure you can figure out how to modify my examples to use a password instead of a keyfile. Again, the manual illustrates both approaches. Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/01/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org