You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by WolfgangHäfelinger <wh...@epo.org> on 2005/07/01 15:19:33 UTC

where's the output going to?

Hi,

On http://maven.apache.org/reference/scripting.html is a Jelly scripting 
example
named "nighly-build". Here's a modified version:

<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util">
  <goal name="nightly-build">
    <j:set var="goals" value="A,B" />
    <u:tokenize var="goals" delim=",">${goals}</u:tokenize>

    <j:forEach items="${goals}" var="goal">
      Now attaining goal ${goal}
      <attainGoal name="${goal}" />
    </j:forEach>
  </goal>

  <goal name="A" />
 
  <goal name="B">
    <ant:echo />
  </goal> 

</project>


So when I run
 $ maven nightly-build

I'm getting:
 [..]
 nightly-build:
 Now attaining goal number 0, which is A
    A:

 Now attaining goal number 1, which is B
    B:
    [echo] 
 BUILD SUCCESSFUL
 [..]

HOWEVER, after I removed <ant:echo /> from goal B (!), I can't see this 
output any longer, i.e. the 'Now
attaining goal ..' lines are gone.

What's going on here?

Regards,
Wolfgang.





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


Re: where's the output going to?

Posted by Brett Porter <br...@gmail.com>.
Just some funniness in the interaction of Jelly and Werkz. The echo
causes the output to be flushed, whereas the others don't. There isn't
any way to manually do it to my knowledge.

- Brett

On 7/1/05, WolfgangHäfelinger <wh...@epo.org> wrote:
> Hi,
> 
> On http://maven.apache.org/reference/scripting.html is a Jelly scripting
> example
> named "nighly-build". Here's a modified version:
> 
> <project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:u="jelly:util">
>   <goal name="nightly-build">
>     <j:set var="goals" value="A,B" />
>     <u:tokenize var="goals" delim=",">${goals}</u:tokenize>
> 
>     <j:forEach items="${goals}" var="goal">
>       Now attaining goal ${goal}
>       <attainGoal name="${goal}" />
>     </j:forEach>
>   </goal>
> 
>   <goal name="A" />
> 
>   <goal name="B">
>     <ant:echo />
>   </goal>
> 
> </project>
> 
> 
> So when I run
>  $ maven nightly-build
> 
> I'm getting:
>  [..]
>  nightly-build:
>  Now attaining goal number 0, which is A
>     A:
> 
>  Now attaining goal number 1, which is B
>     B:
>     [echo]
>  BUILD SUCCESSFUL
>  [..]
> 
> HOWEVER, after I removed <ant:echo /> from goal B (!), I can't see this
> output any longer, i.e. the 'Now
> attaining goal ..' lines are gone.
> 
> What's going on here?
> 
> Regards,
> Wolfgang.
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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