https://issues.apache.org/bugzilla/show_bug.cgi?id=48128
Summary: Ant input task failing to read input from console Product: Ant Version: 1.6.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: major Priority: P2 Component: Core tasks AssignedTo: notifications@ant.apache.org ReportedBy: paul.jen...@barclays.com Hi, We are migrating all of our dev environments from RAD6 to RAD7 which has meant that I have had to update our Ant build scripts to the point to the right jar's etc for the RAD7 installation Since updating the application builds are failing every time at the same point. When attempting the input task (see below): <input message="Soulution has been built. Do you wish to import and baseline the build (y/n)?" validargs="y,n" addproperty="do.baseline" /> <condition property="do.abort"> <equals casesensitive="false" arg1="n" arg2="${do.baseline}"/> </condition> <fail if="do.abort">Build aborted by user.</fail> I get the error: BUILD FAILED X:\System\SON_Config_Management_Utilities\Ant\Baseline-Build-Solution.xml:41: Failed to read input from Console. And in verbose mode I get the following stack trace: at org.apache.tools.ant.input.DefaultInputHandler.handleInput(DefaultInputHandler.java:59) at org.apache.tools.ant.taskdefs.Input.execute(Input.java:117) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:584) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494) at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:996) at org.eclipse.core.launcher.Main.main(Main.java:971) Caused by: java.io.IOException at org.eclipse.ant.internal.core.ant.FailInputHandler$1.read(FailInputHandler.java:25) at java.io.FilterInputStream.read(FilterInputStream.java:89) at java.io.DataInputStream.readLine(DataInputStream.java:499) at org.apache.tools.ant.input.DefaultInputHandler.handleInput(DefaultInputHandler.java:56) ... 31 more --- Nested Exception --- java.io.IOException at org.eclipse.ant.internal.core.ant.FailInputHandler$1.read(FailInputHandler.java:25) at java.io.FilterInputStream.read(FilterInputStream.java:89) at java.io.DataInputStream.readLine(DataInputStream.java:499) at org.apache.tools.ant.input.DefaultInputHandler.handleInput(DefaultInputHandler.java:56) at org.apache.tools.ant.taskdefs.Input.execute(Input.java:117) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:706) at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:584) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.ant.core.AntRunner.run(AntRunner.java:494) at com.ibm.ant.extras.RunAnt.run(RunAnt.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:996) at org.eclipse.core.launcher.Main.main(Main.java:971) If anyone has any ideas why this might be happening it would be very much appreciated. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.