How can I print out the value of a variable in my build.xml
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   java_Wang
Posted On:   Monday, February 2, 2004 09:21 PM

I'm composing a big build.xml, for the sake of debugging,I want to print out values of some variables defined in it.
I found ECHO only can print static message, and I even tried to use "exec" to execute a dos-command "type %classpath%",but failed to do that.

Can anyone help?

Re: How can I print out the value of a variable in my build.xml

Posted By:   Anonymous  
Posted On:   Wednesday, February 4, 2004 02:53 AM

Same as you use properties in other places
variable is set to ${variable}

Maybe you should set the level to debug/verbose. And for easier use you can redefine that ...






Start Ant


Start javac, src.dir is ${src.dir}



About | Sitemap | Contact