You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/03/27 14:57:19 UTC
DO NOT REPLY [Bug 44689] New: NPE when running multiple targets in
Ant
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
Summary: NPE when running multiple targets in Ant
Product: Ant
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: rbuck@verisign.com
Run the following build file as "ant init clean" and you ALWAYS get an NPE. I
have seen this behavior in several scenarios, and basically one cannot run
multiple build targets from the command line without Ant blowing up.
<?xml version="1.0"?>
<project name="AntNPE" default="init">
<target name="init">
<echo id="test">test</echo>
</target>
<target name="clean" depends="init"/>
</project>
D:\dev\thirdparty\shared\apache-ant-1.7.1beta>ant -version
Apache Ant version 1.7.1beta compiled on March 18 2008
D:\dev\thirdparty\shared\apache-ant-1.7.1beta>ant -f antfails.xml init clean
Buildfile: antfails.xml
init:
[echo] test
init:
BUILD FAILED
java.lang.NullPointerException
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
urable.java:381)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
urable.java:349)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
at org.apache.tools.ant.Task.perform(Task.java:347)
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:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 0 seconds
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44689] NPE when running multiple targets in Ant
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Stefan Bodewig <bo...@apache.org> 2008-08-08 07:56:33 PST ---
seems to be fixed in 1.7.1.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44689] NPE when running multiple targets in Ant
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
Xavier Hanin <xa...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xavier@apache.org
--- Comment #2 from Xavier Hanin <xa...@apache.org> 2008-03-27 08:28:49 PST ---
Note that the problem occurs only when the id of the task is set. This is
occuring rather frequently with the settings task in Ivy, in which we use the
id to reference the settings from other tasks.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44689] NPE when running multiple targets in Ant
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
Peter Reilly <pe...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #4 from Peter Reilly <pe...@apache.org> 2008-03-27 10:10:22 PST ---
I have committed a fix. But not set the status to fixee since
the target milestone is 1.7.1
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44689] NPE when running multiple targets in Ant
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
--- Comment #3 from Matt Benson <gu...@yahoo.com> 2008-03-27 09:55:54 PST ---
Verified--weird.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44689] NPE when running multiple targets in Ant
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2008-03-27 08:16:41 PST ---
happens in trunk as well
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.