I have this:
<ivy:buildlist reference="build-path"> <fileset dir="${root.dir}"> <include name="*/build.xml" /> <include name="controllers/*/build.xml" /> </fileset> </ivy:buildlist> <subant buildpathref="build-path"> <target name="jar.all" /> <target name="publish-local" /> </subant>
I want to echo out everything that is in the "build-path" reference (for debugging some things).
I have tried:
<echo>${build-path}</echo>
but it just echos that exact text "${build-path}"
To run Ant build in debug or verbose mode in command prompt, we can simply use the -d or -debug (for debug mode) and -verbose (for verbose mode). This gives us deep insight into any error we might be facing with the Ant build.
A FileSet is a group of files. These files can be found in a directory tree starting in a base directory and are matched by patterns taken from a number of PatternSets and Selectors. PatternSets can be specified as nested <patternset> elements.
Ant is a Java-based build tool created as part of the Apache open-source project. You can think of it as a Java version of make. Ant scripts have a structure and are written in XML. Similar to make, Ant targets can depend on other targets. For example, Ant is used in the context of plug-in development in the build.
You can use the documented (honest, it's in there somewhere...) toString
helper:
<echo message="My build-path is ${toString:build-path}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With