maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject cvs commit: maven-wagon/wagon-provider-api/src/main/java/org/apache/maven/wagon/repository Repository.java
Date Sat, 19 Feb 2005 14:15:08 GMT
michal      2005/02/19 06:15:08

  Modified:    wagon-provider-api/src/main/java/org/apache/maven/wagon/repository
                        Repository.java
  Log:
  added "annotation" for provoding from "outside" wagon specific settings
  
  Revision  Changes    Path
  1.15      +24 -1     maven-wagon/wagon-provider-api/src/main/java/org/apache/maven/wagon/repository/Repository.java
  
  Index: Repository.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-provider-api/src/main/java/org/apache/maven/wagon/repository/Repository.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Repository.java	18 Feb 2005 01:18:50 -0000	1.14
  +++ Repository.java	19 Feb 2005 14:15:08 -0000	1.15
  @@ -22,6 +22,8 @@
   import org.apache.maven.wagon.authentication.AuthenticationInfo;
   
   import java.io.Serializable;
  +import java.util.Map;
  +import java.util.HashMap;
   
   
   /**
  @@ -53,6 +55,12 @@
   
       private AuthenticationInfo authenticationInfo;
   
  +    /**
  +     * Properties influencing wagon behaviour
  +     * which are very specific to particular wagon.
  +     */
  +    private Map annotations = new HashMap();
  +
   
       public Repository()
       {
  @@ -227,4 +235,19 @@
       {
           this.permissions = permissions;
       }
  +
  +    public Map getAnnotations()
  +    {
  +        return annotations;
  +    }
  +
  +    public void setAnnotations( Map annotations )
  +    {
  +        this.annotations = annotations;
  +    }
  +
  +    public void addAnnotation( String key, String value )
  +    {
  +        annotations.put( key, value ):
  +    }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org


Mime
View raw message