ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sachin Chowdhary" <csac...@pisoftek.com>
Subject RE: Building problem (New Bie)
Date Thu, 22 May 2003 14:10:47 GMT

thanks mark for your input it h has solved my problem thanks again


-----Original Message-----
From: mark.russel@pncbank.com [mailto:mark.russel@pncbank.com]
Sent: Thursday, May 22, 2003 6:31 PM
To: Ant Users List
Subject: Re: Building problem (New Bie)



it looks like your WEB-INF is under the web directory.  you will have to
have a <exclude name="**/web.xml"/> in the fileset to stop the warning. one
other thing.  If I read you target properly you may have two copies of your
jar and class files in your war.  Since your WEB-INF is under your web the
file set will also include them the fileset may have to have multiple
exclude entries for it to work.

I'm going to guess something like this:
     <target name="war" depends="compile">
         <war warfile="webi2v.war" webxml="./web/WEB-INF/web.xml">
             <fileset dir="./" includes="./web/**/*.*" excludes="
**/web.xml">
               <exclude name="**/*.jar"/>
               <exclude name="**/*.class"/>
               <exclude name="**/*.properties"/>
             <webinf dir="./web/WEB-INF" includes="**/*" excludes="
**/web.xml"/>
             <lib dir="./web/WEB-INF/lib"/>
             <classes dir="./web/WEB-INF/classes" includes="
**/*.properties,**/*.classes"/>
         </war>
     </target>

there may be other ways to do this others may chime in

Mark Russell
PNC
412-768-9603


|--------+----------------------->
|        |          "Sachin      |
|        |          Chowdhary"   |
|        |          <csachin@piso|
|        |          ftek.com>    |
|        |                       |
|        |          05/22/2003   |
|        |          08:29 AM     |
|        |          Please       |
|        |          respond to   |
|        |          "Ant Users   |
|        |          List"        |
|        |                       |
|--------+----------------------->

>---------------------------------------------------------------------------
------------------------------------------------------------------|
  |
|
  |       To:     "Ant Users List \(E-mail\)" <user@ant.apache.org>
|
  |       cc:
|
  |       Subject:     Bulding problem (New Bie)
|

>---------------------------------------------------------------------------
------------------------------------------------------------------|





           As i am building my project using Ant it is giving warning that
incluide
webxml in project. by webxml attribute

              but i am specifying it in <war    ....> tag do i need to
exculude it in other tags



     <target name="war" depends="compile">
         <war warfile="webi2v.war" webxml="./web/WEB-INF/web.xml">
             <fileset dir="./" includes="./web/**/*.*"/>
             <webinf dir="./web/WEB-INF" includes="**/*"/>
             <lib dir="./web/WEB-INF/lib"/>
             <classes dir="./web/WEB-INF/classes"
includes="**/*.properties"/>
         </war>
     </target>




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






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



Mime
View raw message