ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant ProjectComponent.java
Date Sun, 16 Dec 2001 06:43:49 GMT
donaldp     01/12/15 22:43:49

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant
                        ProjectComponent.java
  Log:
  delegate Logging to myrmidons system.
  
  Revision  Changes    Path
  1.7       +20 -10    jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java
  
  Index: ProjectComponent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/ProjectComponent.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ProjectComponent.java	2001/12/16 06:22:29	1.6
  +++ ProjectComponent.java	2001/12/16 06:43:49	1.7
  @@ -52,18 +52,28 @@
           //HACK: NOOP execute - should be deleted in the future!
       }
   
  -    /**
  -     * Log a mesage with the give priority.
  -     *
  -     * @param msgLevel the message priority at which this message is to be
  -     *      logged.
  -     * @param msg Description of Parameter
  -     */
  -    public void log( String msg, int msgLevel )
  +    public void log( final String message, int priority )
       {
  -        if( project != null )
  +        switch( priority )
           {
  -            project.log( msg, msgLevel );
  +            case Project.MSG_ERR:
  +                getLogger().error( message );
  +                break;
  +            case Project.MSG_WARN:
  +                getLogger().warn( message );
  +                break;
  +            case Project.MSG_INFO:
  +                getLogger().info( message );
  +                break;
  +            case Project.MSG_VERBOSE:
  +                getLogger().debug( message );
  +                break;
  +            case Project.MSG_DEBUG:
  +                getLogger().debug( message );
  +                break;
  +
  +            default:
  +                getLogger().debug( message );
           }
       }
   }
  
  
  

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


Mime
View raw message