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 22647] New: - File created by java output attribute is wrapped at 1024 characters
Date Fri, 22 Aug 2003 03:42:14 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=22647>.
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=22647

File created by java output attribute is wrapped at 1024 characters

           Summary: File created by java output attribute is wrapped at 1024
                    characters
           Product: Ant
           Version: 1.5.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: brian.kavanagh@immi.gov.au


The file specified by the output attribute of the java task wraps at 1024 
characters when the output from the java task contains line longer than 1024 
characters.

i.e.

---
Test.java
---

public class Test
{
    /**
     * This program should output a single line of text 2048 character long.
     */
    static public void main(String[] args) throws Exception
    {
        for (int i = 0; i < 2048; i++) {
           System.out.print("" + (i % 10));
        }

        System.out.println();
    }
}


---
build.xml
---

<?xml version="1.0"?>
<project name="test" default="all">
   <target name="all">
     <javac srcdir="."       includes="Test.java"/>
     <java  classname="Test" classpath="." output="Test.out"/>
   </target>
</project>

---

The file, Test.out, contains two lines of output even though it should only 
have the one.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message