ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (IVY-786) NPE in Ant ivy:settings call when multiple Ant targets are called
Date Fri, 11 Jul 2008 12:36:31 GMT

     [ https://issues.apache.org/jira/browse/IVY-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maarten Coene resolved IVY-786.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-RC1
         Assignee: Maarten Coene

This is fixed now because ivy:settings is no longer a task but a datatype. 
The Ant bug only appears when you set the id attribute on a task.

> NPE in Ant ivy:settings call when multiple Ant targets are called
> -----------------------------------------------------------------
>
>                 Key: IVY-786
>                 URL: https://issues.apache.org/jira/browse/IVY-786
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-2
>         Environment: Ant 1.7.0, IVY 2.0-Beta2, IVY 2.0 Dev Source as of March 27, 2008
-- all failed.
>            Reporter: Robert Buck
>            Assignee: Maarten Coene
>            Priority: Critical
>             Fix For: 2.0-RC1
>
>         Attachments: build.xml, ivysettings.xml
>
>
> Put these files into the ivy directory and call "ant clean dist", and you will always
get an NPE. With no ivy:settings call, all clear. Changing the ivy:settings id or override
values does not help either.
> BUILD FAILED
> D:\dev\rbuck\sandboxes\smq-msgbus-dev\releng\vendor\ivy\build.xml:9:java.lang.NullPointerException
>         at org.apache.tools.ant.Task.perform(Task.java:357)
>         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.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.lang.NullPointerException
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:381)
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
>         at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
>         at org.apache.tools.ant.Task.perform(Task.java:347)
>         ... 10 more
> --- Nested Exception ---
> java.lang.NullPointerException
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:381)
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.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:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message