You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by pr...@wipro.com on 2005/10/18 16:23:27 UTC

Size of zip file

Dear All,
          I would like to know that if is possible that I can take a
size of zip file, is there any such task in ANT by using which I can
know the size of a zip file or folder.
And also want to know that is I can split any zip file into desirable
equal size?
Any help will be highly appreciated.

Regards,
Pritesh





Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

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


Re: Size of zip file

Posted by Rhino <rh...@sympatico.ca>.
I don't see anything in the Ant manual that would help you much with what
you want to do.

Ant's Zip task doesn't seem to have any way to determine the size of a Zip
file and I don't see anything that will *directly* help you split a single
Zip file into several smaller ones.

Somehow or another, I think you will need to write a program to determine
the size of the original zip file, determine which files should be grouped
together into the smaller zip files, then,  unzip them from the original
file and create new smaller zip files using the files within the original
zip. However, you may not be able to guarantee that the new zip files are
equal in size, just that they are less than or equal to a size that you set
within the program. This is reasonable: if your original zip file contains
three files, 10 MB, 2 MB, and 50 KB in size, then the resulting zip files
won't be equal in size; you might put the 10 MB file into a new zip and then
put the 2 MB and 50 KB file into another zip. You can't do much else without
breaking the larger file(s) into smaller ones which may be hard to
re-assemble later. In any case, once you have determined which files from
the original zip are grouped together within the smaller zips, you could
certainly use Ant to do the work of actually creating the smaller zips but I
don't think there is any way to get Ant to figure out which files needed to
be grouped into smaller zips; that requires programming.

A Java program can do everything that you need but if you don't know Java,
you will have to do it in a language that you know which has the ability to
manipulate zip files. I don't know of any languages other than Java that can
manipulate zip files but I only know a few languages. C might very well do
what you want to do.

It's also possible that someone has written a tool along the lines that you
want. I'm not aware of such a tool but there are a lot of tools out there
and I don't know about many of them.

Is it absolutely essential that the smaller files are zip files or would it
be acceptable for the smaller files to be some other format that can be
merged together into a zip later? If the smaller files don't have to be zip
files, I can suggest a fairly simple solution: get a file splitter program.
I happen to have a freeware one that I downloaded called JSplit: it slices a
given input file, even a zip file, into smaller files that are less than or
equal to 360 KB, 720 KB, 1.20 MB, or 1.44 MB. I simply give it the name of
the file which needs to be split and specify the directory into which the
smaller files are written; JSplit writes the smaller files into the
specified directory and generates a simple batch file that merges them back
together again. I can then send the smaller files to someone, along with the
batch file, and all they have to do is run the batch file: the result is my
original zip file. (I actually split a 687 KB zip file into 360 KB chunks,
then merged them again and compared the new zip with the old zip via a file
compare utility: the two files were identical in a binary comparison.)
JSplit was written in order to split larger files onto floppy disks. JSplit
works only on Windows but there are possibly similar programs for the
operating system(s) you are using. Other file splitter programs may let you
control the size of the smaller files so that they are different from the
choices permitted within JSplit.

If you need a tool that splits the original zip file into smaller zip files,
I could do it for you, in Java, but it would take time and it wouldn't be
free. However, it would run on any platform that supports Java which might
make it worth the money. If a file splitter like JSplit isn't an acceptable
approach, your best bet is probably to ask around on technical newsgroups to
see if there is anything out there that does what you want.

Rhino

----- Original Message ----- 
From: <pr...@wipro.com>
To: <us...@ant.apache.org>
Sent: Tuesday, October 18, 2005 10:23 AM
Subject: Size of zip file



Dear All,
          I would like to know that if is possible that I can take a
size of zip file, is there any such task in ANT by using which I can
know the size of a zip file or folder.
And also want to know that is I can split any zip file into desirable
equal size?
Any help will be highly appreciated.

Regards,
Pritesh





Confidentiality Notice

The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

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


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005


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


Re: Size of zip file

Posted by Rhino <rh...@sympatico.ca>.
----- Original Message ----- 
From: "Matt Benson" <gu...@yahoo.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Tuesday, October 18, 2005 2:16 PM
Subject: Re: Size of zip file


> --- Rhino <rh...@sympatico.ca> wrote:
>
> > Oops, I missed that when I looked in the manual!
> >
> > Even still, I don't think Ant has the ability to
> > decide which files from the
> > original zip are to be grouped together into the new
> > smaller zips.
>
> <length> should work even if you pass in <zipfileset>s
> and therefore give you the lengths of all the
> constituent resources... but at that point you'd
> probably be just as well writing something to process
> the resources directly using Ant or Java APIs rather
> than parsing the output of <length mode="each" />.
>
Even if Ant's <length> task tells you the size of the zip file and of each
of its constituent files, I think you still need some kind of programming
logic to decide which of the new smaller zip files is going to get each of
the files that were in the original zip. (I'm assuming that the individual
files within the zip are never themselves going to be split up.) There has
to be some logic that isn't - as far as I can tell! - in Ant to reason out
that, for example, the optimum dispersal of the files in zip containing 5
files is to put the 1st, 2nd and 5th files into the first of the new zip
files and that the 3rd and 4th files into the second new zip file - or
whatever. That logic will be based on user input that says the size of the
new zips should not exceed so many bytes. The logic will have to determine
the size of the individual files within the zip and then group them together
so that none of the new zips is over that maximum size. It will also have to
handle the case where the user asks for a size that is smaller than the
largest of the files in the zip file: if the maximum size is 5 MB and two of
the files in the zip file are 20 MB in size, what is the utility to do?

> > (I'm
> > assuming that a large zip containing many files
> > needs to be split into
> > smaller zips that are less than or equal to a given
> > size and that as few
> > smaller zips should be created as possible.)
> >
>
> I had taken the request literally; that the archive
> should be broken into smaller files that would be
> reassembled later into the original archive... nothing
> to that.  But each split file would be unusable on its
> own.  I believe the tool that used to do something
> like this, and was mentioned by another user, was RAR
> (I could be wrong though).
>
Your guess is as good as mine; I don't know if the questioner would find it
permissible to split the individual files within the zip or not. But I think
we've covered both cases now :-)

After sending my first reply, I Googled on "file splitter" and came up with
over a million hits! Even adding the word "java" to the search returned an
awful lot of hits. So I'm pretty sure that it won't be necessary to write a
new utility unless, perhaps, the user requires that each of the original
files must never be split and that the output files are zip files
themselves. Then again, maybe RAR or some other utility will handle that
case too.

Rhino
>
> >
> > ----- Original Message ----- 
> > From: "Matt Benson" <gu...@yahoo.com>
> > To: "Ant Users List" <us...@ant.apache.org>
> > Sent: Tuesday, October 18, 2005 11:19 AM
> > Subject: Re: Size of zip file
> >
> >
> > > Ant >= 1.6.3 includes the <length> task which can
> > get
> > > file sizes for you.  You could probably (a) write
> > > something or (b) find something to do the split
> > for
> > > you.
> > >
> > > -Matt
> > >
> > > --- pritesh.saharey@wipro.com wrote:
> > >
> > > >
> > > > Dear All,
> > > >           I would like to know that if is
> > possible
> > > > that I can take a
> > > > size of zip file, is there any such task in ANT
> > by
> > > > using which I can
> > > > know the size of a zip file or folder.
> > > > And also want to know that is I can split any
> > zip
> > > > file into desirable
> > > > equal size?
> > > > Any help will be highly appreciated.
> > > >
> > > > Regards,
> > > > Pritesh
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Confidentiality Notice
> > > >
> > > > The information contained in this electronic
> > message
> > > > and any attachments to this message are intended
> > > > for the exclusive use of the addressee(s) and
> > may
> > > > contain confidential or privileged information.
> > If
> > > > you are not the intended recipient, please
> > notify
> > > > the sender at Wipro or Mailadmin@wipro.com
> > > > immediately
> > > > and destroy all copies of this message and any
> > > > attachments.
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > user-unsubscribe@ant.apache.org
> > > > For additional commands, e-mail:
> > > > user-help@ant.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Yahoo! Music Unlimited
> > > Access over 1 million songs. Try it free.
> > > http://music.yahoo.com/unlimited/
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > user-help@ant.apache.org
> > >
> > >
> > > -- 
> > > No virus found in this incoming message.
> > > Checked by AVG Anti-Virus.
> > > Version: 7.0.344 / Virus Database: 267.12.0/134 -
> > Release Date: 14/10/2005
> > >
> > >
> >
> >
> >
> > -- 
> > No virus found in this outgoing message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.12.0/134 -
> > Release Date: 14/10/2005
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005


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


Re: Size of zip file

Posted by Matt Benson <gu...@yahoo.com>.
--- Rhino <rh...@sympatico.ca> wrote:

> Oops, I missed that when I looked in the manual!
> 
> Even still, I don't think Ant has the ability to
> decide which files from the
> original zip are to be grouped together into the new
> smaller zips.

<length> should work even if you pass in <zipfileset>s
and therefore give you the lengths of all the
constituent resources... but at that point you'd
probably be just as well writing something to process
the resources directly using Ant or Java APIs rather
than parsing the output of <length mode="each" />.

> (I'm
> assuming that a large zip containing many files
> needs to be split into
> smaller zips that are less than or equal to a given
> size and that as few
> smaller zips should be created as possible.)
> 

I had taken the request literally; that the archive
should be broken into smaller files that would be
reassembled later into the original archive... nothing
to that.  But each split file would be unusable on its
own.  I believe the tool that used to do something
like this, and was mentioned by another user, was RAR
(I could be wrong though).

-Matt

> Rhino
> 
> ----- Original Message ----- 
> From: "Matt Benson" <gu...@yahoo.com>
> To: "Ant Users List" <us...@ant.apache.org>
> Sent: Tuesday, October 18, 2005 11:19 AM
> Subject: Re: Size of zip file
> 
> 
> > Ant >= 1.6.3 includes the <length> task which can
> get
> > file sizes for you.  You could probably (a) write
> > something or (b) find something to do the split
> for
> > you.
> >
> > -Matt
> >
> > --- pritesh.saharey@wipro.com wrote:
> >
> > >
> > > Dear All,
> > >           I would like to know that if is
> possible
> > > that I can take a
> > > size of zip file, is there any such task in ANT
> by
> > > using which I can
> > > know the size of a zip file or folder.
> > > And also want to know that is I can split any
> zip
> > > file into desirable
> > > equal size?
> > > Any help will be highly appreciated.
> > >
> > > Regards,
> > > Pritesh
> > >
> > >
> > >
> > >
> > >
> > > Confidentiality Notice
> > >
> > > The information contained in this electronic
> message
> > > and any attachments to this message are intended
> > > for the exclusive use of the addressee(s) and
> may
> > > contain confidential or privileged information.
> If
> > > you are not the intended recipient, please
> notify
> > > the sender at Wipro or Mailadmin@wipro.com
> > > immediately
> > > and destroy all copies of this message and any
> > > attachments.
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > user-unsubscribe@ant.apache.org
> > > For additional commands, e-mail:
> > > user-help@ant.apache.org
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! Music Unlimited
> > Access over 1 million songs. Try it free.
> > http://music.yahoo.com/unlimited/
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> user-help@ant.apache.org
> >
> >
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Anti-Virus.
> > Version: 7.0.344 / Virus Database: 267.12.0/134 -
> Release Date: 14/10/2005
> >
> >
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.0/134 -
> Release Date: 14/10/2005
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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


Re: Size of zip file

Posted by Rhino <rh...@sympatico.ca>.
Oops, I missed that when I looked in the manual!

Even still, I don't think Ant has the ability to decide which files from the
original zip are to be grouped together into the new smaller zips. (I'm
assuming that a large zip containing many files needs to be split into
smaller zips that are less than or equal to a given size and that as few
smaller zips should be created as possible.)

Rhino

----- Original Message ----- 
From: "Matt Benson" <gu...@yahoo.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Tuesday, October 18, 2005 11:19 AM
Subject: Re: Size of zip file


> Ant >= 1.6.3 includes the <length> task which can get
> file sizes for you.  You could probably (a) write
> something or (b) find something to do the split for
> you.
>
> -Matt
>
> --- pritesh.saharey@wipro.com wrote:
>
> >
> > Dear All,
> >           I would like to know that if is possible
> > that I can take a
> > size of zip file, is there any such task in ANT by
> > using which I can
> > know the size of a zip file or folder.
> > And also want to know that is I can split any zip
> > file into desirable
> > equal size?
> > Any help will be highly appreciated.
> >
> > Regards,
> > Pritesh
> >
> >
> >
> >
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message
> > and any attachments to this message are intended
> > for the exclusive use of the addressee(s) and may
> > contain confidential or privileged information. If
> > you are not the intended recipient, please notify
> > the sender at Wipro or Mailadmin@wipro.com
> > immediately
> > and destroy all copies of this message and any
> > attachments.
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.0/134 - Release Date: 14/10/2005


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


Re: Size of zip file

Posted by Ron Wheeler <rw...@artifact-software.com>.
Probably split and cat.

Ron


Rhino wrote:

>I don't use Linux a lot but I was curious about this issue and found some
>online man pages that described 'split' and it definitely looks like the
>command to use to slice and dice a file into smaller pieces.
>
>Unfortunately, they don't identify the command that merges the smaller files
>together again! [I'll spare you my standard rant about glaring deficiencies
>in man pages].
>
>However, the "see also" section of the man page for 'split' says that the
>full documentation is maintained as a Texinfo manual and that 'info split'
>should give you more. Maybe it even tells you what command 'unsplits' the
>smaller files back into a single larger file.
>
>I had a look at some of the other commands that were listed for Linux and
>saw both a 'merge' and a 'join' which looked promising but the articles made
>it clear that they were no going to put the split files back together again.
>There are roughly a gazillion different linux commands in this list and I
>don't have time to read all the articles to see which one is the right
>command so I'll leave you to find that on your own :-)
>
>Rhino
>
>
>
>
>----- Original Message ----- 
>From: "Bill Rich" <bi...@wilandra.com>
>To: "'Ant Users List'" <us...@ant.apache.org>
>Sent: Wednesday, October 19, 2005 11:42 AM
>Subject: RE: Size of zip file
>
>
>  
>
>>No "cat" was not one of the utils I remember for this job. All they did
>>    
>>
>was
>  
>
>>divide a zip file into parts as close to the specified max as possible and
>>put them back together. IIRC the individual parts were not usable on their
>>own. It was merely a way to package the file so it would fit on removeable
>>media. I think there was also an index file written that listed the files
>>that had been made so the merge file could put them back together. I am
>>pretty sure it was intended for use with archive/backup files only, but, I
>>could be wrong.
>>
>>Bill
>>
>>-----Original Message-----
>>From: Gisbert Amm [mailto:gia@webde.de]
>>Sent: Tuesday, October 18, 2005 11:59 PM
>>To: Ant Users List
>>Subject: Re: Size of zip file
>>
>>Bill Rich wrote:
>>    
>>
>>>Many years ago (when floppies and sneaker net were the tranport method
>>>of
>>>choice) there were two Unix utilities available to split a zip file
>>>into parts and merge the parts back to a single zip file. I don't
>>>remember who supplied them or if they are even still available.
>>>      
>>>
>>Do you probably mean "split" and "cat"?
>>
>>Regards,
>>Gisbert Amm
>>
>>---------------------------------------------------------------------
>>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
>>
>>
>>-- 
>>No virus found in this incoming message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005
>>
>>
>>    
>>
>
>
>
>  
>

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


Re: Size of zip file

Posted by Rhino <rh...@sympatico.ca>.
I don't use Linux a lot but I was curious about this issue and found some
online man pages that described 'split' and it definitely looks like the
command to use to slice and dice a file into smaller pieces.

Unfortunately, they don't identify the command that merges the smaller files
together again! [I'll spare you my standard rant about glaring deficiencies
in man pages].

However, the "see also" section of the man page for 'split' says that the
full documentation is maintained as a Texinfo manual and that 'info split'
should give you more. Maybe it even tells you what command 'unsplits' the
smaller files back into a single larger file.

I had a look at some of the other commands that were listed for Linux and
saw both a 'merge' and a 'join' which looked promising but the articles made
it clear that they were no going to put the split files back together again.
There are roughly a gazillion different linux commands in this list and I
don't have time to read all the articles to see which one is the right
command so I'll leave you to find that on your own :-)

Rhino




----- Original Message ----- 
From: "Bill Rich" <bi...@wilandra.com>
To: "'Ant Users List'" <us...@ant.apache.org>
Sent: Wednesday, October 19, 2005 11:42 AM
Subject: RE: Size of zip file


> No "cat" was not one of the utils I remember for this job. All they did
was
> divide a zip file into parts as close to the specified max as possible and
> put them back together. IIRC the individual parts were not usable on their
> own. It was merely a way to package the file so it would fit on removeable
> media. I think there was also an index file written that listed the files
> that had been made so the merge file could put them back together. I am
> pretty sure it was intended for use with archive/backup files only, but, I
> could be wrong.
>
> Bill
>
> -----Original Message-----
> From: Gisbert Amm [mailto:gia@webde.de]
> Sent: Tuesday, October 18, 2005 11:59 PM
> To: Ant Users List
> Subject: Re: Size of zip file
>
> Bill Rich wrote:
> > Many years ago (when floppies and sneaker net were the tranport method
> > of
> > choice) there were two Unix utilities available to split a zip file
> > into parts and merge the parts back to a single zip file. I don't
> > remember who supplied them or if they are even still available.
>
> Do you probably mean "split" and "cat"?
>
> Regards,
> Gisbert Amm
>
> ---------------------------------------------------------------------
> 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
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/10/2005


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


RE: Size of zip file

Posted by Bill Rich <bi...@wilandra.com>.
No "cat" was not one of the utils I remember for this job. All they did was
divide a zip file into parts as close to the specified max as possible and
put them back together. IIRC the individual parts were not usable on their
own. It was merely a way to package the file so it would fit on removeable
media. I think there was also an index file written that listed the files
that had been made so the merge file could put them back together. I am
pretty sure it was intended for use with archive/backup files only, but, I
could be wrong.

Bill

-----Original Message-----
From: Gisbert Amm [mailto:gia@webde.de] 
Sent: Tuesday, October 18, 2005 11:59 PM
To: Ant Users List
Subject: Re: Size of zip file

Bill Rich wrote:
> Many years ago (when floppies and sneaker net were the tranport method 
> of
> choice) there were two Unix utilities available to split a zip file 
> into parts and merge the parts back to a single zip file. I don't 
> remember who supplied them or if they are even still available.

Do you probably mean "split" and "cat"?

Regards,
Gisbert Amm

---------------------------------------------------------------------
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: Size of zip file

Posted by Gisbert Amm <gi...@webde.de>.
Bill Rich wrote:
> Many years ago (when floppies and sneaker net were the tranport method of
> choice) there were two Unix utilities available to split a zip file into
> parts and merge the parts back to a single zip file. I don't remember who
> supplied them or if they are even still available. 

Do you probably mean "split" and "cat"?

Regards,
Gisbert Amm

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


RE: Size of zip file

Posted by Bill Rich <bi...@wilandra.com>.
Many years ago (when floppies and sneaker net were the tranport method of
choice) there were two Unix utilities available to split a zip file into
parts and merge the parts back to a single zip file. I don't remember who
supplied them or if they are even still available. Perhaps google will
reveal what you need.

Bill

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Tuesday, October 18, 2005 8:20 AM
To: Ant Users List
Subject: Re: Size of zip file

Ant >= 1.6.3 includes the <length> task which can get file sizes for you.
You could probably (a) write something or (b) find something to do the split
for you.

-Matt

--- pritesh.saharey@wipro.com wrote:

> 
> Dear All,
>           I would like to know that if is possible that I can take a 
> size of zip file, is there any such task in ANT by using which I can 
> know the size of a zip file or folder.
> And also want to know that is I can split any zip file into desirable 
> equal size?
> Any help will be highly appreciated.
> 
> Regards,
> Pritesh
> 
> 
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message and any 
> attachments to this message are intended for the exclusive use of the 
> addressee(s) and may contain confidential or privileged information. 
> If you are not the intended recipient, please notify the sender at 
> Wipro or Mailadmin@wipro.com immediately and destroy all copies of 
> this message and any attachments.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
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: Size of zip file

Posted by Matt Benson <gu...@yahoo.com>.
Ant >= 1.6.3 includes the <length> task which can get
file sizes for you.  You could probably (a) write
something or (b) find something to do the split for
you.

-Matt

--- pritesh.saharey@wipro.com wrote:

> 
> Dear All,
>           I would like to know that if is possible
> that I can take a
> size of zip file, is there any such task in ANT by
> using which I can
> know the size of a zip file or folder.
> And also want to know that is I can split any zip
> file into desirable
> equal size?
> Any help will be highly appreciated.
> 
> Regards,
> Pritesh
> 
> 
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message
> and any attachments to this message are intended
> for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If
> you are not the intended recipient, please notify
> the sender at Wipro or Mailadmin@wipro.com
> immediately
> and destroy all copies of this message and any
> attachments.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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