Rather than pointing to the z:/eroc/src/tlds directory, point to its parent
and then add to the fileset tag and include **/tlds/*.tld tot he fileset.
(Sorry I can not remember the EXACT syntax but refer tt he ant homepage.

Regards,

Stephen.


-----Original Message-----
From: Cato, Christopher [mailto:ccato@;rational.com]
Sent: 18 October 2002 13:58
To: 'Tomcat Users List'
Subject: How can I make ANT build a .war WITH my tlds?


Hi. I have a small problem with ANT.

When I try to build a .war for distribution, everything goes fine except the
creation of the tlds directory which should reside in WEB-INF.

Here is the dist target part of my build.xml:

  <target name="dist" depends="clean,prepare,compile">
    <war destfile="${dist.home}/${app.name}.war"
webxml="z:/eroc/etc/web.xml">
        <fileset dir="z:/eroc/etc" excludes="web.xml"/>
        <fileset dir="z:/eroc/web" excludes="cgi/*"/>
        <fileset dir="z:/eroc/web/images"/>
        <fileset dir="z:/eroc/web/include"/>
        <fileset dir="z:/eroc/src/tlds"/> <-- this obviously doesnt work
        <lib dir="z:/eroc/lib"/>
        <classes dir="${deploy.home}/WEB-INF/classes"/>
    </war>
  </target>

/Christopher


-------------------------------------------------------------------------------------------

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
------------------------------------------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to