ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Move two folders into a zip file
Date Tue, 06 Jun 2006 12:15:12 GMT
<jar..>
  <fileset dir="." includes="frontend/,backend/"/>
</jar>


or

<jar..>
  <zipfileset dir="frontend" prefix="frontend"/>
  <zipfileset dir="backend"  prefix="backend"/>
</jar>



Jan

>-----Urspr√ľngliche Nachricht-----
>Von: David Bates [mailto:david.bates@triggersoft.com] 
>Gesendet: Dienstag, 6. Juni 2006 14:13
>An: user@ant.apache.org
>Betreff: Move two folders into a zip file
>
>I'm trying to create a new zip file with two folders inside it:
>
> 
>
>    <jar destfile="${backup.dir}/archive.zip">
>
>      <fileset dir="frontend"/>
>
>      <fileset dir="backend"/>
>
>    </jar>
>
> 
>
>However, this ends up putting the CONTENTS of "frontend" and "backend"
>folders into the zip.  
>
> 
>
>I want those folders to be included as well:
>
> 
>
>+ archive.zip
>
>|
>
>|------------------- frontend/
>
>--------------------------------------/ Contents of frontend
>
>|------------------- backend/
>
>--------------------------------------/ Contents of backend
>
> 
>
>What switch is needed?
>
>David Bates
>Analyst Programmer
>Trigger Software Ltd
>Direct Dial: +44 (0)1242 258682
>
>Phone: +44 (0)1242 256990
>Fax: +44 (0)1242 256996
>Visit: www.triggersoft.com <http://www.triggersoft.com/>  
>
>email:david.bates@triggersoft.com
>
> Any opinions expressed in this email are those of the 
>individual and not necessarily the company. This email and any 
>files transmitted with it are confidential and solely for the 
>use of the intended recipient. If you are not the intended 
>recipient or the person responsible for delivering it to the 
>intended recipient, please be advised that you have received 
>this email in error and that any use is strictly prohibited. 
>Please either notify a member of the Trigger Software support 
>team by telephone on 01242 256990 or by replying to this email 
>and advising accordingly.
>Thank you for your co-operation.
>
> 
>
>

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


Mime
View raw message