You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Anderson <be...@gmail.com> on 2004/11/01 21:01:24 UTC

Anyone know what I'm doing wrong here:

  <goal name="prop">
    <j:new var="envs" className="java.util.ArrayList"/>
    <j:mute>
      ${envs.add('.qa')}
      ${envs.add('.Nqa')}
      ${envs.add('.prod')}
    </j:mute>
    ...

I assumed running this would output nothing, but on the contrary, it does:
$ maven -Denv=qa prop
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

build:start:

prop:
<j:mute>true
      true
      true</j:mute>    
BUILD SUCCESSFUL
Total time: 2 seconds
Finished at: Mon Nov 01 14:57:29 EST 2004

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


Re:

Posted by Brett Porter <br...@gmail.com>.
This tag was created in a later version of Jelly. You may have to wait
for Maven 1.1.

You can try depending on commons-jelly-beta-4, but it may break Maven.

Alternatively, you can reimplement the tag in another library
temporarily using the source from Jelly.

Cheers,
Brett


On Mon, 1 Nov 2004 15:01:24 -0500, Ben Anderson
<be...@gmail.com> wrote:
> Anyone know what I'm doing wrong here:
> 
>   <goal name="prop">
>     <j:new var="envs" className="java.util.ArrayList"/>
>     <j:mute>
>       ${envs.add('.qa')}
>       ${envs.add('.Nqa')}
>       ${envs.add('.prod')}
>     </j:mute>
>     ...
> 
> I assumed running this would output nothing, but on the contrary, it does:
> $ maven -Denv=qa prop
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> build:start:
> 
> prop:
> <j:mute>true
>       true
>       true</j:mute>
> BUILD SUCCESSFUL
> Total time: 2 seconds
> Finished at: Mon Nov 01 14:57:29 EST 2004
> 
> ---------------------------------------------------------------------
> 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