ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <Darin_Swan...@us.ibm.com>
Subject Re: Input Task problem
Date Tue, 07 Aug 2007 18:22:33 GMT
An Eclipse bug not an Ant issue.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=195986

Fixed in the 3.4 stream.
Planning to fix in the 3.3.1 stream.

Thanks
Darins




Jean-Francois Croteau <jfcroteau@rheinmetall.ca> 
08/07/2007 11:01 AM
Please respond to
"Ant Users List" <user@ant.apache.org>


To
user@ant.apache.org
cc

Subject
Input Task problem






Hi,
                 can anyone help me with this one? I've switched to 
Eclipse 3.3, that
now uses Ant 1.7. Since that time, I cannot executed those lines of
code:

<project name="testInput" >
                 <target name="send_SEC" >
                                 <input message="1" 
addproperty="remote.ip" />
                                 <echo message="1 - ${remote.ip} - " />
                                 <input message="2" 
addproperty="remote.ip2" defaultvalue="default"/>
                                 <echo message="2 - ${remote.ip2} - " />
                 </target>
</project>

If I downgrade my eclipse plugins to 1.6.5, it works just fine. If I use
my 1.6.5 ant that comes with my Fedora Core 7, it works too...

It seems related to the use of defaultValue. I have this stack trace
when executing those lines:

Apache Ant version 1.7.0 compiled on December 13 2006
Apache Ant version 1.7.0 compiled on December 13 2006
Setting ro project property: ant.file
-> /home/jfcrotea/workspace/Spikes/build/build.xml
Buildfile: /home/jfcrotea/workspace/Spikes/build/build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /home/jfcrotea/workspace/Spikes/build/build.xml with
URI = file:/home/jfcrotea/workspace/Spikes/build/build.xml
Setting ro project property: ant.project.name -> testInput
Adding reference: testInput
Setting ro project property: ant.file.testInput
-> /home/jfcrotea/workspace/Spikes/build/build.xml
Project base dir set to: /home/jfcrotea/workspace/Spikes/build
 +Target: 
 +Target: send_SEC
Adding reference: eclipse.ant.targetVector
Build sequence for target(s) `send_SEC' is [send_SEC]
Complete build sequence is [send_SEC, ]
Build sequence for target(s) `send_SEC' is [send_SEC]
Complete build sequence is [send_SEC, ]
send_SEC:
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: remote.ip -> 
     [echo] 1 -  - 

BUILD FAILED
/home/jfcrotea/workspace/Spikes/build/build.xml:5:
java.lang.NullPointerException
                 at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
                 at org.apache.tools.ant.Task.perform(Task.java:348)
                 at org.apache.tools.ant.Target.execute(Target.java:357)
                 at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
                 at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
                 at 
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
                 at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                 at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
                 at 
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
                 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
                 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: java.lang.NullPointerException
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.setErrorMessage(SWTInputHandler.java:169)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.validateInput(SWTInputHandler.java:190)
                 at 
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler
$3.modifyText(SWTInputHandler.java:137)
                 at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:166)
                 at 
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1106)
                 at org.eclipse.swt.widgets.Text.setText(Text.java:1904)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.createDialog(SWTInputHandler.java:155)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.open(SWTInputHandler.java:92)
                 at 
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler
$1.run(SWTInputHandler.java:82)
                 at 
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
                 at 
org.eclipse.swt.widgets.Display.syncExec(Display.java:3897)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.handleInput(SWTInputHandler.java:65)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.ProxyInputHandler.handleInput(ProxyInputHandler.java:24)
                 at 
org.apache.tools.ant.taskdefs.Input.execute(Input.java:231)
                 at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
                 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:324)
                 at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
                 ... 10 more
--- Nested Exception ---
java.lang.NullPointerException
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.setErrorMessage(SWTInputHandler.java:169)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.validateInput(SWTInputHandler.java:190)
                 at 
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler
$3.modifyText(SWTInputHandler.java:137)
                 at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:166)
                 at 
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
                 at 
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1106)
                 at org.eclipse.swt.widgets.Text.setText(Text.java:1904)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.createDialog(SWTInputHandler.java:155)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.open(SWTInputHandler.java:92)
                 at 
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler
$1.run(SWTInputHandler.java:82)
                 at 
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
                 at 
org.eclipse.swt.widgets.Display.syncExec(Display.java:3897)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.SWTInputHandler.handleInput(SWTInputHandler.java:65)
                 at
org.eclipse.ant.internal.ui.antsupport.inputhandler.ProxyInputHandler.handleInput(ProxyInputHandler.java:24)
                 at 
org.apache.tools.ant.taskdefs.Input.execute(Input.java:231)
                 at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
                 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:324)
                 at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
                 at org.apache.tools.ant.Task.perform(Task.java:348)
                 at org.apache.tools.ant.Target.execute(Target.java:357)
                 at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
                 at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
                 at 
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
                 at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
                 at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
                 at 
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
                 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
                 at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

Total time: 4 seconds


Thank you in advance

Jeff

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



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