You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Res Pons <po...@hotmail.com> on 2006/07/11 20:06:07 UTC
RE: The SCP task don't scp?! Help Please.
Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar in my ant/lib but
neither works. Ant's website mentions, "This task has been tested with
jsch-0.1.2 to jsch-0.1.14."
Here's a copy of my scp task:
<scp
file="${deploy.zip.dir}/build${full.build.number}/build${full.build.number}.zip"
todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
All the values for the properties are loaded from my build.properties file.
I wonder if I have to roll back to an older version of jsch, however, I
remember I had to update them because when I upgraded to Ant 1.6.5 this task
stopped working regardless of the version of jsch.
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 10:39:27 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc12-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue,
11 Jul 2006 10:40:22 -0700
Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 17:39:56 -0000
Received: (qmail 10113 invoked by uid 99); 11 Jul 2006 17:39:56 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 10:39:56 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 10:39:55 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
FILETIME=[F5433500:01C6A510]
X-WSS-ID: 68AD3DDA1UG416368-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57059-pons32=hotmail.com@ant.apache.org
What are the contents of the jsch-0.1.28.zip file? Please send the
portion of your build.xml that shows your usage of the scp task.
-Rob Anderson
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 9:52 AM
> To: user@ant.apache.org
> Subject: The SCP task don't scp?! Help Please.
>
> Hi all
>
> I downloaded the latest version of jsch-0.1.28.zip from
> jcraft last night for the scp task. Two questions:
>
> 1. Do I have to rename the jar file from jsch-0.1.28.zip to
> jsch.jar or would ANT understand it with the version number
> embedded in it?
>
> 2. My SCP tasks have not run successfully in a long time and
> I can't tell what is wrong? This is the error I get:
>
> C:\scripts>ant -f build2.xml -Dfull.build.number=712 buildnum
> Buildfile: build2.xml
>
> buildnum:
>
> [echo] Local build number is: 725
>
> [scp] Connecting to server.ourdomain.net:22
>
> BUILD FAILED
> C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException: Auth cancel
>
> Total time: 3 seconds
>
> Help please! What am I doing wrong?
>
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
Here's my build.xml
<project name="Upload" default="usage" basedir=".">
<property environment="env" />
<property file="${env.HOME}/.build.properties" />
<property file="build/build.properties" />
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${basedir}/${build.lib}/ant-contrib.jar"/>
</classpath>
</taskdef>
<target name="usage" >
<echo message="B# ${build.number}" />
<echo
message="----------------------------------------------------------------"
/>
</target>
<target name="buildnum" description="Forces Anthill to build even if
there aren't any changes" >
<buildnumber file="build.number" />
<echo message="" />
<echo message="Local build number is: ${build.number}" />
<echo message="" />
<scp
file="${deploy.zip.dir}/build${full.build.number}/build${full.build.number}.zip"
todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
</target>
</project>
Here's the debug log: ( I just took out the antrcontrib stuff, so in the
next log i shouldn't be seeing them)
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build2.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5
compiled on June 2 2005
Setting ro project property: full.build.number -> 712
Setting ro project property: ant.file -> c:\scripts\build2.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\scripts\build2.xml with URI =
file:///C:/scripts/build2.xml
Setting ro project property: ant.project.name -> Upload
Adding reference: Upload
Setting ro project property: ant.file.Upload -> C:\scripts\build2.xml
Project base dir set to: C:\scripts
+Target:
+Target: usage
+Target: buildnum
[property] Loading Environment env.
Setting project property: env.TEMP -> C:\DOCUME~1\pons32\LOCALS~1\Temp
Setting project property: env.HOME -> C:
Setting project property: env.JAVA_HOME -> C:\Java\jdk1.5.0_06
Setting project property: env.ProgramFiles -> C:\Program Files
Setting project property: env.Path ->
C:\oracle\product\10.2.0\client_1;C:\Java\jdk1.5.0_06\bin;C:\Java\jdk1.5.0_06\lib;C:\Perl\bin\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;c:\cvsClient;C:\Subversion\bin;C:\Program
Files\Bitvise
Tunnelier;C:\AntHill\lib\ant1.6.5\bin;C:\AntHill\lib\ant1.6.5\lib;c:\cvsClient;C:\Program
Files\SecureCRT;C:\cruisecontrol221\main\bin;C:\Java\jakarta-struts-1.1;C:\pscp;C:\Maven102\bin;C:\Tools\yWorks;C:\Program
Files\SSH Communications Security\SSH Secure Shell;C:\Tools\GNU-win32
Setting project property: env.SESSIONNAME -> RDP-Tcp#1
Setting project property: env.SystemRoot -> C:\WINDOWS
Setting project property: env.USERNAME -> pons32
Setting project property: env.ANTEXPLORER_HOME -> C:\Tools\yWorks
Setting project property: env.APR_ICONV_PATH -> C:\Subversion\iconv
Setting project property: env._JAVACMD -> C:\Java\jdk1.5.0_06\bin\java.exe
Setting project property: env.PROCESSOR_LEVEL -> 15
Setting project property: env.FP_NO_HOST_CHECK -> NO
Setting project property: env.USERPROFILE -> C:\Documents and
Settings\pons32
Setting project property: env.PROCESSOR_REVISION -> 0401
Setting project property: env.SYS_PROPS ->
"-Dant.home=C:\AntHill\lib\ant1.6.5"
Setting project property: env.CommonProgramFiles -> C:\Program Files\Common
Files
Setting project property: env.ANT_CMD_LINE_ARGS -> -debug -f build2.xml
-Dfull.build.number 712 buildnum
Setting project property: env.HOMEPATH -> \
Setting project property: env.PROCESSOR_ARCHITECTURE -> x86
Setting project property: env.OS -> Windows_NT
Setting project property: env.CLIENTNAME -> Console
Setting project property: env.CVSROOT ->
:pserver:pons32@cvsserver.mydomain.com:/usr/local/cvs
Setting project property: env.ComSpec -> C:\WINDOWS\system32\cmd.exe
Setting project property: env.PATHEXT ->
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
Setting project property: env.PROMPT -> $P$G
Setting project property: env.ALLUSERSPROFILE -> C:\Documents and
Settings\All Users
Setting project property: env.HOMEDRIVE -> H:
Setting project property: env.HOMESHARE -> \\zambia\user\pons32
Setting project property: env.PROCESSOR_IDENTIFIER -> x86 Family 15 Model 4
Stepping 1, GenuineIntel
Setting project property: env.APPDATA -> C:\Documents and
Settings\pons32\Application Data
Setting project property: env.USERDNSDOMAIN -> US.mydomain.COM
Setting project property: env.NUMBER_OF_PROCESSORS -> 2
Setting project property: env.ANT_HOME -> C:\AntHill\lib\ant1.6.5
Setting project property: env.JAVA_HOMExxx -> C:\Java\j2sdk1.4.2_10\jre
Setting project property: env.MAVEN_HOME -> C:\Maven102
Setting project property: env.SystemDrive -> C:
Setting project property: env.TMP -> C:\DOCUME~1\pons32\LOCALS~1\Temp
Setting project property: env.USERDOMAIN -> mydomain
Setting project property: env.windir -> C:\WINDOWS
Setting project property: env.COMPUTERNAME -> DESKOFPONS32
Setting project property: env.LOGONSERVER -> \\ZAIRE
[property] Loading C:\.build.properties
Setting project property: deploy.zip.dir -> /build.artifacts
Setting project property: sw.pw -> XXXXXX
Setting project property: anthill.lib -> /AntHill/lib/ant1.6.5/lib
Setting project property: sw.home -> /export/home/pons32
Setting project property: sw.usr -> pons32
Setting project property: build.dir -> .classes
Setting project property: dist.dir -> .dist
Setting project property: tomcat.home.dir -> /Tomcat
Setting project property: ssh.host.sw -> sw.mydomain.net
Setting project property: build.lib -> build/lib
Setting project property: deploy.tomcat.port -> 80
[property] Loading c:\.build.properties
dropping C:\scripts\build\lib\ant-contrib.jar from path as it doesn't exist
parsing buildfile
jar:file:/C:/AntHill/lib/ant1.6.5/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
with URI =
jar:file:/C:/AntHill/lib/ant1.6.5/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
Class net.sf.antcontrib.platform.ShellScriptTask loaded from parent loader
(parentFirst)
+Datatype shellscript net.sf.antcontrib.platform.ShellScriptTask
Class net.sf.antcontrib.property.PropertyCopy loaded from parent loader
(parentFirst)
+Datatype propertycopy net.sf.antcontrib.property.PropertyCopy
Class net.sf.antcontrib.property.PathToFileSet loaded from parent loader
(parentFirst)
+Datatype pathtofileset net.sf.antcontrib.property.PathToFileSet
Class net.sf.antcontrib.antserver.client.ClientTask loaded from parent
loader (parentFirst)
+Datatype remoteant net.sf.antcontrib.antserver.client.ClientTask
Class net.sf.antcontrib.logic.RunTargetTask loaded from parent loader
(parentFirst)
+Datatype runtarget net.sf.antcontrib.logic.RunTargetTask
Class net.sf.antcontrib.logic.Assert loaded from parent loader (parentFirst)
+Datatype assert net.sf.antcontrib.logic.Assert
Class net.sf.antcontrib.property.RegexTask loaded from parent loader
(parentFirst)
+Datatype propertyregex net.sf.antcontrib.property.RegexTask
Class net.sf.antcontrib.math.MathTask loaded from parent loader
(parentFirst)
+Datatype math net.sf.antcontrib.math.MathTask
Class net.sf.antcontrib.logic.TryCatchTask loaded from parent loader
(parentFirst)
+Datatype trycatch net.sf.antcontrib.logic.TryCatchTask
Class net.sf.antcontrib.antserver.server.ServerTask loaded from parent
loader (parentFirst)
+Datatype antserver net.sf.antcontrib.antserver.server.ServerTask
Class net.sf.antcontrib.logic.AntCallBack loaded from parent loader
(parentFirst)
+Datatype antcallback net.sf.antcontrib.logic.AntCallBack
Class net.sf.antcontrib.walls.CompileWithWalls loaded from parent loader
(parentFirst)
+Datatype compilewithwalls net.sf.antcontrib.walls.CompileWithWalls
Class net.sf.antcontrib.logic.OutOfDate loaded from parent loader
(parentFirst)
+Datatype outofdate net.sf.antcontrib.logic.OutOfDate
Class net.sf.antcontrib.platform.OsFamily loaded from parent loader
(parentFirst)
+Datatype osfamily net.sf.antcontrib.platform.OsFamily
Class net.sf.antcontrib.perf.StopWatchTask loaded from parent loader
(parentFirst)
+Datatype stopwatch net.sf.antcontrib.perf.StopWatchTask
Class net.sf.antcontrib.logic.Throw loaded from parent loader (parentFirst)
+Datatype throw net.sf.antcontrib.logic.Throw
Class net.sf.antcontrib.antclipse.ClassPathTask loaded from parent loader
(parentFirst)
+Datatype antclipse net.sf.antcontrib.antclipse.ClassPathTask
Class net.sf.antcontrib.property.URLEncodeTask loaded from parent loader
(parentFirst)
+Datatype urlencode net.sf.antcontrib.property.URLEncodeTask
Class net.sf.antcontrib.logic.condition.BooleanConditionTask loaded from
parent loader (parentFirst)
+Datatype bool net.sf.antcontrib.logic.condition.BooleanConditionTask
Class net.sf.antcontrib.logic.TimestampSelector loaded from parent loader
(parentFirst)
+Datatype timestampselector net.sf.antcontrib.logic.TimestampSelector
Class net.sf.antcontrib.logic.ForEach loaded from parent loader
(parentFirst)
+Datatype foreach net.sf.antcontrib.logic.ForEach
Class net.sf.antcontrib.logic.IfTask loaded from parent loader (parentFirst)
+Datatype if net.sf.antcontrib.logic.IfTask
Class net.sf.antcontrib.property.PropertySelector loaded from parent loader
(parentFirst)
+Datatype propertyselector net.sf.antcontrib.property.PropertySelector
Class net.sf.antcontrib.property.SortList loaded from parent loader
(parentFirst)
+Datatype sortlist net.sf.antcontrib.property.SortList
Class net.sf.antcontrib.logic.AntFetch loaded from parent loader
(parentFirst)
+Datatype antfetch net.sf.antcontrib.logic.AntFetch
Class net.sf.antcontrib.net.PostTask loaded from parent loader (parentFirst)
+Datatype post net.sf.antcontrib.net.PostTask
Class net.sf.antcontrib.process.ForgetTask loaded from parent loader
(parentFirst)
+Datatype forget net.sf.antcontrib.process.ForgetTask
Class net.sf.antcontrib.process.Limit loaded from parent loader
(parentFirst)
+Datatype limit net.sf.antcontrib.process.Limit
Class net.sf.antcontrib.logic.Switch loaded from parent loader (parentFirst)
+Datatype switch net.sf.antcontrib.logic.Switch
Class net.sf.antcontrib.property.Variable loaded from parent loader
(parentFirst)
+Datatype var net.sf.antcontrib.property.Variable
Class net.sf.antcontrib.inifile.IniFileTask loaded from parent loader
(parentFirst)
+Datatype inifile net.sf.antcontrib.inifile.IniFileTask
Class net.sf.antcontrib.design.VerifyDesign loaded from parent loader
(parentFirst)
+Datatype verifydesign net.sf.antcontrib.design.VerifyDesign
Class net.sf.antcontrib.logic.condition.IsGreaterThan loaded from parent
loader (parentFirst)
+Datatype isgreaterthan net.sf.antcontrib.logic.condition.IsGreaterThan
Class net.sf.antcontrib.logic.condition.IsLessThan loaded from parent loader
(parentFirst)
+Datatype islessthan net.sf.antcontrib.logic.condition.IsLessThan
Class net.sf.antcontrib.logic.condition.IsPropertyFalse loaded from parent
loader (parentFirst)
+Datatype ispropertyfalse net.sf.antcontrib.logic.condition.IsPropertyFalse
Class net.sf.antcontrib.logic.condition.IsPropertyTrue loaded from parent
loader (parentFirst)
+Datatype ispropertytrue net.sf.antcontrib.logic.condition.IsPropertyTrue
Class net.sf.antcontrib.logic.For loaded from parent loader (parentFirst)
+Datatype for net.sf.antcontrib.logic.For
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `buildnum' is [buildnum]
Complete build sequence is [buildnum, usage, ]
buildnum:
Setting project property: build.number -> 729
[echo] Local build number is: 729
[scp] Connecting to sidewinder.mydomain.net:22
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 11:26:21 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc3-f16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 11
Jul 2006 11:27:02 -0700
Received: (qmail 710 invoked by uid 500); 11 Jul 2006 18:26:57 -0000
Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:57 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:55 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
FILETIME=[82542020:01C6A517]
X-WSS-ID: 68AD32C41UG437659-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
Not sure why it is not working for you. Please run:
ant -debug -f build2.xml -Dfull.build.number=712 buildnum
... and send the output.
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 11:06 AM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar in
> my ant/lib but
> neither works. Ant's website mentions, "This task has been
> tested with
> jsch-0.1.2 to jsch-0.1.14."
>
> Here's a copy of my scp task:
>
> <scp
> file="${deploy.zip.dir}/build${full.build.number}/build${full.
> build.number}.zip"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> All the values for the properties are loaded from my
> build.properties file.
>
> I wonder if I have to roll back to an older version of jsch,
> however, I
> remember I had to update them because when I upgraded to Ant
> 1.6.5 this task
> stopped working regardless of the version of jsch.
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 10:39:27 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f11.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 10:40:22 -0700
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 17:39:56 -0000
> Received: (qmail 10113 invoked by uid 99); 11 Jul 2006 17:39:56 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 10:39:56 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
> FILETIME=[F5433500:01C6A510]
> X-WSS-ID: 68AD3DDA1UG416368-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57059-pons32=hotmail.com@ant.apache.org
>
> What are the contents of the jsch-0.1.28.zip file? Please send the
> portion of your build.xml that shows your usage of the scp task.
>
> -Rob Anderson
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com]
> > Sent: Tuesday, July 11, 2006 9:52 AM
> > To: user@ant.apache.org
> > Subject: The SCP task don't scp?! Help Please.
> >
> > Hi all
> >
> > I downloaded the latest version of jsch-0.1.28.zip from
> > jcraft last night for the scp task. Two questions:
> >
> > 1. Do I have to rename the jar file from jsch-0.1.28.zip to
> > jsch.jar or would ANT understand it with the version number
> > embedded in it?
> >
> > 2. My SCP tasks have not run successfully in a long time and
> > I can't tell what is wrong? This is the error I get:
> >
> > C:\scripts>ant -f build2.xml -Dfull.build.number=712 buildnum
> > Buildfile: build2.xml
> >
> > buildnum:
> >
> > [echo] Local build number is: 725
> >
> > [scp] Connecting to server.ourdomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> Auth cancel
> >
> > Total time: 3 seconds
> >
> > Help please! What am I doing wrong?
> >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
The box I'm ssh'ing to, is running CentOS 4.
[pons32@sw ~]$ ssh -v
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
Other ssh clients and window's pscp.exe, all allowed me to transfer files
successfully.
Only Ant's scp is not working for me. I appreciate your help on this.
Thanks.
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 15:50:34 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc1-f6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 11
Jul 2006 15:51:24 -0700
Received: (qmail 87288 invoked by uid 500); 11 Jul 2006 22:51:16 -0000
Received: (qmail 87277 invoked by uid 99); 11 Jul 2006 22:51:16 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 15:51:16 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 15:51:15 -0700
X-Message-Info: LsUYwwHHNt2ESlQ/HPhg5KijAkxpPEbOiZdYKs3irKI=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalMxCjEbxexiy4TuWxewupjPeMuQACS6Tg
X-OriginalArrivalTime: 11 Jul 2006 22:50:34.0376 (UTC)
FILETIME=[6B517880:01C6A53C]
X-WSS-ID: 68AAF4B61UG536533-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57075-pons32=hotmail.com@ant.apache.org
Could you be more specific? What vendor and version of their package are
you using? Can you scp files from the command line or with another scp
client?
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 2:43 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> ssh2
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 13:40:51 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f19.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 13:42:23 -0700
> Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
> Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 13:42:20 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
> X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
> FILETIME=[4CE2F6B0:01C6A52A]
> X-WSS-ID: 68AAD29A1UG492280-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
>
> What ssh server version are you using on the target host?
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com]
> > Sent: Tuesday, July 11, 2006 1:06 PM
> > To: user@ant.apache.org
> > Subject: RE: The SCP task don't scp?! Help Please.
> >
> > I even simplified my build2.xml and stripped off my
> > build.properties to minimum bare values but still...
> >
> > <project name="Upload" default="scpuploadtest" basedir=".">
> >
> >
> > <property file="build/build.properties" />
> >
> >
> > <target name="scpuploadtest" description="Forces Anthill
> > to build even if there aren't any changes" >
> >
> > <echo message="" />
> >
> > <echo message="" />
> >
> > <scp file="build.number"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
> >
> > </target>
> >
> >
> >
> > </project>
> >
> > -------------------------
> >
> > Here's the debug log:
> >
> > Apache Ant version 1.6.5 compiled on June 2 2005
> > Buildfile: build2.xml
> > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
> > Detected OS: Windows XP Adding reference: ant.ComponentHelper
> > Setting ro project property: ant.version -> Apache Ant
> > version 1.6.5 compiled on June 2 2005 Setting ro project
> > property: ant.file -> c:\scripts\build2.xml Adding reference:
> > ant.projectHelper Adding reference: ant.parsing.context
> > Adding reference: ant.targets parsing buildfile
> > C:\scripts\build2.xml with URI =
> > file:///C:/scripts/build2.xml Setting ro project property:
> > ant.project.name -> Upload Adding reference: Upload Setting
> > ro project property: ant.file.Upload -> C:\scripts\build2.xml
> > Project base dir set to: C:\scripts
> > +Target:
> > +Target: scpuploadtest
> > [property] Loading C:\scripts\build\build.properties Setting
> > project property: sw.pw -> xxxxxxxxx Setting project
> > property: sw.usr -> pons32 Setting project property:
> > tomcat.home.dir -> /Tomcat Setting project property:
> > ssh.host.sw -> sw.mydomain.net Setting project property:
> > sw.home -> /export/home/pons32 Attempting to create object of
> > type org.apache.tools.ant.helper.DefaultExecutor
> > Adding reference: ant.executor
> > Build sequence for target(s) `scpuploadtest' is
> > [scpuploadtest] Complete build sequence is [scpuploadtest, ]
> >
> > scpuploadtest:
> >
> >
> > [scp] Connecting to sidewinder.mydomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException:
> Auth cancel
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > ... 12 more
> > --- Nested Exception ---
> > com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 3 seconds
> > c:\scripts>
> >
> >
> >
> >
> >
> >
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> > Reply-To: "Ant Users List" <us...@ant.apache.org>
> > To: "Ant Users List" <us...@ant.apache.org>
> > Subject: RE: The SCP task don't scp?! Help Please.
> > Date: Tue, 11 Jul 2006 11:26:21 -0700
> > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by
> > bay0-mc3-f16.bay0.hotmail.com with Microsoft
> > SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700
> > Received: (qmail 710 invoked by uid 500); 11 Jul 2006
> 18:26:57 -0000
> > Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
> > Received: from asf.osuosl.org (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:57 -0700
> > Received: pass (asf.osuosl.org: local policy)
> > Received: from [146.197.27.91] (HELO barriere241.nike.com)
> > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 11:26:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> > Precedence: bulk
> > List-Unsubscribe: <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org>
> > List-Post: <ma...@ant.apache.org>
> > List-Id: "Ant Users List" <user.ant.apache.org>
> > Delivered-To: mailing list user@ant.apache.org
> > X-ASF-Spam-Status: No, hits=0.6
> > required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5
> > Content-class: urn:content-classes:message
> > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> > X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
> > FILETIME=[82542020:01C6A517]
> > X-WSS-ID: 68AD32C41UG437659-01-01
> > X-Virus-Checked: Checked by ClamAV on apache.org
> > Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
> >
> > Not sure why it is not working for you. Please run:
> > ant -debug -f build2.xml -Dfull.build.number=712 buildnum
> >
> > ... and send the output.
> >
> > -Rob A
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> > Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org >
> > Subject: RE: The SCP task don't scp?! Help Please.
> > >
> > > Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar
> > in > my ant/lib but > neither works. Ant's website
> > mentions, "This task has been > tested with > jsch-0.1.2 to
> > jsch-0.1.14."
> > >
> > > Here's a copy of my scp task:
> > >
> > > <scp
> > > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > > build.number}.zip"
> > > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> > trust="yes" /> > > All the values for the properties are
> > loaded from my > build.properties file.
> > >
> > > I wonder if I have to roll back to an older version of
> > jsch, > however, I > remember I had to update them because
> > when I upgraded to Ant > 1.6.5 this task > stopped working
> > regardless of the version of jsch.
> > >
> > >
> > > ----Original Message Follows----
> > > From: "Anderson, Rob (Global Trade)"
> > <Ro...@nike.com> > Reply-To: "Ant Users List"
> > <us...@ant.apache.org> > To: "Ant Users List"
> > <us...@ant.apache.org> > Subject: RE: The SCP task don't
> > scp?! Help Please.
> > > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version: 1.0
> > > Received: from mail.apache.org ([209.237.227.199]) by >
> > bay0-mc12-f11.bay0.hotmail.com with Microsoft >
> > SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> > Received: (qmail 10124 invoked by uid 500); 11 Jul 2006
> > 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> > 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> > (HELO asf.osuosl.org)
> > > (140.211.166.49) by
> > > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:56 -0700 > Received: pass (asf.osuosl.org: local
> > policy) > Received: from [146.197.27.91] (HELO
> > barriere241.nike.com) > (146.197.27.91)
> > > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > > 10:39:55 -0700
> > > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > > Mailing-List: contact user-help@ant.apache.org; run by
> > ezmlm > Precedence: bulk > List-Unsubscribe:
> > <ma...@ant.apache.org>
> > > List-Help: <ma...@ant.apache.org> > List-Post:
> > <ma...@ant.apache.org> > List-Id: "Ant Users List"
> > <user.ant.apache.org> > Delivered-To: mailing list
> > user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> > required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > > X-Spam-Check-By: apache.org
> > > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> > Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > > X-MS-TNEF-Correlator:
> > > Thread-Topic: The SCP task don't scp?! Help Please.
> > > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC) >
> > FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> > 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by ClamAV
> > on apache.org > Return-Path:
> > user-return-57059-pons32=hotmail.com@ant.apache.org
> > >
> > > What are the contents of the jsch-0.1.28.zip file? Please
> > send the > portion of your build.xml that shows your usage
> > of the scp task.
> > >
> > > -Rob Anderson
> > >
> > > > -----Original Message-----
> > > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> > Tuesday, July 11, 2006 9:52 AM > > To: user@ant.apache.org
> > > > Subject: The SCP task don't scp?! Help Please.
> > > >
> > > > Hi all
> > > >
> > > > I downloaded the latest version of jsch-0.1.28.zip from
> > > > jcraft last night for the scp task. Two questions:
> > > >
> > > > 1. Do I have to rename the jar file from
> > jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> > with the version number > > embedded in it?
> > > >
> > > > 2. My SCP tasks have not run successfully in a long
> > time and > > I can't tell what is wrong? This is the
> error I get:
> > > >
> > > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> > buildnum > > Buildfile: build2.xml > > > > buildnum:
> > > >
> > > > [echo] Local build number is: 725
> > > >
> > > > [scp] Connecting to server.ourdomain.net:22
> > > >
> > > > BUILD FAILED
> > > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > > Auth cancel
> > > >
> > > > Total time: 3 seconds
> > > >
> > > > Help please! What am I doing wrong?
> > > >
> > > >
> > _________________________________________________________________
> > > > Don't just search. Find. Check out the new MSN Search!
> > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For > > additional commands, e-mail:
> > user-help@ant.apache.org > > > > > > > > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> > For additional commands, e-mail: user-help@ant.apache.org >
> > > _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> > For additional commands, e-mail: user-help@ant.apache.org > > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today
> - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Could you be more specific? What vendor and version of their package are
you using? Can you scp files from the command line or with another scp
client?
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 2:43 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> ssh2
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 13:40:51 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f19.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 13:42:23 -0700
> Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
> Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 13:42:20 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
> X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
> FILETIME=[4CE2F6B0:01C6A52A]
> X-WSS-ID: 68AAD29A1UG492280-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
>
> What ssh server version are you using on the target host?
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com]
> > Sent: Tuesday, July 11, 2006 1:06 PM
> > To: user@ant.apache.org
> > Subject: RE: The SCP task don't scp?! Help Please.
> >
> > I even simplified my build2.xml and stripped off my
> > build.properties to minimum bare values but still...
> >
> > <project name="Upload" default="scpuploadtest" basedir=".">
> >
> >
> > <property file="build/build.properties" />
> >
> >
> > <target name="scpuploadtest" description="Forces Anthill
> > to build even if there aren't any changes" >
> >
> > <echo message="" />
> >
> > <echo message="" />
> >
> > <scp file="build.number"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
> >
> > </target>
> >
> >
> >
> > </project>
> >
> > -------------------------
> >
> > Here's the debug log:
> >
> > Apache Ant version 1.6.5 compiled on June 2 2005
> > Buildfile: build2.xml
> > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
> > Detected OS: Windows XP Adding reference: ant.ComponentHelper
> > Setting ro project property: ant.version -> Apache Ant
> > version 1.6.5 compiled on June 2 2005 Setting ro project
> > property: ant.file -> c:\scripts\build2.xml Adding reference:
> > ant.projectHelper Adding reference: ant.parsing.context
> > Adding reference: ant.targets parsing buildfile
> > C:\scripts\build2.xml with URI =
> > file:///C:/scripts/build2.xml Setting ro project property:
> > ant.project.name -> Upload Adding reference: Upload Setting
> > ro project property: ant.file.Upload -> C:\scripts\build2.xml
> > Project base dir set to: C:\scripts
> > +Target:
> > +Target: scpuploadtest
> > [property] Loading C:\scripts\build\build.properties Setting
> > project property: sw.pw -> xxxxxxxxx Setting project
> > property: sw.usr -> pons32 Setting project property:
> > tomcat.home.dir -> /Tomcat Setting project property:
> > ssh.host.sw -> sw.mydomain.net Setting project property:
> > sw.home -> /export/home/pons32 Attempting to create object of
> > type org.apache.tools.ant.helper.DefaultExecutor
> > Adding reference: ant.executor
> > Build sequence for target(s) `scpuploadtest' is
> > [scpuploadtest] Complete build sequence is [scpuploadtest, ]
> >
> > scpuploadtest:
> >
> >
> > [scp] Connecting to sidewinder.mydomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException:
> Auth cancel
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > ... 12 more
> > --- Nested Exception ---
> > com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 3 seconds
> > c:\scripts>
> >
> >
> >
> >
> >
> >
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> > Reply-To: "Ant Users List" <us...@ant.apache.org>
> > To: "Ant Users List" <us...@ant.apache.org>
> > Subject: RE: The SCP task don't scp?! Help Please.
> > Date: Tue, 11 Jul 2006 11:26:21 -0700
> > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by
> > bay0-mc3-f16.bay0.hotmail.com with Microsoft
> > SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700
> > Received: (qmail 710 invoked by uid 500); 11 Jul 2006
> 18:26:57 -0000
> > Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
> > Received: from asf.osuosl.org (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:57 -0700
> > Received: pass (asf.osuosl.org: local policy)
> > Received: from [146.197.27.91] (HELO barriere241.nike.com)
> > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 11:26:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> > Precedence: bulk
> > List-Unsubscribe: <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org>
> > List-Post: <ma...@ant.apache.org>
> > List-Id: "Ant Users List" <user.ant.apache.org>
> > Delivered-To: mailing list user@ant.apache.org
> > X-ASF-Spam-Status: No, hits=0.6
> > required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5
> > Content-class: urn:content-classes:message
> > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> > X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
> > FILETIME=[82542020:01C6A517]
> > X-WSS-ID: 68AD32C41UG437659-01-01
> > X-Virus-Checked: Checked by ClamAV on apache.org
> > Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
> >
> > Not sure why it is not working for you. Please run:
> > ant -debug -f build2.xml -Dfull.build.number=712 buildnum
> >
> > ... and send the output.
> >
> > -Rob A
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> > Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org >
> > Subject: RE: The SCP task don't scp?! Help Please.
> > >
> > > Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar
> > in > my ant/lib but > neither works. Ant's website
> > mentions, "This task has been > tested with > jsch-0.1.2 to
> > jsch-0.1.14."
> > >
> > > Here's a copy of my scp task:
> > >
> > > <scp
> > > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > > build.number}.zip"
> > > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> > trust="yes" /> > > All the values for the properties are
> > loaded from my > build.properties file.
> > >
> > > I wonder if I have to roll back to an older version of
> > jsch, > however, I > remember I had to update them because
> > when I upgraded to Ant > 1.6.5 this task > stopped working
> > regardless of the version of jsch.
> > >
> > >
> > > ----Original Message Follows----
> > > From: "Anderson, Rob (Global Trade)"
> > <Ro...@nike.com> > Reply-To: "Ant Users List"
> > <us...@ant.apache.org> > To: "Ant Users List"
> > <us...@ant.apache.org> > Subject: RE: The SCP task don't
> > scp?! Help Please.
> > > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version: 1.0
> > > Received: from mail.apache.org ([209.237.227.199]) by >
> > bay0-mc12-f11.bay0.hotmail.com with Microsoft >
> > SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> > Received: (qmail 10124 invoked by uid 500); 11 Jul 2006
> > 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> > 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> > (HELO asf.osuosl.org)
> > > (140.211.166.49) by
> > > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:56 -0700 > Received: pass (asf.osuosl.org: local
> > policy) > Received: from [146.197.27.91] (HELO
> > barriere241.nike.com) > (146.197.27.91)
> > > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > > 10:39:55 -0700
> > > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > > Mailing-List: contact user-help@ant.apache.org; run by
> > ezmlm > Precedence: bulk > List-Unsubscribe:
> > <ma...@ant.apache.org>
> > > List-Help: <ma...@ant.apache.org> > List-Post:
> > <ma...@ant.apache.org> > List-Id: "Ant Users List"
> > <user.ant.apache.org> > Delivered-To: mailing list
> > user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> > required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > > X-Spam-Check-By: apache.org
> > > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> > Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > > X-MS-TNEF-Correlator:
> > > Thread-Topic: The SCP task don't scp?! Help Please.
> > > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC) >
> > FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> > 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by ClamAV
> > on apache.org > Return-Path:
> > user-return-57059-pons32=hotmail.com@ant.apache.org
> > >
> > > What are the contents of the jsch-0.1.28.zip file? Please
> > send the > portion of your build.xml that shows your usage
> > of the scp task.
> > >
> > > -Rob Anderson
> > >
> > > > -----Original Message-----
> > > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> > Tuesday, July 11, 2006 9:52 AM > > To: user@ant.apache.org
> > > > Subject: The SCP task don't scp?! Help Please.
> > > >
> > > > Hi all
> > > >
> > > > I downloaded the latest version of jsch-0.1.28.zip from
> > > > jcraft last night for the scp task. Two questions:
> > > >
> > > > 1. Do I have to rename the jar file from
> > jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> > with the version number > > embedded in it?
> > > >
> > > > 2. My SCP tasks have not run successfully in a long
> > time and > > I can't tell what is wrong? This is the
> error I get:
> > > >
> > > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> > buildnum > > Buildfile: build2.xml > > > > buildnum:
> > > >
> > > > [echo] Local build number is: 725
> > > >
> > > > [scp] Connecting to server.ourdomain.net:22
> > > >
> > > > BUILD FAILED
> > > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > > Auth cancel
> > > >
> > > > Total time: 3 seconds
> > > >
> > > > Help please! What am I doing wrong?
> > > >
> > > >
> > _________________________________________________________________
> > > > Don't just search. Find. Check out the new MSN Search!
> > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For > > additional commands, e-mail:
> > user-help@ant.apache.org > > > > > > > > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> > For additional commands, e-mail: user-help@ant.apache.org >
> > > _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> > For additional commands, e-mail: user-help@ant.apache.org > > >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today
> - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
ssh2
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 13:40:51 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc12-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue,
11 Jul 2006 13:42:23 -0700
Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:20 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
FILETIME=[4CE2F6B0:01C6A52A]
X-WSS-ID: 68AAD29A1UG492280-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
What ssh server version are you using on the target host?
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 1:06 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> I even simplified my build2.xml and stripped off my
> build.properties to minimum bare values but still...
>
> <project name="Upload" default="scpuploadtest" basedir=".">
>
>
> <property file="build/build.properties" />
>
>
> <target name="scpuploadtest" description="Forces Anthill
> to build even if there aren't any changes" >
>
> <echo message="" />
>
> <echo message="" />
>
> <scp file="build.number"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> </target>
>
>
>
> </project>
>
> -------------------------
>
> Here's the debug log:
>
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build2.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
> Detected OS: Windows XP Adding reference: ant.ComponentHelper
> Setting ro project property: ant.version -> Apache Ant
> version 1.6.5 compiled on June 2 2005 Setting ro project
> property: ant.file -> c:\scripts\build2.xml Adding reference:
> ant.projectHelper Adding reference: ant.parsing.context
> Adding reference: ant.targets parsing buildfile
> C:\scripts\build2.xml with URI =
> file:///C:/scripts/build2.xml Setting ro project property:
> ant.project.name -> Upload Adding reference: Upload Setting
> ro project property: ant.file.Upload -> C:\scripts\build2.xml
> Project base dir set to: C:\scripts
> +Target:
> +Target: scpuploadtest
> [property] Loading C:\scripts\build\build.properties Setting
> project property: sw.pw -> xxxxxxxxx Setting project
> property: sw.usr -> pons32 Setting project property:
> tomcat.home.dir -> /Tomcat Setting project property:
> ssh.host.sw -> sw.mydomain.net Setting project property:
> sw.home -> /export/home/pons32 Attempting to create object of
> type org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
> Build sequence for target(s) `scpuploadtest' is
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]
>
> scpuploadtest:
>
>
> [scp] Connecting to sidewinder.mydomain.net:22
>
> BUILD FAILED
> C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException: Auth cancel
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> ... 12 more
> --- Nested Exception ---
> com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 3 seconds
> c:\scripts>
>
>
>
>
>
>
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 11:26:21 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc3-f16.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006 18:26:57 -0000
> Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:57 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
> FILETIME=[82542020:01C6A517]
> X-WSS-ID: 68AD32C41UG437659-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
>
> Not sure why it is not working for you. Please run:
> ant -debug -f build2.xml -Dfull.build.number=712 buildnum
>
> ... and send the output.
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org >
> Subject: RE: The SCP task don't scp?! Help Please.
> >
> > Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar
> in > my ant/lib but > neither works. Ant's website
> mentions, "This task has been > tested with > jsch-0.1.2 to
> jsch-0.1.14."
> >
> > Here's a copy of my scp task:
> >
> > <scp
> > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > build.number}.zip"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> trust="yes" /> > > All the values for the properties are
> loaded from my > build.properties file.
> >
> > I wonder if I have to roll back to an older version of
> jsch, > however, I > remember I had to update them because
> when I upgraded to Ant > 1.6.5 this task > stopped working
> regardless of the version of jsch.
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)"
> <Ro...@nike.com> > Reply-To: "Ant Users List"
> <us...@ant.apache.org> > To: "Ant Users List"
> <us...@ant.apache.org> > Subject: RE: The SCP task don't
> scp?! Help Please.
> > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by >
> bay0-mc12-f11.bay0.hotmail.com with Microsoft >
> SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006
> 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:56 -0700 > Received: pass (asf.osuosl.org: local
> policy) > Received: from [146.197.27.91] (HELO
> barriere241.nike.com) > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by
> ezmlm > Precedence: bulk > List-Unsubscribe:
> <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org> > List-Post:
> <ma...@ant.apache.org> > List-Id: "Ant Users List"
> <user.ant.apache.org> > Delivered-To: mailing list
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC) >
> FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by ClamAV
> on apache.org > Return-Path:
> user-return-57059-pons32=hotmail.com@ant.apache.org
> >
> > What are the contents of the jsch-0.1.28.zip file? Please
> send the > portion of your build.xml that shows your usage
> of the scp task.
> >
> > -Rob Anderson
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> Tuesday, July 11, 2006 9:52 AM > > To: user@ant.apache.org
> > > Subject: The SCP task don't scp?! Help Please.
> > >
> > > Hi all
> > >
> > > I downloaded the latest version of jsch-0.1.28.zip from
> > > jcraft last night for the scp task. Two questions:
> > >
> > > 1. Do I have to rename the jar file from
> jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> with the version number > > embedded in it?
> > >
> > > 2. My SCP tasks have not run successfully in a long
> time and > > I can't tell what is wrong? This is the error I get:
> > >
> > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> buildnum > > Buildfile: build2.xml > > > > buildnum:
> > >
> > > [echo] Local build number is: 725
> > >
> > > [scp] Connecting to server.ourdomain.net:22
> > >
> > > BUILD FAILED
> > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > Auth cancel
> > >
> > > Total time: 3 seconds
> > >
> > > Help please! What am I doing wrong?
> > >
> > >
> _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > > additional commands, e-mail:
> user-help@ant.apache.org > > > > > > > > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org > > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
jsp task Please >>>>>>>>>> :(
Posted by karthik <ka...@xius.org>.
Hi Form
Please some body spare me a Task which can compile a single jsp file.
So that i can understand the way jsp compiler works.
I looked at tomcat ant's task at tomcat web site,and was confused.
with regards
Karthik
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
Ok, that was definitely it. I thank you for being patient with me and
walking me through this. I feel dumb now. Thanks again.
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 16:29:25 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc9-f4.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 11
Jul 2006 16:29:58 -0700
Received: (qmail 38371 invoked by uid 500); 11 Jul 2006 23:29:55 -0000
Received: (qmail 38304 invoked by uid 99); 11 Jul 2006 23:29:54 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 16:29:54 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 16:29:51 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalQHLRaHPuC3b7Q320ARa/RJRS+QAARuAg
X-OriginalArrivalTime: 11 Jul 2006 23:29:26.0049 (UTC)
FILETIME=[D91A8910:01C6A541]
X-WSS-ID: 68AAEBDF1UG548170-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57078-pons32=hotmail.com@ant.apache.org
Yes. This could be the problem. If you specify the password in a
properties file you do not need to use the xml equivalent of the @
character, and no quotes. In other words, just put the unaltered
password in the properties file. This should work.
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 4:19 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> Also, I jut thought of this. I pass my password from the
> loaded property file, however, my password has an embedded @
> sign it. I have it it quotes as "word@word" could this
> be the cause?
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 13:40:51 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f19.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 13:42:23 -0700
> Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
> Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 13:42:20 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
> X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
> FILETIME=[4CE2F6B0:01C6A52A]
> X-WSS-ID: 68AAD29A1UG492280-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
>
> What ssh server version are you using on the target host?
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> Tuesday, July 11, 2006 1:06 PM > To: user@ant.apache.org >
> Subject: RE: The SCP task don't scp?! Help Please.
> >
> > I even simplified my build2.xml and stripped off my >
> build.properties to minimum bare values but still...
> >
> > <project name="Upload" default="scpuploadtest" basedir="."> > >
> > <property file="build/build.properties" />
> >
> >
> > <target name="scpuploadtest" description="Forces Anthill
> > to build even if there aren't any changes" > >
> > <echo message="" />
> >
> > <echo message="" />
> >
> > <scp file="build.number"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> trust="yes" /> >
> > </target>
> >
> >
> >
> > </project>
> >
> > -------------------------
> >
> > Here's the debug log:
> >
> > Apache Ant version 1.6.5 compiled on June 2 2005 >
> Buildfile: build2.xml > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre >
> Detected OS: Windows XP Adding reference: ant.ComponentHelper
> > Setting ro project property: ant.version -> Apache Ant >
> version 1.6.5 compiled on June 2 2005 Setting ro project >
> property: ant.file -> c:\scripts\build2.xml Adding reference:
> > ant.projectHelper Adding reference: ant.parsing.context >
> Adding reference: ant.targets parsing buildfile >
> C:\scripts\build2.xml with URI = >
> file:///C:/scripts/build2.xml Setting ro project property:
> > ant.project.name -> Upload Adding reference: Upload
> Setting > ro project property: ant.file.Upload ->
> C:\scripts\build2.xml > Project base dir set to: C:\scripts
> > +Target:
> > +Target: scpuploadtest
> > [property] Loading C:\scripts\build\build.properties
> Setting > project property: sw.pw -> xxxxxxxxx Setting
> project > property: sw.usr -> pons32 Setting project property:
> > tomcat.home.dir -> /Tomcat Setting project property:
> > ssh.host.sw -> sw.mydomain.net Setting project property:
> > sw.home -> /export/home/pons32 Attempting to create object
> of > type org.apache.tools.ant.helper.DefaultExecutor
> > Adding reference: ant.executor
> > Build sequence for target(s) `scpuploadtest' is >
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]
> > > scpuploadtest:
> >
> >
> > [scp] Connecting to sidewinder.mydomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException:
> Auth cancel
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > ... 12 more
> > --- Nested Exception ---
> > com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 3 seconds
> > c:\scripts>
> >
> >
> >
> >
> >
> >
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)"
> <Ro...@nike.com> > Reply-To: "Ant Users List"
> <us...@ant.apache.org> > To: "Ant Users List"
> <us...@ant.apache.org> > Subject: RE: The SCP task don't
> scp?! Help Please.
> > Date: Tue, 11 Jul 2006 11:26:21 -0700 > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by >
> bay0-mc3-f16.bay0.hotmail.com with Microsoft >
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700 >
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006
> 18:26:57 -0000 > Received: (qmail 699 invoked by uid 99); 11
> Jul 2006 18:26:57 -0000 > Received: from asf.osuosl.org
> (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:57 -0700 > Received: pass (asf.osuosl.org: local
> policy) > Received: from [146.197.27.91] (HELO
> barriere241.nike.com) > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 11:26:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by
> ezmlm > Precedence: bulk > List-Unsubscribe:
> <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org> > List-Post:
> <ma...@ant.apache.org> > List-Id: "Ant Users List"
> <user.ant.apache.org> > Delivered-To: mailing list
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> > X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC) >
> FILETIME=[82542020:01C6A517] > X-WSS-ID:
> 68AD32C41UG437659-01-01 > X-Virus-Checked: Checked by ClamAV
> on apache.org > Return-Path:
> user-return-57067-pons32=hotmail.com@ant.apache.org
> >
> > Not sure why it is not working for you. Please run:
> > ant -debug -f build2.xml -Dfull.build.number=712 buildnum
> > > ... and send the output.
> >
> > -Rob A
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> > Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org
> > > Subject: RE: The SCP task don't scp?! Help Please.
> > >
> > > Basically I use either jsch-0.1.25.jar or
> jsch-0.1.28.jar > in > my ant/lib but > neither works.
> Ant's website > mentions, "This task has been > tested with
> > jsch-0.1.2 to > jsch-0.1.14."
> > >
> > > Here's a copy of my scp task:
> > >
> > > <scp
> > > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > > build.number}.zip"
> > > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> > trust="yes" /> > > All the values for the properties are
> > loaded from my > build.properties file.
> > >
> > > I wonder if I have to roll back to an older version of
> > jsch, > however, I > remember I had to update them
> because > when I upgraded to Ant > 1.6.5 this task >
> stopped working > regardless of the version of jsch.
> > >
> > >
> > > ----Original Message Follows----
> > > From: "Anderson, Rob (Global Trade)"
> > <Ro...@nike.com> > Reply-To: "Ant Users List"
> > <us...@ant.apache.org> > To: "Ant Users List"
> > <us...@ant.apache.org> > Subject: RE: The SCP task don't
> > scp?! Help Please.
> > > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version:
> 1.0 > > Received: from mail.apache.org ([209.237.227.199])
> by > > bay0-mc12-f11.bay0.hotmail.com with Microsoft > >
> SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> > Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 >
> 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> > 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> > (HELO asf.osuosl.org)
> > > (140.211.166.49) by
> > > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:56 -0700 > Received: pass (asf.osuosl.org: local >
> policy) > Received: from [146.197.27.91] (HELO >
> barriere241.nike.com) > (146.197.27.91)
> > > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > > 10:39:55 -0700
> > > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > > Mailing-List: contact user-help@ant.apache.org; run by
> > ezmlm > Precedence: bulk > List-Unsubscribe:
> > <ma...@ant.apache.org>
> > > List-Help: <ma...@ant.apache.org> > List-Post:
> > <ma...@ant.apache.org> > List-Id: "Ant Users List"
> > <user.ant.apache.org> > Delivered-To: mailing list >
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 > >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > > X-Spam-Check-By: apache.org
> > > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > > X-MimeOLE: Produced By Microsoft Exchange V6.5 > >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > > X-MS-TNEF-Correlator:
> > > Thread-Topic: The SCP task don't scp?! Help Please.
> > > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
> > > FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> > 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by
> ClamAV > on apache.org > Return-Path:
> > user-return-57059-pons32=hotmail.com@ant.apache.org
> > >
> > > What are the contents of the jsch-0.1.28.zip file?
> Please > send the > portion of your build.xml that shows
> your usage > of the scp task.
> > >
> > > -Rob Anderson
> > >
> > > > -----Original Message-----
> > > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> > Tuesday, July 11, 2006 9:52 AM > > To:
> user@ant.apache.org > > > Subject: The SCP task don't scp?!
> Help Please.
> > > >
> > > > Hi all
> > > >
> > > > I downloaded the latest version of jsch-0.1.28.zip
> from > > > jcraft last night for the scp task. Two questions:
> > > >
> > > > 1. Do I have to rename the jar file from >
> jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> > with the version number > > embedded in it?
> > > >
> > > > 2. My SCP tasks have not run successfully in a long
> > time and > > I can't tell what is wrong? This is the error I get:
> > > >
> > > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> > buildnum > > Buildfile: build2.xml > > > > buildnum:
> > > >
> > > > [echo] Local build number is: 725
> > > >
> > > > [scp] Connecting to server.ourdomain.net:22
> > > >
> > > > BUILD FAILED
> > > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > > Auth cancel
> > > >
> > > > Total time: 3 seconds
> > > >
> > > > Help please! What am I doing wrong?
> > > >
> > > >
> > _________________________________________________________________
> > > > Don't just search. Find. Check out the new MSN Search!
> > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org > For > > additional
> commands, e-mail:
> > user-help@ant.apache.org > > > > > > > > > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> user-help@ant.apache.org > > >
> _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> user-help@ant.apache.org > > > > > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > additional commands, e-mail: user-help@ant.apache.org
> > > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > additional commands, e-mail: user-help@ant.apache.org > > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today
> - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Yes. This could be the problem. If you specify the password in a
properties file you do not need to use the xml equivalent of the @
character, and no quotes. In other words, just put the unaltered
password in the properties file. This should work.
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 4:19 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> Also, I jut thought of this. I pass my password from the
> loaded property file, however, my password has an embedded @
> sign it. I have it it quotes as "word@word" could this
> be the cause?
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 13:40:51 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f19.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 13:42:23 -0700
> Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
> Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 13:42:20 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
> X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
> FILETIME=[4CE2F6B0:01C6A52A]
> X-WSS-ID: 68AAD29A1UG492280-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
>
> What ssh server version are you using on the target host?
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> Tuesday, July 11, 2006 1:06 PM > To: user@ant.apache.org >
> Subject: RE: The SCP task don't scp?! Help Please.
> >
> > I even simplified my build2.xml and stripped off my >
> build.properties to minimum bare values but still...
> >
> > <project name="Upload" default="scpuploadtest" basedir="."> > >
> > <property file="build/build.properties" />
> >
> >
> > <target name="scpuploadtest" description="Forces Anthill
> > to build even if there aren't any changes" > >
> > <echo message="" />
> >
> > <echo message="" />
> >
> > <scp file="build.number"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> trust="yes" /> >
> > </target>
> >
> >
> >
> > </project>
> >
> > -------------------------
> >
> > Here's the debug log:
> >
> > Apache Ant version 1.6.5 compiled on June 2 2005 >
> Buildfile: build2.xml > Adding reference: ant.PropertyHelper
> > Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre >
> Detected OS: Windows XP Adding reference: ant.ComponentHelper
> > Setting ro project property: ant.version -> Apache Ant >
> version 1.6.5 compiled on June 2 2005 Setting ro project >
> property: ant.file -> c:\scripts\build2.xml Adding reference:
> > ant.projectHelper Adding reference: ant.parsing.context >
> Adding reference: ant.targets parsing buildfile >
> C:\scripts\build2.xml with URI = >
> file:///C:/scripts/build2.xml Setting ro project property:
> > ant.project.name -> Upload Adding reference: Upload
> Setting > ro project property: ant.file.Upload ->
> C:\scripts\build2.xml > Project base dir set to: C:\scripts
> > +Target:
> > +Target: scpuploadtest
> > [property] Loading C:\scripts\build\build.properties
> Setting > project property: sw.pw -> xxxxxxxxx Setting
> project > property: sw.usr -> pons32 Setting project property:
> > tomcat.home.dir -> /Tomcat Setting project property:
> > ssh.host.sw -> sw.mydomain.net Setting project property:
> > sw.home -> /export/home/pons32 Attempting to create object
> of > type org.apache.tools.ant.helper.DefaultExecutor
> > Adding reference: ant.executor
> > Build sequence for target(s) `scpuploadtest' is >
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]
> > > scpuploadtest:
> >
> >
> > [scp] Connecting to sidewinder.mydomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException:
> Auth cancel
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > ... 12 more
> > --- Nested Exception ---
> > com.jcraft.jsch.JSchException: Auth cancel
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at com.jcraft.jsch.Session.connect(Unknown Source)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> > e.java:180)
> > at
> > org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> > at
> >
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> > 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.executeSortedTargets(Project.java:1216)
> > at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> > at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > at org.apache.tools.ant.Main.runBuild(Main.java:668)
> > at org.apache.tools.ant.Main.startAnt(Main.java:187)
> > at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 3 seconds
> > c:\scripts>
> >
> >
> >
> >
> >
> >
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)"
> <Ro...@nike.com> > Reply-To: "Ant Users List"
> <us...@ant.apache.org> > To: "Ant Users List"
> <us...@ant.apache.org> > Subject: RE: The SCP task don't
> scp?! Help Please.
> > Date: Tue, 11 Jul 2006 11:26:21 -0700 > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by >
> bay0-mc3-f16.bay0.hotmail.com with Microsoft >
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700 >
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006
> 18:26:57 -0000 > Received: (qmail 699 invoked by uid 99); 11
> Jul 2006 18:26:57 -0000 > Received: from asf.osuosl.org
> (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:57 -0700 > Received: pass (asf.osuosl.org: local
> policy) > Received: from [146.197.27.91] (HELO
> barriere241.nike.com) > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 11:26:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by
> ezmlm > Precedence: bulk > List-Unsubscribe:
> <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org> > List-Post:
> <ma...@ant.apache.org> > List-Id: "Ant Users List"
> <user.ant.apache.org> > Delivered-To: mailing list
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> > X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC) >
> FILETIME=[82542020:01C6A517] > X-WSS-ID:
> 68AD32C41UG437659-01-01 > X-Virus-Checked: Checked by ClamAV
> on apache.org > Return-Path:
> user-return-57067-pons32=hotmail.com@ant.apache.org
> >
> > Not sure why it is not working for you. Please run:
> > ant -debug -f build2.xml -Dfull.build.number=712 buildnum
> > > ... and send the output.
> >
> > -Rob A
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> > Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org
> > > Subject: RE: The SCP task don't scp?! Help Please.
> > >
> > > Basically I use either jsch-0.1.25.jar or
> jsch-0.1.28.jar > in > my ant/lib but > neither works.
> Ant's website > mentions, "This task has been > tested with
> > jsch-0.1.2 to > jsch-0.1.14."
> > >
> > > Here's a copy of my scp task:
> > >
> > > <scp
> > > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > > build.number}.zip"
> > > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> > trust="yes" /> > > All the values for the properties are
> > loaded from my > build.properties file.
> > >
> > > I wonder if I have to roll back to an older version of
> > jsch, > however, I > remember I had to update them
> because > when I upgraded to Ant > 1.6.5 this task >
> stopped working > regardless of the version of jsch.
> > >
> > >
> > > ----Original Message Follows----
> > > From: "Anderson, Rob (Global Trade)"
> > <Ro...@nike.com> > Reply-To: "Ant Users List"
> > <us...@ant.apache.org> > To: "Ant Users List"
> > <us...@ant.apache.org> > Subject: RE: The SCP task don't
> > scp?! Help Please.
> > > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version:
> 1.0 > > Received: from mail.apache.org ([209.237.227.199])
> by > > bay0-mc12-f11.bay0.hotmail.com with Microsoft > >
> SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> > Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 >
> 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> > 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> > (HELO asf.osuosl.org)
> > > (140.211.166.49) by
> > > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:56 -0700 > Received: pass (asf.osuosl.org: local >
> policy) > Received: from [146.197.27.91] (HELO >
> barriere241.nike.com) > (146.197.27.91)
> > > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > > 10:39:55 -0700
> > > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > > Mailing-List: contact user-help@ant.apache.org; run by
> > ezmlm > Precedence: bulk > List-Unsubscribe:
> > <ma...@ant.apache.org>
> > > List-Help: <ma...@ant.apache.org> > List-Post:
> > <ma...@ant.apache.org> > List-Id: "Ant Users List"
> > <user.ant.apache.org> > Delivered-To: mailing list >
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 > >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > > X-Spam-Check-By: apache.org
> > > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > > X-MimeOLE: Produced By Microsoft Exchange V6.5 > >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > > X-MS-TNEF-Correlator:
> > > Thread-Topic: The SCP task don't scp?! Help Please.
> > > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
> > > FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> > 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by
> ClamAV > on apache.org > Return-Path:
> > user-return-57059-pons32=hotmail.com@ant.apache.org
> > >
> > > What are the contents of the jsch-0.1.28.zip file?
> Please > send the > portion of your build.xml that shows
> your usage > of the scp task.
> > >
> > > -Rob Anderson
> > >
> > > > -----Original Message-----
> > > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> > Tuesday, July 11, 2006 9:52 AM > > To:
> user@ant.apache.org > > > Subject: The SCP task don't scp?!
> Help Please.
> > > >
> > > > Hi all
> > > >
> > > > I downloaded the latest version of jsch-0.1.28.zip
> from > > > jcraft last night for the scp task. Two questions:
> > > >
> > > > 1. Do I have to rename the jar file from >
> jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> > with the version number > > embedded in it?
> > > >
> > > > 2. My SCP tasks have not run successfully in a long
> > time and > > I can't tell what is wrong? This is the error I get:
> > > >
> > > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> > buildnum > > Buildfile: build2.xml > > > > buildnum:
> > > >
> > > > [echo] Local build number is: 725
> > > >
> > > > [scp] Connecting to server.ourdomain.net:22
> > > >
> > > > BUILD FAILED
> > > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > > Auth cancel
> > > >
> > > > Total time: 3 seconds
> > > >
> > > > Help please! What am I doing wrong?
> > > >
> > > >
> > _________________________________________________________________
> > > > Don't just search. Find. Check out the new MSN Search!
> > > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org > For > > additional
> commands, e-mail:
> > user-help@ant.apache.org > > > > > > > > > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> user-help@ant.apache.org > > >
> _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> user-help@ant.apache.org > > > > > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > additional commands, e-mail: user-help@ant.apache.org
> > > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > additional commands, e-mail: user-help@ant.apache.org > > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today
> - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
Also, I jut thought of this. I pass my password from the loaded property
file, however, my password has an embedded @ sign it. I have it it quotes
as "word@word" could this be the cause?
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 13:40:51 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc12-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue,
11 Jul 2006 13:42:23 -0700
Received: (qmail 33936 invoked by uid 500); 11 Jul 2006 20:42:21 -0000
Received: (qmail 33925 invoked by uid 99); 11 Jul 2006 20:42:21 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:21 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 13:42:20 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalJYlcfNIzlj3KQjCch+IRY9+ClAABKI9A
X-OriginalArrivalTime: 11 Jul 2006 20:40:52.0379 (UTC)
FILETIME=[4CE2F6B0:01C6A52A]
X-WSS-ID: 68AAD29A1UG492280-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57071-pons32=hotmail.com@ant.apache.org
What ssh server version are you using on the target host?
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 1:06 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> I even simplified my build2.xml and stripped off my
> build.properties to minimum bare values but still...
>
> <project name="Upload" default="scpuploadtest" basedir=".">
>
>
> <property file="build/build.properties" />
>
>
> <target name="scpuploadtest" description="Forces Anthill
> to build even if there aren't any changes" >
>
> <echo message="" />
>
> <echo message="" />
>
> <scp file="build.number"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> </target>
>
>
>
> </project>
>
> -------------------------
>
> Here's the debug log:
>
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build2.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
> Detected OS: Windows XP Adding reference: ant.ComponentHelper
> Setting ro project property: ant.version -> Apache Ant
> version 1.6.5 compiled on June 2 2005 Setting ro project
> property: ant.file -> c:\scripts\build2.xml Adding reference:
> ant.projectHelper Adding reference: ant.parsing.context
> Adding reference: ant.targets parsing buildfile
> C:\scripts\build2.xml with URI =
> file:///C:/scripts/build2.xml Setting ro project property:
> ant.project.name -> Upload Adding reference: Upload Setting
> ro project property: ant.file.Upload -> C:\scripts\build2.xml
> Project base dir set to: C:\scripts
> +Target:
> +Target: scpuploadtest
> [property] Loading C:\scripts\build\build.properties Setting
> project property: sw.pw -> xxxxxxxxx Setting project
> property: sw.usr -> pons32 Setting project property:
> tomcat.home.dir -> /Tomcat Setting project property:
> ssh.host.sw -> sw.mydomain.net Setting project property:
> sw.home -> /export/home/pons32 Attempting to create object of
> type org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
> Build sequence for target(s) `scpuploadtest' is
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]
>
> scpuploadtest:
>
>
> [scp] Connecting to sidewinder.mydomain.net:22
>
> BUILD FAILED
> C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException: Auth cancel
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> ... 12 more
> --- Nested Exception ---
> com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 3 seconds
> c:\scripts>
>
>
>
>
>
>
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 11:26:21 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc3-f16.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006 18:26:57 -0000
> Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:57 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
> FILETIME=[82542020:01C6A517]
> X-WSS-ID: 68AD32C41UG437659-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
>
> Not sure why it is not working for you. Please run:
> ant -debug -f build2.xml -Dfull.build.number=712 buildnum
>
> ... and send the output.
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org >
> Subject: RE: The SCP task don't scp?! Help Please.
> >
> > Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar
> in > my ant/lib but > neither works. Ant's website
> mentions, "This task has been > tested with > jsch-0.1.2 to
> jsch-0.1.14."
> >
> > Here's a copy of my scp task:
> >
> > <scp
> > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > build.number}.zip"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> trust="yes" /> > > All the values for the properties are
> loaded from my > build.properties file.
> >
> > I wonder if I have to roll back to an older version of
> jsch, > however, I > remember I had to update them because
> when I upgraded to Ant > 1.6.5 this task > stopped working
> regardless of the version of jsch.
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)"
> <Ro...@nike.com> > Reply-To: "Ant Users List"
> <us...@ant.apache.org> > To: "Ant Users List"
> <us...@ant.apache.org> > Subject: RE: The SCP task don't
> scp?! Help Please.
> > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by >
> bay0-mc12-f11.bay0.hotmail.com with Microsoft >
> SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006
> 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:56 -0700 > Received: pass (asf.osuosl.org: local
> policy) > Received: from [146.197.27.91] (HELO
> barriere241.nike.com) > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by
> ezmlm > Precedence: bulk > List-Unsubscribe:
> <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org> > List-Post:
> <ma...@ant.apache.org> > List-Id: "Ant Users List"
> <user.ant.apache.org> > Delivered-To: mailing list
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC) >
> FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by ClamAV
> on apache.org > Return-Path:
> user-return-57059-pons32=hotmail.com@ant.apache.org
> >
> > What are the contents of the jsch-0.1.28.zip file? Please
> send the > portion of your build.xml that shows your usage
> of the scp task.
> >
> > -Rob Anderson
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> Tuesday, July 11, 2006 9:52 AM > > To: user@ant.apache.org
> > > Subject: The SCP task don't scp?! Help Please.
> > >
> > > Hi all
> > >
> > > I downloaded the latest version of jsch-0.1.28.zip from
> > > jcraft last night for the scp task. Two questions:
> > >
> > > 1. Do I have to rename the jar file from
> jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> with the version number > > embedded in it?
> > >
> > > 2. My SCP tasks have not run successfully in a long
> time and > > I can't tell what is wrong? This is the error I get:
> > >
> > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> buildnum > > Buildfile: build2.xml > > > > buildnum:
> > >
> > > [echo] Local build number is: 725
> > >
> > > [scp] Connecting to server.ourdomain.net:22
> > >
> > > BUILD FAILED
> > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > Auth cancel
> > >
> > > Total time: 3 seconds
> > >
> > > Help please! What am I doing wrong?
> > >
> > >
> _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > > additional commands, e-mail:
> user-help@ant.apache.org > > > > > > > > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org > > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
What ssh server version are you using on the target host?
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 1:06 PM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> I even simplified my build2.xml and stripped off my
> build.properties to minimum bare values but still...
>
> <project name="Upload" default="scpuploadtest" basedir=".">
>
>
> <property file="build/build.properties" />
>
>
> <target name="scpuploadtest" description="Forces Anthill
> to build even if there aren't any changes" >
>
> <echo message="" />
>
> <echo message="" />
>
> <scp file="build.number"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> </target>
>
>
>
> </project>
>
> -------------------------
>
> Here's the debug log:
>
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build2.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
> Detected OS: Windows XP Adding reference: ant.ComponentHelper
> Setting ro project property: ant.version -> Apache Ant
> version 1.6.5 compiled on June 2 2005 Setting ro project
> property: ant.file -> c:\scripts\build2.xml Adding reference:
> ant.projectHelper Adding reference: ant.parsing.context
> Adding reference: ant.targets parsing buildfile
> C:\scripts\build2.xml with URI =
> file:///C:/scripts/build2.xml Setting ro project property:
> ant.project.name -> Upload Adding reference: Upload Setting
> ro project property: ant.file.Upload -> C:\scripts\build2.xml
> Project base dir set to: C:\scripts
> +Target:
> +Target: scpuploadtest
> [property] Loading C:\scripts\build\build.properties Setting
> project property: sw.pw -> xxxxxxxxx Setting project
> property: sw.usr -> pons32 Setting project property:
> tomcat.home.dir -> /Tomcat Setting project property:
> ssh.host.sw -> sw.mydomain.net Setting project property:
> sw.home -> /export/home/pons32 Attempting to create object of
> type org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
> Build sequence for target(s) `scpuploadtest' is
> [scpuploadtest] Complete build sequence is [scpuploadtest, ]
>
> scpuploadtest:
>
>
> [scp] Connecting to sidewinder.mydomain.net:22
>
> BUILD FAILED
> C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException: Auth cancel
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> ... 12 more
> --- Nested Exception ---
> com.jcraft.jsch.JSchException: Auth cancel
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at com.jcraft.jsch.Session.connect(Unknown Source)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
> e.java:180)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
> at
> org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
> 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.executeSortedTargets(Project.java:1216)
> at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
> at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:187)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 3 seconds
> c:\scripts>
>
>
>
>
>
>
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 11:26:21 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc3-f16.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue, 11 Jul 2006 11:27:02 -0700
> Received: (qmail 710 invoked by uid 500); 11 Jul 2006 18:26:57 -0000
> Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:57 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 11:26:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
> X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
> FILETIME=[82542020:01C6A517]
> X-WSS-ID: 68AD32C41UG437659-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
>
> Not sure why it is not working for you. Please run:
> ant -debug -f build2.xml -Dfull.build.number=712 buildnum
>
> ... and send the output.
>
> -Rob A
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com] > Sent:
> Tuesday, July 11, 2006 11:06 AM > To: user@ant.apache.org >
> Subject: RE: The SCP task don't scp?! Help Please.
> >
> > Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar
> in > my ant/lib but > neither works. Ant's website
> mentions, "This task has been > tested with > jsch-0.1.2 to
> jsch-0.1.14."
> >
> > Here's a copy of my scp task:
> >
> > <scp
> > file="${deploy.zip.dir}/build${full.build.number}/build${full.
> > build.number}.zip"
> > todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}"
> trust="yes" /> > > All the values for the properties are
> loaded from my > build.properties file.
> >
> > I wonder if I have to roll back to an older version of
> jsch, > however, I > remember I had to update them because
> when I upgraded to Ant > 1.6.5 this task > stopped working
> regardless of the version of jsch.
> >
> >
> > ----Original Message Follows----
> > From: "Anderson, Rob (Global Trade)"
> <Ro...@nike.com> > Reply-To: "Ant Users List"
> <us...@ant.apache.org> > To: "Ant Users List"
> <us...@ant.apache.org> > Subject: RE: The SCP task don't
> scp?! Help Please.
> > Date: Tue, 11 Jul 2006 10:39:27 -0700 > MIME-Version: 1.0
> > Received: from mail.apache.org ([209.237.227.199]) by >
> bay0-mc12-f11.bay0.hotmail.com with Microsoft >
> SMTPSVC(6.0.3790.2444); Tue, > 11 Jul 2006 10:40:22 -0700 >
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006
> 17:39:56 -0000 > Received: (qmail 10113 invoked by uid 99);
> 11 Jul 2006 17:39:56 -0000 > Received: from asf.osuosl.org
> (HELO asf.osuosl.org)
> > (140.211.166.49) by
> > apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:56 -0700 > Received: pass (asf.osuosl.org: local
> policy) > Received: from [146.197.27.91] (HELO
> barriere241.nike.com) > (146.197.27.91)
> > by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> > 10:39:55 -0700
> > X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> > Mailing-List: contact user-help@ant.apache.org; run by
> ezmlm > Precedence: bulk > List-Unsubscribe:
> <ma...@ant.apache.org>
> > List-Help: <ma...@ant.apache.org> > List-Post:
> <ma...@ant.apache.org> > List-Id: "Ant Users List"
> <user.ant.apache.org> > Delivered-To: mailing list
> user@ant.apache.org > X-ASF-Spam-Status: No, hits=0.6 >
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> > X-Spam-Check-By: apache.org
> > X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> > X-MimeOLE: Produced By Microsoft Exchange V6.5 >
> Content-class: urn:content-classes:message > X-MS-Has-Attach:
> > X-MS-TNEF-Correlator:
> > Thread-Topic: The SCP task don't scp?! Help Please.
> > Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> > X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC) >
> FILETIME=[F5433500:01C6A510] > X-WSS-ID:
> 68AD3DDA1UG416368-01-01 > X-Virus-Checked: Checked by ClamAV
> on apache.org > Return-Path:
> user-return-57059-pons32=hotmail.com@ant.apache.org
> >
> > What are the contents of the jsch-0.1.28.zip file? Please
> send the > portion of your build.xml that shows your usage
> of the scp task.
> >
> > -Rob Anderson
> >
> > > -----Original Message-----
> > > From: Res Pons [mailto:pons32@hotmail.com] > > Sent:
> Tuesday, July 11, 2006 9:52 AM > > To: user@ant.apache.org
> > > Subject: The SCP task don't scp?! Help Please.
> > >
> > > Hi all
> > >
> > > I downloaded the latest version of jsch-0.1.28.zip from
> > > jcraft last night for the scp task. Two questions:
> > >
> > > 1. Do I have to rename the jar file from
> jsch-0.1.28.zip to > > jsch.jar or would ANT understand it
> with the version number > > embedded in it?
> > >
> > > 2. My SCP tasks have not run successfully in a long
> time and > > I can't tell what is wrong? This is the error I get:
> > >
> > > C:\scripts>ant -f build2.xml -Dfull.build.number=712
> buildnum > > Buildfile: build2.xml > > > > buildnum:
> > >
> > > [echo] Local build number is: 725
> > >
> > > [scp] Connecting to server.ourdomain.net:22
> > >
> > > BUILD FAILED
> > > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> > Auth cancel
> > >
> > > Total time: 3 seconds
> > >
> > > Help please! What am I doing wrong?
> > >
> > >
> _________________________________________________________________
> > > Don't just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For > > additional commands, e-mail:
> user-help@ant.apache.org > > > > > > > > >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >
> For additional commands, e-mail: user-help@ant.apache.org > > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar - get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by Res Pons <po...@hotmail.com>.
I even simplified my build2.xml and stripped off my build.properties to
minimum bare values but still...
<project name="Upload" default="scpuploadtest" basedir=".">
<property file="build/build.properties" />
<target name="scpuploadtest" description="Forces Anthill to build even
if there aren't any changes" >
<echo message="" />
<echo message="" />
<scp file="build.number"
todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
</target>
</project>
-------------------------
Here's the debug log:
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build2.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Java\jdk1.5.0_06\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5
compiled on June 2 2005
Setting ro project property: ant.file -> c:\scripts\build2.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\scripts\build2.xml with URI =
file:///C:/scripts/build2.xml
Setting ro project property: ant.project.name -> Upload
Adding reference: Upload
Setting ro project property: ant.file.Upload -> C:\scripts\build2.xml
Project base dir set to: C:\scripts
+Target:
+Target: scpuploadtest
[property] Loading C:\scripts\build\build.properties
Setting project property: sw.pw -> xxxxxxxxx
Setting project property: sw.usr -> pons32
Setting project property: tomcat.home.dir -> /Tomcat
Setting project property: ssh.host.sw -> sw.mydomain.net
Setting project property: sw.home -> /export/home/pons32
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `scpuploadtest' is [scpuploadtest]
Complete build sequence is [scpuploadtest, ]
scpuploadtest:
[scp] Connecting to sidewinder.mydomain.net:22
BUILD FAILED
C:\scripts\build2.xml:16: com.jcraft.jsch.JSchException: Auth cancel
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.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at
org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
e.java:180)
at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
... 12 more
--- Nested Exception ---
com.jcraft.jsch.JSchException: Auth cancel
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at
org.apache.tools.ant.taskdefs.optional.ssh.SSHBase.openSession(SSHBas
e.java:180)
at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.upload(Scp.java:249)
at
org.apache.tools.ant.taskdefs.optional.ssh.Scp.execute(Scp.java:176)
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.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 3 seconds
c:\scripts>
----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>
Subject: RE: The SCP task don't scp?! Help Please.
Date: Tue, 11 Jul 2006 11:26:21 -0700
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc3-f16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 11
Jul 2006 11:27:02 -0700
Received: (qmail 710 invoked by uid 500); 11 Jul 2006 18:26:57 -0000
Received: (qmail 699 invoked by uid 99); 11 Jul 2006 18:26:57 -0000
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by
apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:57 -0700
Received: pass (asf.osuosl.org: local policy)
Received: from [146.197.27.91] (HELO barriere241.nike.com) (146.197.27.91)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 11:26:55 -0700
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <ma...@ant.apache.org>
List-Help: <ma...@ant.apache.org>
List-Post: <ma...@ant.apache.org>
List-Id: "Ant Users List" <user.ant.apache.org>
Delivered-To: mailing list user@ant.apache.org
X-ASF-Spam-Status: No, hits=0.6
required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
X-Spam-Check-By: apache.org
X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: The SCP task don't scp?! Help Please.
Thread-Index: AcalFMm492fIMsDfS7GoSgHdgkNtlAAAobJQ
X-OriginalArrivalTime: 11 Jul 2006 18:26:21.0602 (UTC)
FILETIME=[82542020:01C6A517]
X-WSS-ID: 68AD32C41UG437659-01-01
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: user-return-57067-pons32=hotmail.com@ant.apache.org
Not sure why it is not working for you. Please run:
ant -debug -f build2.xml -Dfull.build.number=712 buildnum
... and send the output.
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 11:06 AM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar in
> my ant/lib but
> neither works. Ant's website mentions, "This task has been
> tested with
> jsch-0.1.2 to jsch-0.1.14."
>
> Here's a copy of my scp task:
>
> <scp
> file="${deploy.zip.dir}/build${full.build.number}/build${full.
> build.number}.zip"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> All the values for the properties are loaded from my
> build.properties file.
>
> I wonder if I have to roll back to an older version of jsch,
> however, I
> remember I had to update them because when I upgraded to Ant
> 1.6.5 this task
> stopped working regardless of the version of jsch.
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 10:39:27 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f11.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 10:40:22 -0700
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 17:39:56 -0000
> Received: (qmail 10113 invoked by uid 99); 11 Jul 2006 17:39:56 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 10:39:56 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
> FILETIME=[F5433500:01C6A510]
> X-WSS-ID: 68AD3DDA1UG416368-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57059-pons32=hotmail.com@ant.apache.org
>
> What are the contents of the jsch-0.1.28.zip file? Please send the
> portion of your build.xml that shows your usage of the scp task.
>
> -Rob Anderson
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com]
> > Sent: Tuesday, July 11, 2006 9:52 AM
> > To: user@ant.apache.org
> > Subject: The SCP task don't scp?! Help Please.
> >
> > Hi all
> >
> > I downloaded the latest version of jsch-0.1.28.zip from
> > jcraft last night for the scp task. Two questions:
> >
> > 1. Do I have to rename the jar file from jsch-0.1.28.zip to
> > jsch.jar or would ANT understand it with the version number
> > embedded in it?
> >
> > 2. My SCP tasks have not run successfully in a long time and
> > I can't tell what is wrong? This is the error I get:
> >
> > C:\scripts>ant -f build2.xml -Dfull.build.number=712 buildnum
> > Buildfile: build2.xml
> >
> > buildnum:
> >
> > [echo] Local build number is: 725
> >
> > [scp] Connecting to server.ourdomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> Auth cancel
> >
> > Total time: 3 seconds
> >
> > Help please! What am I doing wrong?
> >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: The SCP task don't scp?! Help Please.
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Not sure why it is not working for you. Please run:
ant -debug -f build2.xml -Dfull.build.number=712 buildnum
... and send the output.
-Rob A
> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com]
> Sent: Tuesday, July 11, 2006 11:06 AM
> To: user@ant.apache.org
> Subject: RE: The SCP task don't scp?! Help Please.
>
> Basically I use either jsch-0.1.25.jar or jsch-0.1.28.jar in
> my ant/lib but
> neither works. Ant's website mentions, "This task has been
> tested with
> jsch-0.1.2 to jsch-0.1.14."
>
> Here's a copy of my scp task:
>
> <scp
> file="${deploy.zip.dir}/build${full.build.number}/build${full.
> build.number}.zip"
> todir="${sw.usr}:${sw.pw}@${ssh.host.sw}:${sw.home}" trust="yes" />
>
> All the values for the properties are loaded from my
> build.properties file.
>
> I wonder if I have to roll back to an older version of jsch,
> however, I
> remember I had to update them because when I upgraded to Ant
> 1.6.5 this task
> stopped working regardless of the version of jsch.
>
>
> ----Original Message Follows----
> From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
> Reply-To: "Ant Users List" <us...@ant.apache.org>
> To: "Ant Users List" <us...@ant.apache.org>
> Subject: RE: The SCP task don't scp?! Help Please.
> Date: Tue, 11 Jul 2006 10:39:27 -0700
> MIME-Version: 1.0
> Received: from mail.apache.org ([209.237.227.199]) by
> bay0-mc12-f11.bay0.hotmail.com with Microsoft
> SMTPSVC(6.0.3790.2444); Tue,
> 11 Jul 2006 10:40:22 -0700
> Received: (qmail 10124 invoked by uid 500); 11 Jul 2006 17:39:56 -0000
> Received: (qmail 10113 invoked by uid 99); 11 Jul 2006 17:39:56 -0000
> Received: from asf.osuosl.org (HELO asf.osuosl.org)
> (140.211.166.49) by
> apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 10:39:56 -0700
> Received: pass (asf.osuosl.org: local policy)
> Received: from [146.197.27.91] (HELO barriere241.nike.com)
> (146.197.27.91)
> by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006
> 10:39:55 -0700
> X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
> Mailing-List: contact user-help@ant.apache.org; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: <ma...@ant.apache.org>
> List-Help: <ma...@ant.apache.org>
> List-Post: <ma...@ant.apache.org>
> List-Id: "Ant Users List" <user.ant.apache.org>
> Delivered-To: mailing list user@ant.apache.org
> X-ASF-Spam-Status: No, hits=0.6
> required=10.0tests=MAILTO_TO_SPAM_ADDR,PLING_QUERY
> X-Spam-Check-By: apache.org
> X-Server-Uuid: BDE2CC8B-9671-48D4-9A25-CA756DA0A621
> X-MimeOLE: Produced By Microsoft Exchange V6.5
> Content-class: urn:content-classes:message
> X-MS-Has-Attach:
> X-MS-TNEF-Correlator:
> Thread-Topic: The SCP task don't scp?! Help Please.
> Thread-Index: AcalCmh0Z1/lmjIaRuqFIyL5XbymFQABlOFg
> X-OriginalArrivalTime: 11 Jul 2006 17:39:27.0952 (UTC)
> FILETIME=[F5433500:01C6A510]
> X-WSS-ID: 68AD3DDA1UG416368-01-01
> X-Virus-Checked: Checked by ClamAV on apache.org
> Return-Path: user-return-57059-pons32=hotmail.com@ant.apache.org
>
> What are the contents of the jsch-0.1.28.zip file? Please send the
> portion of your build.xml that shows your usage of the scp task.
>
> -Rob Anderson
>
> > -----Original Message-----
> > From: Res Pons [mailto:pons32@hotmail.com]
> > Sent: Tuesday, July 11, 2006 9:52 AM
> > To: user@ant.apache.org
> > Subject: The SCP task don't scp?! Help Please.
> >
> > Hi all
> >
> > I downloaded the latest version of jsch-0.1.28.zip from
> > jcraft last night for the scp task. Two questions:
> >
> > 1. Do I have to rename the jar file from jsch-0.1.28.zip to
> > jsch.jar or would ANT understand it with the version number
> > embedded in it?
> >
> > 2. My SCP tasks have not run successfully in a long time and
> > I can't tell what is wrong? This is the error I get:
> >
> > C:\scripts>ant -f build2.xml -Dfull.build.number=712 buildnum
> > Buildfile: build2.xml
> >
> > buildnum:
> >
> > [echo] Local build number is: 725
> >
> > [scp] Connecting to server.ourdomain.net:22
> >
> > BUILD FAILED
> > C:\scripts\build2.xml:57: com.jcraft.jsch.JSchException:
> Auth cancel
> >
> > Total time: 3 seconds
> >
> > Help please! What am I doing wrong?
> >
> > _________________________________________________________________
> > Don't just search. Find. Check out the new MSN Search!
> > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
> > additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org