ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: war task question.
Date Thu, 13 Dec 2007 15:26:19 GMT
Todd Patrick wrote:
> Please forget me for this question, I've never used the war task before
> and I'm looking at example at:
> http://www.java-tips.org/other-api-tips/ant/how-to-use-war-task.html
>  
> I have a directory labeled "resources" and I have ten .gif files.
>  
> To include the .gif files, I must use the zipfileset task?

no, you could go <fileset dir="resources" includes="*.gif" /> inside <war>


> Does that compress the .gif files or is there a different task I should
> be using?

war is a subclass of the <zip> task; it is that which does compression.

<zipfileset>  lets you

-declare a different path in the zip, and file permissions
-get at content inside a zip file


-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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


Mime
View raw message