You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Todd Patrick <To...@dtn.com> on 2007/12/12 18:52:16 UTC
war task question.
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?
Does that compress the .gif files or is there a different task I should
be using?
Thanks,
--Todd
-----------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.
RE: rexec
Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Use the -lib option when running ant. For example...
ant -lib /path/to/jars target
See the documentation for more details. http://ant.apache.org/manual/running.html#options
-Rob Anderson
-----Original Message-----
From: Bourzeix, Hervé [mailto:Herve.Bourzeix@Genesys.com]
Sent: Wednesday, December 12, 2007 10:54 AM
To: Ant Users List; user@ant.apache.org
Subject: rexec
question regarding rexec task , how I can build dymically the classpath used by this task ? it required commons-net-xx.jar
I want to avoid to put the dependency jars in the ant lib. I tried to redefine the task and use a user defined classpath but it seems the task is still using the main ant classloader instead of the taskdef classpath I indicate to search for commons-net.
regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
rexec
Posted by Bourzeix,
Hervé <He...@Genesys.com>.
question regarding rexec task , how I can build dymically the classpath used by this task ? it required commons-net-xx.jar
I want to avoid to put the dependency jars in the ant lib. I tried to redefine the task and use a user defined classpath but it seems the task is still using the main ant classloader instead of the taskdef classpath I indicate to search for commons-net.
regards,
Re: war task question.
Posted by Steve Loughran <st...@apache.org>.
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