Hi Adrian,
shripwrap library is still the same as commons.apache.compress libraries,
it creates the tar.gz file on the local disk.
But i am actually looking for something like compress the folder and send to remote machine through
ssh, where it can be written as tar.gz file on the remote end.

if the folder is really big, then compressing and writing it as a tar.gz file will add some extra diskspace on the local disk and later have to remove that once the transfer is done too.

thanks a lot.
Viji

On 8/12/2011 12:58 AM, Adrian Cole wrote:

You can use the ShrinkWrap library from JBoss to create tar.gz files in java.

-Adrian
jclouds

On Aug 12, 2011 2:09 AM, "Vijaya Natarajan" <v...@hpcrd.lbl.gov <mailto:v...@hpcrd.lbl.gov>> wrote:
> On 8/10/2011 7:42 PM, Atsuhiko Yamanaka wrote:
>> Google for 'java tar.gz'.
>> You must find some APIs to create tar archive in pure Java on the net.
>> As other option, you may want to use java.lang.Runtime#exec method.
>>
>>
> I found apache.commons library to create tar.gz file.
> But it only writes it a file and later i have to do upload the tar.gz file to the remote site.
>
> I wonder is there any just one step process, like we did for download,
> save the resulting file on the remote site in tar.gz format ?
>
> Thanks a lot.
> Viji
>
>
>
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> JSch-users mailing list
> JSch-users@lists.sourceforge.net <mailto:JSch-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jsch-users

------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to