ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Burdairon <>
Subject Problems with telnet task during an ant migration
Date Thu, 15 Apr 2010 14:51:14 GMT
We are in a migration from ant 1.6.2 to 1.8.0 and are encountering troubles
using telnet task :

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="testtelnet" default="compile" basedir=".">

<target name="telnet">
    <telnet userid="XXX" password="YYY" server="ZZZ">
       <read string="/home/bob"/>

throws an OOM

Distant server is Sun OS 5.8 (Solaris 8)

This simple script is OK with 1.6.2, but not with 1.8.0 :

java.lang.OutOfMemoryError: Java heap space

     [java] 	at java.util.Arrays.copyOf(
     [java] 	at
     [java] 	at

     [java] 	at java.lang.StringBuffer.append(
     [java] 	at$AntTelnetClient.waitForString(
     [java] 	at$AntTelnetClient.waitForString(

     [java] 	at
     [java] 	at

We replaced TelnetTask with the old one from 1.6.2 as a workaround.
After a quick look to the source, it seems that the change
wrong, especially the replacement of a String.indexOf by a



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message