Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem runing a ANTScript startet with AntRunner
Problem runing a ANTScript startet with AntRunner [message #193660] Tue, 13 February 2007 04:37
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
Hi,

I found the following problem: In my plugin I use

AntRunner runner = new AntRunner();
runner.setBuildFileLocation(ftpANTFile.getLocation().toOSStr ing());
runner.addBuildLogger("org.apache.tools.ant.DefaultLogger");
runner.setArguments("-DFTPDir=" + ftpANTFile.getLocation
().removeLastSegments(2)
+ " -logfile " + ftpANTOutput.getLocation()
);

to start an ANTScript. In the Script I do
<target name="LRPTest" depends="PreLRPTest" unless="LRP.User.present">
<input
message="Bitte Password eingeben:"
addproperty="psw"
defaultvalue="??????"
/>
</target>

When I run this I get the folowing exeption

org.eclipse.core.runtime.CoreException: /Users/frank_becker/Documents/
runtime-EclipseApplication/aa/LRPdeploy.xml:32: Failed to read input
from Console.
at org.eclipse.ant.core.AntRunner.handleInvocationTargetExcepti on
(AntRunner.java:430)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:362)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:453)
at
de.lrp.editor.sironeditor.siron.SyncWithHost.createDoTestHos tBuild
(SyncWithHost.java:254)
at de.lrp.editor.sironeditor.PresentationAction.run
(PresentationAction.java:48)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection
(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEven t
(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :
66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:
1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:
3312)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :
2941)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:
1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplic
ation(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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
org.eclipse.core.runtime.CoreException[1]: /Users/frank_becker/
Documents/runtime-EclipseApplication/aa/LRPdeploy.xml:32: Failed to
read input from Console.
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.ja va:
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.exe cuteTarget
s(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:457)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:453)
at
de.lrp.editor.sironeditor.siron.SyncWithHost.createDoTestHos tBuild
(SyncWithHost.java:254)
at de.lrp.editor.sironeditor.PresentationAction.run
(PresentationAction.java:48)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection
(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEven t
(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :
66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:
1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:
3312)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :
2941)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:
1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplic
ation(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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
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:66)
at java.io.DataInputStream.readLine(DataInputStream.java:473)
at org.apache.tools.ant.input.DefaultInputHandler.handleInput
(DefaultInputHandler.java:56)
... 49 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:66)
at java.io.DataInputStream.readLine(DataInputStream.java:473)
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.ja va:
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.exe cuteTarget
s(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:706)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run
(InternalAntRunner.java:457)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:453)
at
de.lrp.editor.sironeditor.siron.SyncWithHost.createDoTestHos tBuild
(SyncWithHost.java:254)
at de.lrp.editor.sironeditor.PresentationAction.run
(PresentationAction.java:48)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection
(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEven t
(ActionContributionItem.java:441)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :
66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:
1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:
3312)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :
2941)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:
1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplic
ation(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:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Previous Topic:Cant register Websphere CE with Eclipse
Next Topic:No Checkmark on Breakpoint
Goto Forum:
  


Current Time: Fri Apr 19 09:11:23 GMT 2024

Powered by FUDForum. Page generated in 0.03024 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top