maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <brett.por...@gmail.com>
Subject Re: Custom conditionals in project.xml
Date Wed, 26 Jan 2005 01:54:50 GMT
There's no way to order them declaratively. Why does the processing
order matter?

- Brett


On Tue, 25 Jan 2005 17:53:36 -0800 (PST), Doug Knesek
<dougknesek@yahoo.com> wrote:
> I'll give it a try.  Is there a way to control the
> order of the report links if some are specified in
> this manner, while others are listed in the POM?
> 
> --- Brett Porter <brett.porter@gmail.com> wrote:
> 
> > script in the POM is strongly discouraged.
> >
> > How about:
> > <postGoal name="xdoc:register-reports">
> >   <j:if test="${includes_tests}">
> >      <attainGoal
> > name="maven-junit-report-plugin:register" />
> >   </j:if>
> > </postGoal>
> > in maven.xml?
> >
> > - Brett
> >
> >
> > On Tue, 25 Jan 2005 13:51:06 -0800 (PST), Doug
> > Knesek
> > <dougknesek@yahoo.com> wrote:
> > > I want to conditionally turn things on and off in
> > my
> > > project.xml based on the value of a custom
> > property.
> > >
> > > For example, in my project.properties I defined a
> > > property as follows:
> > >
> > > include_tests = true
> > >
> > > In my project.xml, I sould like to do something
> > like
> > > this:
> > >
> > > ...
> > > <reports>
> > >    ...
> > >    <j:if test="${includes_tests=='true'}">
> > >       <report>maven-junit-report-plugin</report>
> > >    </j:if>
> > >    ...
> > > </reports>
> > >
> > > It doesn't seem to work.  Any ideas?
> > >
> > > - Doug
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail:
> > users-help@maven.apache.org
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> >
> >
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message