[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1119) Hibernate tools tasks(hbm2java) generates info logs as standard error logs (shows red in eclipse) instead of standard out

vivek meghanathan (JIRA) noreply at atlassian.com
Mon Apr 6 10:53:40 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32801#action_32801 ] 

vivek meghanathan commented on HBX-1119:
----------------------------------------

I am guessing the following function in the source code http://www.docjar.com/docs/api/org/apache/tools/ant/ProjectComponent.html
 making the issue. It goes to the else part as we embedded the ant task as antplugin in maven and the project name will be null. can anybody provide any workaround ?


public  void log(String msg,
    int msgLevel) {
        if (getProject() != null) {
            getProject().log(msg, msgLevel);
        } else {
            // 'reasonable' default, if the component is used without
            // a Project ( for example as a standalone Bean ).
            // Most ant components can be used this way.
            if (msgLevel < = Project.MSG_INFO) {
                System.err.println(msg);
            }
        }


> Hibernate tools tasks(hbm2java) generates info logs as standard error logs (shows red in eclipse) instead of standard out
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBX-1119
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1119
>             Project: Hibernate Tools
>          Issue Type: Bug
>          Components: hbm2java
>    Affects Versions: 3.2.0.GA
>         Environment: Hibernate 3.2.0 GA
>            Reporter: vivek meghanathan
>   Original Estimate: 5 days
>  Remaining Estimate: 5 days
>
> Hibernate tools tasks(hbm2java) generates info logs as standard error logs (shows red in eclipse) instead of standard out.
> Please have a look.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list