You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jay Yarbrough <JY...@ritchiecapital.com> on 2002/11/13 15:40:14 UTC

silly question on "echo" task

I have been using the echo task to create a text file, during the build process.

It would seem that indention of the xml code actually affects the output from the echo task.

Am I crazy, or is this the case?
If I indent the following snippet a single tab, it causes the output to be different, from when it is not indented.

-----------------------------------
<echo message="${version}"/>
<echo message="Component:${product}" file="${product}.txt" append="false"/>
<echo file="${product}.txt" append="true">
</echo>
<echo message="Version:${version}" file="${product}.txt" append="true"/>
<echo file="${product}.txt" append="true">
</echo>
<echo message="Date:${time_date}" file="${product}.txt" append="true"/>


<copy file="${product}.txt" tofile="${outputdir}/${product}.txt"/>

---------------------------------------
output from above:

BUILD SUCCESSFUL
Total time: 0 seconds
C:\Build\nyx>more test.txt
Component:test
Version:test
Date:11/13/2002 08:33:20

output from the above, if indented one tab:

BUILD SUCCESSFUL
Total time: 0 seconds
C:\Build\nyx>more test.txt
Component:test
                Version:test
                Date:11/13/2002 08:32:53

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>