| Summary: | RemoteAntBuildListener fails with ANT Build using another encoding than UTF-8 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Manfred Otte <ottem> | ||||
| Component: | Ant | Assignee: | Platform-Ant-Inbox <platform-ant-inbox> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | darin.eclipse | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 176769 [details]
Failing build-script
Running this script as ANT Build leads to the stack trace
Exception in thread "Ant Build Server Connection" java.lang.NumberFormatException: For input string: "buildSpecialChars.xml,5"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveTaskMessage(RemoteAntBuildListener.java:246)
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveMessage(RemoteAntBuildListener.java:160)
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:95)
*** This bug has been marked as a duplicate of bug 224880 *** |
Build Identifier: 20100617-1415 When running an ANT Build with another Endocing than UTF-8 (for example <?xml version="1.0" encoding="ISO-8859-15"?>) the RemoteAntBuildListener fails to interpret the OutputStreams. It seems as if the RemoteAntBuildListener consumes the Streams always using UTF-8 (see line 91 in Version R3_6 of RemoteAntBuildListener). Stacktrace: Exception in thread "Ant Build Server Connection" java.lang.NumberFormatException: For input string: "buildSpecialChars.xml,5" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveTaskMessage(RemoteAntBuildListener.java:246) at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveMessage(RemoteAntBuildListener.java:160) at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:95) Reproducible: Always Steps to Reproduce: 1. Run Build Script <?xml version="1.0" encoding="ISO-8859-15"?> <project name="SpecialChars" default="specialChars"> <target name="specialChars"><echo message="€"/></target> </project> 2. The above mentioned stack occurs 3. Run the script using UTF-8 (Run->External Tools->External Tools Configurations->Common->Encoding->Other->UTF-8) 4. Then the script works as expected