You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by prasad kumar <pr...@yahoo.co.in> on 2007/04/21 14:01:15 UTC

is it possible inculde folder in zip??

Hi,
   
  i tried with all the options it is not including the folder it is including only files and zipping
   
  is it possible inculde folder in zip??
   
  if anybody knows,respond that's  great appreciation
   
  thanks,
  prasad

       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: is it possible inculde folder in zip??

Posted by prasad kumar <pr...@yahoo.co.in>.
hi aruna,
   
  with the below code it incudes all htdocs/manual directory files into the docs/user-guide directory.zipfileset we can use only for including files not directories.
   
  but i want htdocs/manual directory(not their files included in the docs/user-guide ) should be included as a folder  in the docs/user-guide directory without changing the directory structure.means while unzipping files should be as a folder(including the files in that folderand sub folders files in the sub folder like that)
.
  i tried with jar option also.it is including only files not as a folder
   
  please tell if anybody knows how to include  folders(folder files,sub folder(sub folder files) inside zip, respond that's a great appreciation
   
  thanks,
  prasad
  
Aruna Challapalli <ar...@gmail.com> wrote:
  see this page....
http://ant.apache.org/manual/CoreTasks/zip.html
Checkout this example......
=======================================================================
The code






zips all files in the htdocs/manual directory into the
docs/user-guidedirectory in the archive and includes all the files in
any file that maches
examples*.zip, such as all files within examples1.zip or
examples_for_brian.zip.
======================================================================

On 4/21/07, prasad kumar 
wrote:
>
> Hi,
>
> i tried with all the options it is not including the folder it is
> including only files and zipping
>
> is it possible inculde folder in zip??
>
> if anybody knows,respond that's great appreciation
>
> thanks,
> prasad
>
>
> ---------------------------------
> Check out what you're missing if you're not on Yahoo! Messenger




-- 
Regards,
Aruna Challapalli


       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 

Re: is it possible inculde folder in zip??

Posted by Aruna Challapalli <ar...@gmail.com>.
see this page....
http://ant.apache.org/manual/CoreTasks/zip.html<http://ant.apache.org/manual/index.html>
Checkout this example......
=======================================================================
The code

  <zip destfile="${dist}/manual.zip">
    <zipfileset dir="htdocs/manual" prefix="docs/user-guide"/>
    <zipgroupfileset dir="." includes="examples*.zip"/>
  </zip>

 zips all files in the htdocs/manual directory into the
docs/user-guidedirectory in the archive and includes all the files in
any file that maches
examples*.zip, such as all files within examples1.zip or
examples_for_brian.zip.
======================================================================

On 4/21/07, prasad kumar <pr...@yahoo.co.in> wrote:
>
> Hi,
>
> i tried with all the options it is not including the folder it is
> including only files and zipping
>
> is it possible inculde folder in zip??
>
> if anybody knows,respond that's  great appreciation
>
> thanks,
> prasad
>
>
> ---------------------------------
> Check out what you're missing if you're not on Yahoo! Messenger




-- 
Regards,
Aruna Challapalli

Re: is it possible inculde folder in zip??

Posted by prasad kumar <pr...@yahoo.co.in>.
hi,
   
  i created jar file but the all files are showing in the same jar.it is not showing in which folder it is.means it is not maintaining the directory structure.
   
  if anybody knows to include the folder in the zip please tell me
   
  thanks,
  prasad
  
yahoo.co.in> wrote:
  Hi,

i tried with all the options it is not including the folder it is including only files and zipping

is it possible inculde folder in zip??

if anybody knows,respond that's great appreciation

thanks,
prasad


---------------------------------
Check out what you're missing if you're not on Yahoo! Messenger 

       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger