ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework Execute.java
Date Tue, 19 Mar 2002 11:17:05 GMT
adammurdoch    02/03/19 03:17:05

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/framework
                        Execute.java
  Log:
  Log command-line using info() rather than debug().
  
  Revision  Changes    Path
  1.8       +10 -9     jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/framework/Execute.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Execute.java	18 Mar 2002 11:49:46 -0000	1.7
  +++ Execute.java	19 Mar 2002 11:17:05 -0000	1.8
  @@ -29,7 +29,7 @@
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    * @author <a href="mailto:thomas.haas@softwired-inc.com">Thomas Haas</a>
  - * @version $Revision: 1.7 $ $Date: 2002/03/18 11:49:46 $
  + * @version $Revision: 1.8 $ $Date: 2002/03/19 11:17:05 $
    */
   public class Execute
   {
  @@ -189,16 +189,17 @@
                                    final TaskContext context )
           throws TaskException
       {
  -        if( ! context.isDebugEnabled() )
  +        if( context.isInfoEnabled() )
           {
  -            return;
  +            final String cmdline = FileUtils.formatCommandLine( metaData.getCommand() );
  +            final String message = REZ.getString( "execute.command.notice", cmdline );
  +            context.info( message );
  +        }
  +        if( context.isDebugEnabled() )
  +        {
  +            final String message = REZ.getString( "execute.env-vars.notice", metaData.getEnvironment()
);
  +            context.debug( message );
           }
  -
  -        String cmdline = FileUtils.buildCommandLine( metaData.getCommand() );
  -        String message = REZ.getString( "execute.command.notice", cmdline );
  -        context.debug( message );
  -        message = REZ.getString( "execute.env-vars.notice", metaData.getEnvironment() );
  -        context.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