ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4991] New: - text between echo tags written to second line of file
Date Wed, 21 Nov 2001 00:42:29 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: abc4669@ksu.edu


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message