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/java/org/apache/myrmidon/components/manager ProjectEntry.java
Date Tue, 12 Jun 2001 13:57:51 GMT
donaldp     01/06/12 06:57:51

  Added:       proposal/myrmidon/src/java/org/apache/myrmidon/components/manager
                        ProjectEntry.java
  Log:
  Interface used to contain relevent data for each project managed by ProjectManager.
  
  Revision  Changes    Path
  1.1                  jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/manager/ProjectEntry.java
  
  Index: ProjectEntry.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.myrmidon.components.manager;
  
  import java.util.ArrayList;
  import org.apache.myrmidon.components.model.Project;
  import org.apache.myrmidon.components.executor.ExecutionFrame;
  
  /**
   * This contains detaisl for each project that is managed by ProjectManager.
   *
   * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
   */
  public final class ProjectEntry
  {
      private final Project         m_project;
      private final ExecutionFrame  m_frame;
      private final ArrayList       m_targetsCompleted   = new ArrayList();
  
      public ProjectEntry( final Project project, 
                           final ExecutionFrame frame )
      {
          m_project = project;
          m_frame = frame;
      }
  
      public Project getProject()
      {
          return m_project;
      }
  
      public ExecutionFrame getFrame()
      {
          return m_frame;
      }
  
      public boolean isTargetCompleted( final String target )
      {
          return m_targetsCompleted.contains( target );
      }
  
      public void completeTarget( final String target )
      {
          m_targetsCompleted.add( target );
      }
  }
  
  
  

Mime
View raw message