Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes Very Simple Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Very Simple Question" Watch "Very Simple Question" New topic
Author

Very Simple Question

Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272
Hi,

I have build.xml and invoke ant from the command prompt, which would call build.xml and do whatever mentioned there.

Now, in build.xml, I want to give some commands like print so that it will print the name of the .xml being invoked. That is, it should print the name of the file...in this case, it should print "build.xml".

I was going through Exec command in ant. Can it be done using Exec command or somehow simply?

Thanks,
Guru
Gurumurthy Ramamurthy
Ranch Hand

Joined: Feb 13, 2003
Posts: 272
got it guys...
<echo message="your message"/>

Thanks,
Guru
Ryan Zezeski
Greenhorn

Joined: Mar 13, 2005
Posts: 29
FYI, ant already does this for you. The first thing ant prints to stdout is


[ January 17, 2006: Message edited by: Ryan Zezeski ]

Java has 99 problems but a pointer ain't one
 
 
subject: Very Simple Question
 
Similar Threads
command executed for ant task
Problem deploying war with ant in glass fish 3.1.1
passing arguments to ant
How to print classpath using ant
ANT file