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 22:04:56 GMT
ok, well the order should be:
- those in the POM, in the order specified
- those in the postGoal, in the order specified

is that enough info?

(also, please keep replies on the list)

Cheers,
Brett

On Wed, 26 Jan 2005 06:32:19 -0800 (PST), Doug Knesek
<dougknesek@yahoo.com> wrote:
> The processing order doesn't matter, but the order
> that the reports appear in the maven menu is the order
> that our developers resolve issues.  So I'm referring
> to is the order that the report links are displayed in
> the maven site.
> 
> - Doug
> 
> --- Brett Porter <brett.porter@gmail.com> wrote:
> 
> > 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