nowhere close to being a jelly expert
maybe 'cos the rvalue is an int and the lvalue is a String? Shouldn't it be
j:if test=${notEmptyElems.size() == 0}
/nowhere close to being a jelly expert
Sri
-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 11:55 AM
To: 'Maven Users List'
Subject: New dashboard feature request (was RE: [ANN] Dashboard plugin 1.1 released)
dIon,
I've almost implemented it. If you can help me resolve the following
problem, it's done:
x:set var=notEmptyElems select=aggregator[not(text() = '-')]/
j:if test=${notEmptyElems.size() == '0'}
The call to notEmptyElems.size() is failing. Not sure why? Maybe because
it returns a number?
If I print the result of ${notEmptyElems.getClass().getName()} I get
java.util.ArrayList, so the size() method should exist.
Here's the stack trace I get:
org.apache.commons.jelly.JellyException: null:-1:-1: null Unable to
create expression: notEmptyElems.size() == '0'
at
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory.createExp
ression(JexlExpressionFactory.java:110)
at
org.apache.commons.jelly.expression.CompositeExpression.parse(CompositeE
xpression.java:128)
Any idea?
Thanks
-Vincent
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 21 November 2003 00:36
To: Maven Users List
Subject: RE: [ANN] Dashboard plugin 1.1 released
Vincent Massol [EMAIL PROTECTED] wrote on 21/11/2003 09:44:49
AM:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 November 2003 23:18
To: Maven Users List
Subject: RE: [ANN] Dashboard plugin 1.1 released
Vincent Massol [EMAIL PROTECTED] wrote on 21/11/2003
03:19:46
AM:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 November 2003 15:25
To: Maven Users List
Subject: Re: [ANN] Dashboard plugin 1.1 released
Vincent,
it'd be nice to be able to not show projects for which there
are
no
collected stats.
How easy would this be to do?
That's already possible. That's the third option described on
the
dashboard web site. You can define the property
maven.dashboard.rungoals=false. This will prevent goals from
being
executed automatically. You will need to execute them beforehand
if
you
want any stat to show up. You also have a
maven.dashboard.runreactor=true|false, if you already use a
custom
reactor (or multiproject plugin) in your projects.
I don't think you got my suggestion.
I'd basically like to be able to have the same report but without
the
rows
with no values in them.
Do you mean when the full row does not have value?
Yes, exactly.
I don't want to have to manually run the goals for all the
projects I
know
have stats.
What about excluding the projects that you wish to exclude? Or do
you
mean that you don't know in advance and want that automated? That's
easy
to do. However, I'm wondering the reason for that use case. I'm
worried
that if we remove these rows, people will start wondering why it is
not
run on other plugins (for the optional plugin page for ex). I think
having no information is also providing information: saying that
there
is no source code for example.
Yep, it sure is, but I'd like an option to be able to ignore that.
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]