File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Passing parameters to echo using ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Passing parameters to echo using ANT" Watch "Passing parameters to echo using ANT" New topic
Author

Passing parameters to echo using ANT

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
Would it be posible for me to dynamicaly set the values variable while executing this command?

<echo>
****** Building directory ${values}
</echo>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

If you're talking about updating a "progress" message, no, though I believe there's some sort of callback for IDEs to do things like that. Echo is executed as a step in an Ant target build, but it's not designed to go back and rewrite the line, nor is it fast enough to do so without being annoying.
But for a "I'm doing this" type message, yes, and you've shown it exactly as it should be done. I do things like that all the time.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
Thanks Tim,
I just wanted to make sure I wasn't doing anything unneccesary.
Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
Actually I have one more question. Is it possible to turn off some of the default output such as :[javac] Compiling 5 source files
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15632
    
  15

Have you tried the -quiet option?
Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
That was it...thanks again dude.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing parameters to echo using ANT
 
Similar Threads
Very Simple Question
Timer wrong constructor?
ant exception
quick question about TStamp in ant
Creating for loops in ANT