> -----Original Message-----
> From: Michal Maczka [mailto:[EMAIL PROTECTED]
> Sent: 18 June 2003 11:20
> To: 'Maven Developers List'
> Subject: RE: Recent changes in war plugin
> 
> 
> 
> > -----Original Message-----
> > From: Vincent Massol [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 18, 2003 10:33 AM
> > To: 'Maven Developers List'
> > Subject: RE: Recent changes in war plugin
> >
> >
> >
> > > -----Original Message-----
> > > From: Michal Maczka [mailto:[EMAIL PROTECTED]
> > > Sent: 18 June 2003 10:01
> > > To: 'Maven Developers List'
> > > Subject: RE: Recent changes in war plugin
> > >
> > > Yes.
> > > I am still working on deployer.
> > > That's the art which I want to use in this plugin to add missing
> > > functionality.
> > >
> > > Once I am readay with this for war plugin, I am planning to change
> > also
> > > other plugins.
> > >
> > >
> > > Last time I am asking:
> > >
> > > Does anybody has something against building war ___always__ in two
> > > distinct
> > > steps?
> >
> > I don't think I like it. At least I would like to keep using the Ant
war
> > task which does a lot of things your implementation will not be
doing
> > right away. And we will benefit from any improvement to Ant war
task.
> >
> 
> What's so magical in ant war task?

It's written, fully supports the war model and has gone through lots of
testing.

[snip]

> 
> Why web.xml should not be kept in src/webapp/WEB-INF?
> What's so wrong in it? Why Ant dislikes this?

Nothing wrong. That works BTW. This is where I put my web.xml file...

> 
> 
> I don't see any benefits which we gain using this ant target.

Are you going to say the same with the Ant Jar task? Or do you plan to
extend it in the same way the War task does it?

> 
> And personally I think that as much as possible of the code should be
done
> in pure java - not in jelly with help of ant. I think that that's the
> direction Maven should take.
> 
> This will increase quality of the code, speed and code reuse.
> So from my point of view less dependencies on ant - better code.
> 

I'm completely +1 with this. Why do you say that War.java is not java?

Here's an example on how to use it (taken from the Cactus Eclipse
plugin):

        War warTask = new War();
        warTask.setProject(new Project().init());
        warTask.setDestFile(outputWar);
        warTask.addClasses(classes);
        warTask.addFileset(webFiles);
        warTask.setWebxml(userWebXML);
        warTask.setUpdate(true);
        warTask.addLib(libs);
        warTask.execute();

BTW, I think identifying the web.xml file is a good idea as it allows
you perform any kind of thing like validation, etc.

> 
> 
> > So I'm -1 to drop usage of the Ant war task.
> >
> > I'm -0 (maybe even -1) to always build in 2 steps
> >
> > I'm +1 to add a goal or any other property to support building in 2
> > steps. For example:
> >
> > - Define the following properties in war's plugin.properties file:
> >
> > maven.war.src.extra = ${maven.build.dir}/war
> >
> > - Modify plugin.jelly to:
> >
> >     <war warfile="${maven.war.build.dir}/${maven.war.final.name}"
> >          webxml="${maven.war.webxml}" update="true">
> > [...]
> >       <j:if test="${SrcExtraDirExists == 'true'}">
> >         <fileset dir="${maven.war.src.extra}"/>
> >       </j:if>
> >
> 
> That's some idea...
> 
> Michal
> 

-Vincent


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to