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: Problem with system properties with dots in their names
Date Thu, 01 Jul 2004 23:03:24 GMT
its a bug in jexl. You can either do this:

<j:set var="acceptancetesturi" value="acceptance.test.uri" />
<j:if test="${empty(acceptancetesturi)}">
...

or
<j:if test="${empty(context.getVariable('acceptance.test.uri'))}">

- Brett

On Thu, 01 Jul 2004 22:52:22 +0200, Josip Gracin <gracin@tel.fer.hr> wrote:
> 
> Hi!
> 
> I have the following piece of code in maven.xml.  Note the usage of my
> custom system property
> "acceptancetesturi".  The problem is that Maven recognizes system
> properties only if there are no
> dots within their names.  For example, if I want to use something like
> "acceptance.test.uri" instead
> of "acceptancetesturi", it doesn't work.  (From  a quick look, I conclude
> that Maven takes only the
> part until the first dot.)  Why is this and is there a way to make Maven
> recognize properties with
> dots in their names.
> 
>         <preGoal name="test:test">
>                 <j:if test="${empty(acceptancetesturi)}">
>                         ${pom.build.unitTest.excludes.add('**/acceptance/**')}
>                 </j:if>
>         </preGoal>
> 
> ---------------------------------------------------------------------
> 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