You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2004/05/28 13:59:56 UTC

cvs commit: maven-components/maven-core/src/main/java/org/apache/maven DefaultMavenCore.java

evenisse    2004/05/28 04:59:56

  Modified:    maven-core/src/main/java/org/apache/maven
                        DefaultMavenCore.java
  Log:
  Add some trace processing for reactor.
  
  Revision  Changes    Path
  1.8       +9 -0      maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.java
  
  Index: DefaultMavenCore.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DefaultMavenCore.java	28 May 2004 11:32:09 -0000	1.7
  +++ DefaultMavenCore.java	28 May 2004 11:59:56 -0000	1.8
  @@ -107,6 +107,8 @@
           throws ReactorException, GoalNotFoundException
       {
           List projects = new ArrayList();
  +        
  +        System.out.println( "Starting the reactor..." );
   
           try
           {
  @@ -122,6 +124,13 @@
           catch ( Exception e )
           {
               throw new ReactorException( "Error processing projects for the reactor: ", e );
  +        }
  +        
  +        System.out.println( "Our processing order:" );
  +        for ( Iterator iterator = projects.iterator(); iterator.hasNext(); )
  +        {
  +            MavenProject project = (MavenProject) iterator.next();
  +            System.out.println( project.getName() );
           }
           
           String[] goalsList = StringUtils.split( goals, "," );
  
  
  

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


Re: cvs commit: maven-components/maven-core/src/main/java/org/apache/maven DefaultMavenCore.java

Posted by Jason van Zyl <jv...@maven.org>.
On Fri, 2004-05-28 at 08:11, Emmanuel Venisse wrote:
> Yes for the moment, I think we don't have a log strategy. Jason?

The use of a simple monitor and/or a strategy to extract message
information from the response and let the client system take care of
sending messages to the user, whether that be the console or some GUI
dialog box.

> Emmanuel
> 
> ----- Original Message ----- 
> From: "Brett Porter" <br...@apache.org>
> To: "Maven Developers List" <de...@maven.apache.org>
> Sent: Friday, May 28, 2004 2:02 PM
> Subject: Re: cvs commit:
> maven-components/maven-core/src/main/java/org/apache/maven
> DefaultMavenCore.java
> 
> 
> > Are we really still using System.out in the new code? I thought there
> > would be some monitors for this.
> >
> > evenisse@apache.org wrote:
> >
> > >evenisse    2004/05/28 04:59:56
> > >
> > >  Modified:    maven-core/src/main/java/org/apache/maven
> > >                        DefaultMavenCore.java
> > >  Log:
> > >  Add some trace processing for reactor.
> > >
> > >  Revision  Changes    Path
> > >  1.8       +9 -0
> maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.
> java
> > >
> > >  Index: DefaultMavenCore.java
> > >  ===================================================================
> > >  RCS file:
> /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/Default
> MavenCore.java,v
> > >  retrieving revision 1.7
> > >  retrieving revision 1.8
> > >  diff -u -r1.7 -r1.8
> > >  --- DefaultMavenCore.java 28 May 2004 11:32:09 -0000 1.7
> > >  +++ DefaultMavenCore.java 28 May 2004 11:59:56 -0000 1.8
> > >  @@ -107,6 +107,8 @@
> > >           throws ReactorException, GoalNotFoundException
> > >       {
> > >           List projects = new ArrayList();
> > >  +
> > >  +        System.out.println( "Starting the reactor..." );
> > >
> > >           try
> > >           {
> > >  @@ -122,6 +124,13 @@
> > >           catch ( Exception e )
> > >           {
> > >               throw new ReactorException( "Error processing projects for
> the reactor: ", e );
> > >  +        }
> > >  +
> > >  +        System.out.println( "Our processing order:" );
> > >  +        for ( Iterator iterator = projects.iterator();
> iterator.hasNext(); )
> > >  +        {
> > >  +            MavenProject project = (MavenProject) iterator.next();
> > >  +            System.out.println( project.getName() );
> > >           }
> > >
> > >           String[] goalsList = StringUtils.split( goals, "," );
> > >
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > >For additional commands, e-mail: dev-help@maven.apache.org
> > >
> > >.
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org

-- 
jvz.

Jason van Zyl
jason@maven.org
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


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


Re: cvs commit: maven-components/maven-core/src/main/java/org/apache/maven DefaultMavenCore.java

Posted by Emmanuel Venisse <em...@venisse.net>.
Yes for the moment, I think we don't have a log strategy. Jason?

Emmanuel

----- Original Message ----- 
From: "Brett Porter" <br...@apache.org>
To: "Maven Developers List" <de...@maven.apache.org>
Sent: Friday, May 28, 2004 2:02 PM
Subject: Re: cvs commit:
maven-components/maven-core/src/main/java/org/apache/maven
DefaultMavenCore.java


> Are we really still using System.out in the new code? I thought there
> would be some monitors for this.
>
> evenisse@apache.org wrote:
>
> >evenisse    2004/05/28 04:59:56
> >
> >  Modified:    maven-core/src/main/java/org/apache/maven
> >                        DefaultMavenCore.java
> >  Log:
> >  Add some trace processing for reactor.
> >
> >  Revision  Changes    Path
> >  1.8       +9 -0
maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.
java
> >
> >  Index: DefaultMavenCore.java
> >  ===================================================================
> >  RCS file:
/home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/Default
MavenCore.java,v
> >  retrieving revision 1.7
> >  retrieving revision 1.8
> >  diff -u -r1.7 -r1.8
> >  --- DefaultMavenCore.java 28 May 2004 11:32:09 -0000 1.7
> >  +++ DefaultMavenCore.java 28 May 2004 11:59:56 -0000 1.8
> >  @@ -107,6 +107,8 @@
> >           throws ReactorException, GoalNotFoundException
> >       {
> >           List projects = new ArrayList();
> >  +
> >  +        System.out.println( "Starting the reactor..." );
> >
> >           try
> >           {
> >  @@ -122,6 +124,13 @@
> >           catch ( Exception e )
> >           {
> >               throw new ReactorException( "Error processing projects for
the reactor: ", e );
> >  +        }
> >  +
> >  +        System.out.println( "Our processing order:" );
> >  +        for ( Iterator iterator = projects.iterator();
iterator.hasNext(); )
> >  +        {
> >  +            MavenProject project = (MavenProject) iterator.next();
> >  +            System.out.println( project.getName() );
> >           }
> >
> >           String[] goalsList = StringUtils.split( goals, "," );
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >For additional commands, e-mail: dev-help@maven.apache.org
> >
> >.
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>


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


Re: cvs commit: maven-components/maven-core/src/main/java/org/apache/maven DefaultMavenCore.java

Posted by Brett Porter <br...@apache.org>.
Are we really still using System.out in the new code? I thought there 
would be some monitors for this.

evenisse@apache.org wrote:

>evenisse    2004/05/28 04:59:56
>
>  Modified:    maven-core/src/main/java/org/apache/maven
>                        DefaultMavenCore.java
>  Log:
>  Add some trace processing for reactor.
>  
>  Revision  Changes    Path
>  1.8       +9 -0      maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.java
>  
>  Index: DefaultMavenCore.java
>  ===================================================================
>  RCS file: /home/cvs/maven-components/maven-core/src/main/java/org/apache/maven/DefaultMavenCore.java,v
>  retrieving revision 1.7
>  retrieving revision 1.8
>  diff -u -r1.7 -r1.8
>  --- DefaultMavenCore.java	28 May 2004 11:32:09 -0000	1.7
>  +++ DefaultMavenCore.java	28 May 2004 11:59:56 -0000	1.8
>  @@ -107,6 +107,8 @@
>           throws ReactorException, GoalNotFoundException
>       {
>           List projects = new ArrayList();
>  +        
>  +        System.out.println( "Starting the reactor..." );
>   
>           try
>           {
>  @@ -122,6 +124,13 @@
>           catch ( Exception e )
>           {
>               throw new ReactorException( "Error processing projects for the reactor: ", e );
>  +        }
>  +        
>  +        System.out.println( "Our processing order:" );
>  +        for ( Iterator iterator = projects.iterator(); iterator.hasNext(); )
>  +        {
>  +            MavenProject project = (MavenProject) iterator.next();
>  +            System.out.println( project.getName() );
>           }
>           
>           String[] goalsList = StringUtils.split( goals, "," );
>  
>  
>  
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>For additional commands, e-mail: dev-help@maven.apache.org
>
>.
>
>  
>


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