ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D Thapa" <da...@sst.com.hk>
Subject Re: New to the list and ant -- require your comments, please.
Date Mon, 31 Mar 2003 08:08:41 GMT
Hi,

I am using ant version 1.5.

Somewhere in build.xml basedir is set to ".", and when I use the same value
for basedir attribute of <war, I get the following error message:

build.xml:242: A zip file cannot include itself

What should be the basedir value here?

Thanks.

Damar

----- Original Message -----
From: "Sebastien Blanc" <Sebastien.Blanc@alcatel.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Saturday, March 29, 2003 12:33 AM
Subject: Re: New to the list and ant -- require your comments, please.


> preferably use the 'destfile' and 'basedir' attributes when using the war
task.
>
> let us know,
> seb.
>
> damar wrote:
>
> > Hi,
> >
> > Further to my earlier message, I would like to add the followings:
> >
> > 1.    I checked the docs/manual/CoreTasks/war.html page, from which I
> > did not find any problem.
> >
> > 2.    dir.src and dir.lib are pointing the directories they are supposed
> > to, and warfile attribute writes war file in the right directory.
> >  Providing full (absolute) directories to web.xml as well gives the same
> > result.
> >
> > Can any one point me what may have gone wrong here?  I am using
> > Enhydra5.0, under Debian3.0.
> >
> > Thanks.
> >
> > Damar
> >
> > damar wrote:
> >
> > > Hi Sebastien,
> > >
> > > Thanks for your reply.
> > >
> > > My build.xml has the following entry, and changing {dir.src} to
> > > src/WEB-INF/web.xml as well results the same:
> > >
> > > <war warfile="${dir.lib}/${project.name}.war"
> > >         webxml="${dir.src}/WEB-INF/web.xml">
> > >       <classes dir="${dir.lib}/tmp"
> > >                excludes="**/*.java"/>
> > >       <fileset dir="${dir.content}"/>
> > >    </war>
> > >
> > > I have not checked the document yet?
> > >
> > > Thanks,
> > >
> > > Damar
> > >
> > > Sebastien Blanc wrote:
> > >
> > >> Hi Damar,
> > >> webxml is one of the attribute of war task, for instance
> > >> <war destfile="myapp.war" webxml="src/metadata/myapp.xml">
> > >> here it looks that the build.xml defining this war task does not
contain
> > >> the webxml attribute (so I guess 'update' attribute is set to true).
> > >> try to add the attribute to the build.xml to point to the
> > >> WEB-INF/web.xml
> > >> location.
> > >> did u checkout the ANT docs/manual/CoreTasks/war.html page ?
> > >> seb.
> > >>
> > >> damar wrote:
> > >>
> > >>
> > >>
> > >>> Hi,
> > >>>
> > >>> I am using ant-1.5 to build enhydra/barracuda application.  On
> > >>> completion of the building of war file, I get the following message:
> > >>>
> > >>> [war] Warning: selected war files include a WEB-INF/web.xml which
will
> > >>> be ignored (please use webxml attribute to war task)
> > >>>
> > >>> What does it mean, and how to use webxml attribute?
> > >>>
> > >>> Please do consider I am new to ant.
> > >>>
> > >>> Thanks.
> > >>>
> > >>> Damar
> > >>>
> >
>>> ---------------------------------------------------------------------
> > >>> 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
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message