Thanks, that solves my problem. I was using ant 1.6.5. I tried ant 1.7.0 and it works.
----- Original Message ---- From: Atsuhiko Yamanaka <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [email protected] Sent: Wednesday, October 24, 2007 6:46:27 PM Subject: Re: [JSch-users] jsch-scp fails for large files Hi, +-From: Tim Paulus <[EMAIL PROTECTED]> -------- |_Date: Wed, 24 Oct 2007 08:12:34 -0700 (PDT) __ | |JSCH-SCP fails for files with size > java's Integer.MAX_INT, that is 2147483647 bytes. The error I see is | java.lang.NumberFormatException: For input string: "2247744512". |As you can guess, my file size in this case is 2247744512 bytes. |I am using JSCH with ANT, my script looks like this: | <scp todir="localdir" | file="[EMAIL PROTECTED]:${ssh.path}filename.tar" | knownhosts="${ssh.knownhosts}" | failonerror="true" | keyfile="${ssh.keyfile}" | passphrase="${ssh.passphrase}" | verbose="true" | /> |Any known workaround, besides splitting the file? Which ant version are you using? I have remebered that the older ant had such a problem. Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
