You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by 07...@acadiau.ca on 2007/06/19 14:40:33 UTC

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


RE: Echo a message without showing "echo"

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
ant -e echoMsg

-Rob A

> -----Original Message-----
> From: 078840l@acadiau.ca [mailto:078840l@acadiau.ca] 
> Sent: Tuesday, June 19, 2007 5:41 AM
> To: user@ant.apache.org
> Subject: 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