verbosity - How do you determine within Ant whether verbose is enabled? -
within ant build.xml, want influence child process's verbose flag based on whether ant run verbose enabled. there variable set determine this? or otherwise, can parse raw ant command line somehow check whether -v
passed?
the property sun.java.command
contains command line options
<project > <echo message="${sun.java.command}" /> <condition property="verbose.is.set"> <contains string="${sun.java.command}" substring="-v" /> </condition> <echo message="${verbose.is.set}" /> </project>
Comments
Post a Comment