You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/02/09 11:35:45 UTC

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

bwalding    2003/02/09 02:35:45

  Modified:    src/java/org/apache/maven/project Project.java
  Log:
  New Licensing objects for the POM
  
  Revision  Changes    Path
  1.75      +35 -1     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.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- Project.java	24 Jan 2003 13:56:05 -0000	1.74
  +++ Project.java	9 Feb 2003 10:35:45 -0000	1.75
  @@ -130,6 +130,9 @@
   
       /** Project's (non-committing) contributors. */
       private List contributors;
  +    
  +    /** Project's licenses. Typically only one. */
  +    private List licenses;
   
       /** Current version */
       private String currentVersion;
  @@ -236,6 +239,7 @@
           mailingLists = new ArrayList();
           developers = new ArrayList();
           contributors = new ArrayList();
  +        licenses = new ArrayList();
           versions = new ArrayList();
           dependencyPaths = new HashMap();
           dependencyMap = new HashMap();
  @@ -839,6 +843,36 @@
       public List getContributors()
       {
           return contributors;
  +    }
  +    
  +    /**
  +     * Set licenses for this project.
  +     *
  +     * @param licenses Licenses for this project.
  +     */
  +    public void setLicenses( List licenses )
  +    {
  +        this.licenses = licenses;
  +    }
  +
  +    /**
  +     * Add a license to this project.
  +     *
  +     * @param license License for this project.
  +     */
  +    public void addLicense( License license )
  +    {
  +        licenses.add( license );
  +    }
  +
  +    /**
  +     * Return the contributors for this project.
  +     *
  +     * @return List of contributors.
  +     */
  +    public List getLicenses()
  +    {
  +        return licenses;
       }
   
       /**