jvanzyl     02/04/17 12:22:33

  Modified:    src/java/org/apache/maven/project Project.java
  Log:
  Fleshing out the project object. It admittedly has some cvs specifics
  but these can probably be easily flipped out for subversion of perforce etc.
  
  Revision  Changes    Path
  1.11      +28 -17    
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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Project.java      31 Mar 2002 03:45:03 -0000      1.10
  +++ Project.java      17 Apr 2002 19:22:33 -0000      1.11
  @@ -59,7 +59,7 @@
   
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
  - * @version $Id: Project.java,v 1.10 2002/03/31 03:45:03 jvanzyl Exp $
  + * @version $Id: Project.java,v 1.11 2002/04/17 19:22:33 jvanzyl Exp $
    */
   public class Project
        extends BaseObject
  @@ -152,6 +152,16 @@
       private String version;
   
       /**
  +     * Module (right now this is CVS).
  +     */
  +    private String module;
  +
  +    /**
  +     * CVS password.
  +     */
  +    private String cvsPassword;
  +
  +    /**
        * Default constructor.
        */
       public Project()
  @@ -459,34 +469,35 @@
           return version;
       }
   
  -    // JXR compat
  +    /**
  +     * Set cvs password.
  +     */
  +    public void setCvsPassword(String cvsPassword)
  +    {
  +        this.cvsPassword = cvsPassword;
  +    }        
   
  -    // 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
  +     * Get cvs password.
        */
  -    public String getModule()
  +    public String getCvsPassword()
       {
  -        return getName();
  +        return cvsPassword;
       }
   
  -    // Again probably better named.
       /**
  -     * Gets the homePage attribute of the Project object
  +     * Set cvs module.
        */
  -    public String getHomePage()
  +    public void setModule(String module)
       {
  -        return getUrl();
  -    }
  +        this.module = module;
  +    }        
   
  -    // Another good addition and this should be flexible.
       /**
  -     * Gets the license attribute of the Project object
  +     * Gets the module attribute of the Project object
        */
  -    public String getLicense()
  +    public String getModule()
       {
  -        return "ASL";
  +        return module;
       }
   }
  
  
  


Reply via email to