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-myrmidon/container/src/java/org/apache/myrmidon/components/builder DefaultProjectBuilder.java
Date Thu, 23 May 2002 05:25:14 GMT
donaldp     02/05/22 22:25:14

  Modified:    container/src/java/org/apache/myrmidon/components/builder
                        DefaultProjectBuilder.java
  Log:
  Don't notify that targets are parsed as that is not so interesting
  
  Revision  Changes    Path
  1.62      +4 -23     jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/builder/DefaultProjectBuilder.java
  
  Index: DefaultProjectBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/builder/DefaultProjectBuilder.java,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- DefaultProjectBuilder.java	23 May 2002 05:02:54 -0000	1.61
  +++ DefaultProjectBuilder.java	23 May 2002 05:25:14 -0000	1.62
  @@ -32,7 +32,7 @@
    * Default implementation to construct project from a build file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.61 $ $Date: 2002/05/23 05:02:54 $
  + * @version $Revision: 1.62 $ $Date: 2002/05/23 05:25:14 $
    *
    * @ant.type type="project-builder" name="ant2"
    */
  @@ -308,6 +308,7 @@
       {
           final ModelElement implicit = new ModelElement( "target",  model.getLocation()
);
           implicit.setAttribute( "name", "<init>" );
  +        project.setImplicitTarget( new Target( implicit ) );
   
           final ModelElement[] children = model.getChildren();
   
  @@ -347,7 +348,8 @@
   
               if( name.equals( "target" ) )
               {
  -                buildTarget( project, element );
  +                final String target = element.getAttribute( "name" );
  +                project.addTarget( target, new Target( element ) );
               }
               else
               {
  @@ -357,8 +359,6 @@
                   throw new ProjectException( message );
               }
           }
  -
  -        project.setImplicitTarget( new Target( implicit ) );
       }
   
       private void buildProjectRef( final DefaultProject project,
  @@ -433,24 +433,5 @@
               final String message = REZ.getString( "ant.project-unexpected.error" );
               throw new ProjectException( message, e );
           }
  -    }
  -
  -    /**
  -     * Build a target from configuration.
  -     *
  -     * @param project the project
  -     * @param target the Configuration
  -     */
  -    private void buildTarget( final DefaultProject project, final ModelElement target )
  -        throws Exception
  -    {
  -        final String name = target.getAttribute( "name" );
  -        if( getLogger().isDebugEnabled() )
  -        {
  -            final String message = REZ.getString( "ant.target-parse.notice", name );
  -            getLogger().debug( message );
  -        }
  -
  -        project.addTarget( name, new Target( target ) );
       }
   }
  
  
  

--
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