ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: scp task error: String index out of range
Date Wed, 15 Nov 2006 17:19:15 GMT
 

> -----Original Message-----
> From: Lars Monsees [mailto:l.monsees@atlantisgmbh.de] 
> Sent: Wednesday, November 15, 2006 7:18 AM
> To: Ant Users List
> Subject: scp task error: String index out of range
> 
> Hello,
> 
> I get this error when I start the task below:
> 
> BUILD FAILED
> C:\Projects\Java\HelpStudioANT\build.xml:100: 
> java.lang.StringIndexOutOfBoundsException: String index out 
> of range: -1
> 
> 
> 	<target name="upload" description="Uploads the necessary files">
> 		<input addproperty="passphrase"/>
> 
> 		<!-- copy manual html page to webserver directory -->
> 		<scp file="${help.file}" todir="${scp.todir}" 
> remoteTofile="${scp.tofile}" keyfile="${keyfile}" 
> passphrase="${passphrase}"/>
> 	</target>
> 
> 
> I doesn´t matter if I specify keyfile/passphrase or not. I 
> tried it with jsch-0.1.14.jar and jsch-0.1.30.jar.
> 
> 
> What am I doing wrong here?
> 
> 
> Lars
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


What version of Ant are you using? What version and brand is your ssh server? Something else
that seems a little strange is the remoteTofile attribute. I am not familiar with this attribute,
and the documentation seems a little unclear as to whether or not this is meant to be substituted
for todir or used in addition to todir. Can you try without remoteTofile? Also, produce verbose
output and send it.

Thanks,

-Rob A


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message