You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2002/02/24 18:45:37 UTC

cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/project Profile.java Project.java Repository.java

jvanzyl     02/02/24 09:45:37

  Modified:    src/java/org/apache/maven/project Profile.java Project.java
                        Repository.java
  Log:
  - javadoc
  
  Revision  Changes    Path
  1.4       +8 -7      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Profile.java	23 Feb 2002 13:33:32 -0000	1.3
  +++ Profile.java	24 Feb 2002 17:45:37 -0000	1.4
  @@ -1,4 +1,5 @@
   package org.apache.maven.project;
  +
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  @@ -58,9 +59,9 @@
   
   /**
    * A profile consists of a number of projects.
  - * 
  + *
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: Profile.java,v 1.3 2002/02/23 13:33:32 sbailliez Exp $
  + * @version $Id: Profile.java,v 1.4 2002/02/24 17:45:37 jvanzyl Exp $
    */
   public class Profile
       extends BaseObject
  @@ -86,8 +87,8 @@
       public void addProject(Project project)
       {
           projects.add(project);
  -    }        
  -    
  +    }
  +
       /**
        * Set the list of projects that belong to this
        * profile.
  @@ -97,8 +98,8 @@
       public void setProjects(List projects)
       {
           this.projects = projects;
  -    }        
  -    
  +    }
  +
       /**
        * Get the projects for this profile.
        *
  @@ -107,5 +108,5 @@
       public List getProjects()
       {
           return projects;
  -    }        
  +    }
   }
  
  
  
  1.5       +109 -40   jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Project.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Project.java	23 Feb 2002 20:41:21 -0000	1.4
  +++ Project.java	24 Feb 2002 17:45:37 -0000	1.5
  @@ -1,5 +1,4 @@
   package org.apache.maven.project;
  -
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  @@ -56,32 +55,31 @@
   
   import java.util.ArrayList;
   import java.util.List;
  -
   import org.apache.commons.graph.Graphable;
   
   /**
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: Project.java,v 1.4 2002/02/23 20:41:21 jvanzyl Exp $
  + * @version $Id: Project.java,v 1.5 2002/02/24 17:45:37 jvanzyl Exp $
    */
   public class Project
  -    extends BaseObject
  -    implements Graphable
  +     extends BaseObject
  +     implements Graphable
   {
       /**
        * Project dependencies
        */
       private List dependencies;
  -    
  +
       /**
        * Repository where this project is stored.
        */
       private Repository repository;
  -    
  +
       /**
        * Build information
        */
       private Build build;
  -    
  +
       /**
        * Project Url
        */
  @@ -112,10 +110,21 @@
        */
       private String currentVersion;
   
  +    /**
  +     * Organization that hosts the project.
  +     */
       private String organization;
  +
  +    /**
  +     * Year the project was started.
  +     */
       private String inceptionYear;
  +
  +    /**
  +     * The base package for this project i.e. org.apache.turbine
  +     */
       private String projectPackage;
  -    
  +
       /**
        * Default constructor.
        */
  @@ -124,8 +133,8 @@
           dependencies = new ArrayList();
           mailingLists = new ArrayList();
           developers = new ArrayList();
  -    }        
  -    
  +    }
  +
       /**
        * Add a dependency for this project.
        *
  @@ -134,8 +143,8 @@
       public void addDependency(Dependency dependency)
       {
           dependencies.add(dependency);
  -    }        
  -    
  +    }
  +
       /**
        * Return the dependencies for this project.
        *
  @@ -144,17 +153,23 @@
       public List getDependencies()
       {
           return dependencies;
  -    }        
  +    }
   
  +    /**
  +     * Sets the build attribute of the Project object
  +     */
       public void setBuild(Build build)
       {
           this.build = build;
       }
  -    
  +
  +    /**
  +     * Gets the build attribute of the Project object
  +     */
       public Build getBuild()
       {
           return build;
  -    }        
  +    }
   
       /**
        * Add a mailing list for this project.
  @@ -164,8 +179,8 @@
       public void addMailingList(MailingList mailingList)
       {
           mailingLists.add(mailingList);
  -    }        
  -    
  +    }
  +
       /**
        * Return the mailing lists for this project.
        *
  @@ -174,7 +189,7 @@
       public List getMailingLists()
       {
           return mailingLists;
  -    }        
  +    }
   
       /**
        * Add a developer to this project.
  @@ -184,8 +199,8 @@
       public void addDeveloper(Developer developer)
       {
           developers.add(developer);
  -    }        
  -    
  +    }
  +
       /**
        * Return the developers for this project.
        *
  @@ -194,7 +209,7 @@
       public List getDevelopers()
       {
           return developers;
  -    }        
  +    }
   
       /**
        * Set the repository for this project.
  @@ -204,7 +219,7 @@
       public void setRepository(Repository repository)
       {
           this.repository = repository;
  -    }        
  +    }
   
       /**
        * Return the repository used by this project.
  @@ -214,100 +229,154 @@
       public Repository getRepository()
       {
           return repository;
  -    }        
  +    }
   
  +    /**
  +     * Sets the url attribute of the Project object
  +     */
       public void setUrl(String url)
       {
           this.url = url;
       }
  -    
  +
  +    /**
  +     * Gets the url attribute of the Project object
  +     */
       public String getUrl()
       {
           return url;
  -    }        
  +    }
   
  +    /**
  +     * Sets the cvsWebUrl attribute of the Project object
  +     */
       public void setCvsWebUrl(String cvsWebUrl)
       {
           this.cvsWebUrl = cvsWebUrl;
       }
  -    
  +
  +    /**
  +     * Gets the cvsWebUrl attribute of the Project object
  +     */
       public String getCvsWebUrl()
       {
           return cvsWebUrl;
  -    }        
  +    }
   
  +    /**
  +     * Sets the description attribute of the Project object
  +     */
       public void setDescription(String description)
       {
           this.description = description;
       }
  -    
  +
  +    /**
  +     * Gets the description attribute of the Project object
  +     */
       public String getDescription()
       {
           return description;
  -    }        
  +    }
   
  +    /**
  +     * Description of the Method
  +     */
       public boolean hasRepository()
       {
           return (repository != null);
  -    }        
  +    }
   
  +    /**
  +     * Sets the currentVersion attribute of the Project object
  +     */
       public void setCurrentVersion(String currentVersion)
       {
           this.currentVersion = currentVersion;
       }
   
  +    /**
  +     * Gets the currentVersion attribute of the Project object
  +     */
       public String getCurrentVersion()
       {
           return currentVersion;
  -    }            
  +    }
   
  +    /**
  +     * Sets the organization attribute of the Project object
  +     */
       public void setOrganization(String organization)
       {
           this.organization = organization;
       }
   
  +    /**
  +     * Gets the organization attribute of the Project object
  +     */
       public String getOrganization()
       {
           return organization;
  -    }            
  +    }
   
  +    /**
  +     * Sets the package attribute of the Project object
  +     */
       public void setPackage(String projectPackage)
       {
           this.projectPackage = projectPackage;
       }
   
  +    /**
  +     * Gets the package attribute of the Project object
  +     */
       public String getPackage()
       {
           return projectPackage;
  -    }            
  +    }
   
  +    /**
  +     * Sets the inceptionYear attribute of the Project object
  +     */
       public void setInceptionYear(String inceptionYear)
       {
           this.inceptionYear = inceptionYear;
       }
   
  +    /**
  +     * Gets the inceptionYear attribute of the Project object
  +     */
       public String getInceptionYear()
       {
           return inceptionYear;
  -    }            
  -    
  +    }
  +
       // JXR compat
  -    
  +
       // This is for capat with the JXR code. Should probably add
       // this though makes more sense for where the code is and it
       // will not always be based on the project name.
  +    /**
  +     * Gets the module attribute of the Project object
  +     */
       public String getModule()
       {
           return getName();
  -    }        
  -    
  +    }
  +
       // Again probably better named.
  +    /**
  +     * Gets the homePage attribute of the Project object
  +     */
       public String getHomePage()
       {
           return getUrl();
  -    }        
  +    }
   
       // Another good addition and this should be flexible.
  +    /**
  +     * Gets the license attribute of the Project object
  +     */
       public String getLicense()
       {
           return "ASL";
  
  
  
  1.4       +74 -13    jakarta-turbine-maven/src/java/org/apache/maven/project/Repository.java
  
  Index: Repository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/project/Repository.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Repository.java	23 Feb 2002 20:41:21 -0000	1.3
  +++ Repository.java	24 Feb 2002 17:45:37 -0000	1.4
  @@ -1,4 +1,5 @@
   package org.apache.maven.project;
  +
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  @@ -54,12 +55,16 @@
    */
   
   /**
  + * NOTE: This is very CVS specific, but I would like to try additional SCM
  + * package like subversion ASAP.
  + *
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: Repository.java,v 1.3 2002/02/23 20:41:21 jvanzyl Exp $
  + * @version $Id: Repository.java,v 1.4 2002/02/24 17:45:37 jvanzyl Exp $
    */
   public class Repository
  -    extends BaseObject
  +     extends BaseObject
   {
  +
       private String method;
       private String user;
       private String password;
  @@ -69,101 +74,157 @@
       private String title;
       private String homePage;
       private String cvsWeb;
  -    
  +
  +    /**
  +     * Sets the method attribute of the Repository object
  +     */
       public void setMethod(String method)
       {
           this.method = method;
       }
  -    
  +
  +    /**
  +     * Gets the method attribute of the Repository object
  +     */
       public String getMethod()
       {
           return method;
       }
   
  +    /**
  +     * Sets the user attribute of the Repository object
  +     */
       public void setUser(String user)
       {
           this.user = user;
       }
  -    
  +
  +    /**
  +     * Gets the user attribute of the Repository object
  +     */
       public String getUser()
       {
           return user;
       }
   
  +    /**
  +     * Sets the password attribute of the Repository object
  +     */
       public void setPassword(String password)
       {
           this.password = password;
       }
  -    
  +
  +    /**
  +     * Gets the password attribute of the Repository object
  +     */
       public String getPassword()
       {
           return password;
       }
   
  +    /**
  +     * Sets the hostname attribute of the Repository object
  +     */
       public void setHostname(String hostname)
       {
           this.hostname = hostname;
       }
  -    
  +
  +    /**
  +     * Gets the hostname attribute of the Repository object
  +     */
       public String getHostname()
       {
           return hostname;
       }
   
  +    /**
  +     * Sets the path attribute of the Repository object
  +     */
       public void setPath(String path)
       {
           this.path = path;
       }
  -    
  +
  +    /**
  +     * Gets the path attribute of the Repository object
  +     */
       public String getPath()
       {
           return path;
       }
   
  +    /**
  +     * Sets the type attribute of the Repository object
  +     */
       public void setType(String type)
       {
           this.type = type;
       }
  -    
  +
  +    /**
  +     * Gets the type attribute of the Repository object
  +     */
       public String getType()
       {
           return type;
       }
   
  +    /**
  +     * Sets the title attribute of the Repository object
  +     */
       public void setTitle(String type)
       {
           this.title = title;
       }
  -    
  +
  +    /**
  +     * Gets the title attribute of the Repository object
  +     */
       public String getTitle()
       {
           return title;
       }
   
  +    /**
  +     * Sets the homePage attribute of the Repository object
  +     */
       public void setHomePage(String homePage)
       {
           this.homePage = homePage;
       }
  -    
  +
  +    /**
  +     * Gets the homePage attribute of the Repository object
  +     */
       public String getHomePage()
       {
           return homePage;
       }
   
  +    /**
  +     * Sets the cvsWeb attribute of the Repository object
  +     */
       public void setCvsWeb(String cvsWeb)
       {
           this.cvsWeb = cvsWeb;
       }
  -    
  +
  +    /**
  +     * Gets the cvsWeb attribute of the Repository object
  +     */
       public String getCvsWeb()
       {
           return cvsWeb;
       }
   
       // Compat with JXR
  +    /**
  +     * Gets the root attribute of the Repository object
  +     */
       public String getRoot()
       {
           return ":" + method + ":" + user + "@" + hostname + ":" + path;
       }
  -
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>