>> -----Original Message----- >> From: Lars Monsees [mailto:[EMAIL PROTECTED] >> 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: [EMAIL PROTECTED] For >> additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > 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
Problem is solved: You cannot use toDir and remotetofile together. I will post a bug report. Thanks for that hint. I didn´t notice this in the manual. Lars --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
