ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pavan kumar <pava...@yahoo.co.in>
Subject problem with war task....
Date Thu, 21 Nov 2002 12:14:37 GMT
Hello All,

I have a problem using war taks.

This is the error i am getting :

D:\testweb\build.xml:13: Class
org.apache.tools.ant.taskdefs.War doesn't support the
"destfile" attribute

This is my build.xml file
************
<project name="i2testservlet" default="all"
basedir=".">

 <target name="all" depends="make_ear"/>

  <!-- Compile servert classes -->
  <target name="compile_servlet">
    <javac srcdir="test/com"
      destdir="test"
    />
  
</target>
<target name="make_war" depends="compile_servlet">
<war destfile="i2web.war" webxml="xmls/webxml.xml">
  <classes dir="test"/>
</war>
</target>
<target name="make_ear" depends="make_war">
<ear destfile="myapp.ear"
appxml="META-INF/application.xml">
      <fileset dir="." includes="*.war"/>
    </ear>
</target>

</project>

**********************

i got succes in compiling java classes, but failed at
war

if any body has solution please mail back to me.


Thanks
pavan


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

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


Mime
View raw message