jvanzyl     02/04/19 07:50:32

  Modified:    src/java/org/apache/maven/project Profile.java
  Log:
  Updating the model to make the reactor easier to work with.
  
  Revision  Changes    Path
  1.5       +37 -1     
jakarta-turbine-maven/src/java/org/apache/maven/project/Profile.java
  
  Index: Profile.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Profile.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Profile.java      24 Feb 2002 17:45:37 -0000      1.4
  +++ Profile.java      19 Apr 2002 14:50:32 -0000      1.5
  @@ -61,7 +61,7 @@
    * A profile consists of a number of projects.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
  - * @version $Id: Profile.java,v 1.4 2002/02/24 17:45:37 jvanzyl Exp $
  + * @version $Id: Profile.java,v 1.5 2002/04/19 14:50:32 jvanzyl Exp $
    */
   public class Profile
       extends BaseObject
  @@ -72,11 +72,17 @@
       private List projects;
   
       /**
  +     * Project Ids
  +     */
  +    private List projectIds;
  +
  +    /**
        * Default constructor
        */
       public Profile()
       {
           projects = new ArrayList();
  +        projectIds = new ArrayList();
       }
   
       /**
  @@ -90,6 +96,16 @@
       }
   
       /**
  +     * Add a project to the project list for this profile
  +     *
  +     * @param project
  +     */
  +    public void addProjectId(String projectId)
  +    {
  +        projectIds.add(projectId);
  +    }
  +
  +    /**
        * Set the list of projects that belong to this
        * profile.
        *
  @@ -108,5 +124,25 @@
       public List getProjects()
       {
           return projects;
  +    }
  +
  +    /**
  +     * Get the projects for this profile.
  +     *
  +     * @return The List of projects in this profile
  +     */
  +    public Project getProject(int i)
  +    {
  +        return (Project) projects.get(i);
  +    }
  +
  +    /**
  +     * Get the projects for this profile.
  +     *
  +     * @return The List of projects in this profile
  +     */
  +    public List getProjectIds()
  +    {
  +        return projectIds;
       }
   }
  
  
  


Reply via email to