DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4991>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4991

text between echo tags written to second line of file

           Summary: text between echo tags written to second line of file
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Solaris
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When using the echo task to write to a file and using opening and closing echo 
tags the text within the tags begins on the second line of the file.  For 
example, the shell script created the following way will not run because the 
shell path is written on the second line of the file.
Example:

<echo file="runner.csh">
#\!/bin/tcsh
java-1.3.1 -mx1024m Bandera $$*
</echo>

The workaround is to simply include the first line within the opening XML echo 
tag, then the remaining lines between the opening and closing tags.
Workaround:

<echo file="runner.csh" message="#\!/bin/tcsh" >
java-1.3.1 -mx1024m Bandera $$*
</echo>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to