I have rewritten the command line parsing to support the use of nested
elements and text like
<copy todir="test">
<fileset dir="src"/>
</copy>
<echo>Hello World</echo>
The examples now show the XML-Syntax followed by the command line.
But the last example doesnt work:
XML: <concat>
<fileset dir="src" includes="*.properties"/>
<header>Ant Version ${ant.version}</header>
<footer>End of text</footer>
</concat>
CMD: concat + fileset dir src includes *.properties - + header # Ant
Version ${ant.version} - + footer # End of text
------------------------------------------------------------------------
-----------------------
Problem: failed to create task or type footer
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
at
org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.
java:481)
at
org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:413)
at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:1
60)
at org.apache.ant.javafront.builder.Tag.build(Tag.java:70)
at org.apache.ant.javafront.TaskExec.startAnt(TaskExec.java:110)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Ideas?
Jan