ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Echo a message without showing "echo"
Date Tue, 19 Jun 2007 12:59:52 GMT
When you want to reuse the <echo>, just set the taskname to some other value.

<presetdef name="mytask">
    <echo taskname="mytask"/>
</presetdef>
<mytask message="hello"/>


If you want to get rid off all these log-prefixes, you can use the -emacs mode.


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: 078840l@acadiau.ca [mailto:078840l@acadiau.ca] 
>Gesendet: Dienstag, 19. Juni 2007 14:41
>An: user@ant.apache.org
>Betreff: Echo a message without showing "echo"
>
>Hello
>  
> I am writing ant tasks and want to echo a message on the user 
>interface. My
> question is how to show the message without showing the 
>[echo] right in
> front of the message.
>
> For example, By running the following script:
>
> <target description="echo a message" name="echoMsg">
> <echo message="A Message" />
> </target>
>  
> I get:
>
> Buildfile: build.xml
> echoMsg:
>      [echo] A message
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
> However, what I want is:
>
> Buildfile: build.xml
> echoMsg:
>      A message
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
> So, How can I echo the message without showing the "[echo]" part.
>
> Thank you.
>
> Dee
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message