ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38622] - NullPointerException raised if deprecated ProjectHelper.configureProject is not called
Date Mon, 13 Feb 2006 19:33:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38622>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38622


jkf@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From jkf@apache.org  2006-02-13 20:33 -------
Just that the deprecated flag is gone.

The described problem will not occur anymore, and would not have occured when
using ant without providing your own entry point / project.

If you want to report another issue / improvement, you are of course welcome to
do so, but in that case please use a new bug report / enhancement request.

By the way, 

ProjectHelper ph = ProjectHelper.getProjectHelper();
    // ProjectHelper.configureProject is deprecated but if <import/>
    // is used generates NullPointerException ... d'oh
    ph.configureProject(project, buildFile);
    ph.parse(project, buildFile);

can be replaced by 

ProjectHelper.configureProject(project, buildFile);

It implies as far as I rememer the ProjectHelper.getProjectHelper() and
ph.parse(project, buildFile) call.

Before using that projecthelper one can retrieve that same projectHelper from
the project by doing
ProjectHelper helper =
                (ProjectHelper) getProject().
                    getReference(ProjectHelper.PROJECTHELPER_REFERENCE);




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message