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-api/src/main/java/org/apache/maven/wagon/managers DefaultWagonManager.java
Date Wed, 10 Dec 2003 18:45:00 GMT
michal      2003/12/10 10:45:00

  Modified:    wagon-api project.xml
               wagon-api/src/main/java/org/apache/maven/wagon
                        PathUtils.java ProxyInfo.java
               wagon-api/src/main/java/org/apache/maven/wagon/managers
                        DefaultWagonManager.java
  Log:
  New Maven Logo + minor changes in the code
  
  Revision  Changes    Path
  1.10      +5 -0      maven-wagon/wagon-api/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/project.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- project.xml	6 Dec 2003 14:14:12 -0000	1.9
  +++ project.xml	10 Dec 2003 18:45:00 -0000	1.10
  @@ -7,6 +7,11 @@
       <artifactId>wagon-api</artifactId>
       <type>jar</type>
       <name>Wagon API</name>
  +    <organization>
  +        <name>Apache Software Foundation</name>
  +        <url>http://www.apache.org/</url>
  +        <logo>http://maven.apache.org/images/apache-maven-project.png</logo>
  +    </organization>
       <currentVersion>1.0-beta-1</currentVersion>
       <description></description>
       <shortDescription>Tools to manage artifacts and deployment</shortDescription>
  
  
  
  1.9       +9 -5      maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/PathUtils.java
  
  Index: PathUtils.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/PathUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PathUtils.java	2 Dec 2003 18:01:30 -0000	1.8
  +++ PathUtils.java	10 Dec 2003 18:45:00 -0000	1.9
  @@ -48,6 +48,7 @@
   
   /**
    * Various path (URL) manipulation routines
  + * 
    * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
    * @version $Id$
    */
  @@ -89,7 +90,7 @@
               final String separator,
               final int max )
       {
  -        StringTokenizer tok;
  +        final StringTokenizer tok;
           if ( separator == null )
           {
               // Null separator means we're using StringTokenizer's default
  @@ -139,6 +140,7 @@
        * <code>http://www.codehause.org</code> this method will return <code>www.apache.org</code>
        * 
        * @param url the url
  +     * 
        * @return the host name
        */
       public static String host( final String url )
  @@ -169,14 +171,14 @@
       }
   
       /**
  -     *
  -    /**
  +     * /**
        * Return the protocol name.
        * <br/>
        * E.g: for input
        * <code>http://www.codehause.org</code> this method will return <code>http</code>
  -    *
  +     * 
        * @param url the url
  +     * 
        * @return the host name
        */
       public static String protocol( final String url )
  @@ -192,6 +194,7 @@
   
       /**
        * @param url 
  +     * 
        * @return 
        */
       public static int port( final String url )
  @@ -229,6 +232,7 @@
   
       /**
        * @param url 
  +     * 
        * @return 
        */
       public static String basedir( final String url )
  
  
  
  1.5       +9 -12     maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/ProxyInfo.java
  
  Index: ProxyInfo.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/ProxyInfo.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ProxyInfo.java	2 Dec 2003 18:01:30 -0000	1.4
  +++ ProxyInfo.java	10 Dec 2003 18:45:00 -0000	1.5
  @@ -50,12 +50,11 @@
   /**
    * Conatins set of properties used by <code>Wagon</code> objects
    * while connection to the repository must go thru a proxy server.
  - *
  - * @todo Propose standard types of proxy servers (e.g. <i>SOCKSv4</i>),
  - *       which can be shared between wagon api and providers
  - *
  + * 
    * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
    * @version $Id$
  + * @todo Propose standard types of proxy servers (e.g. <i>SOCKSv4</i>),
  + * which can be shared between wagon api and providers
    */
   public class ProxyInfo implements Serializable
   {
  @@ -73,11 +72,10 @@
       private int port = WagonConstants.UNKNOWN_PORT;
   
   
  -    /** Type of the proxy*/
  +    /** Type of the proxy */
       private String type = null;
   
   
  -
       /**
        * Return proxy server host name.
        * 
  @@ -161,19 +159,18 @@
   
       /**
        * Get the type of the proxy server.
  -     *
  -     *
  -     * @return  the type of the proxy server
  +     * 
  +     * @return the type of the proxy server
        */
       public String getType()
       {
           return type;
       }
  +
       /**
  -     *
        * @param type the type of the proxy server like <i>SOCKSv4</i>
        */
  -    public void setType( String type )
  +    public void setType( final String type )
       {
           this.type = type;
       }
  
  
  
  1.4       +3 -3      maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/managers/DefaultWagonManager.java
  
  Index: DefaultWagonManager.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/managers/DefaultWagonManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultWagonManager.java	7 Dec 2003 20:07:45 -0000	1.3
  +++ DefaultWagonManager.java	10 Dec 2003 18:45:00 -0000	1.4
  @@ -65,7 +65,7 @@
       /**
        * @todo review this
        */
  -    public synchronized void addWagonFactory( WagonFactory wagonFactory )
  +    public synchronized void addWagonFactory( final WagonFactory wagonFactory )
       {
           if ( wagonFactories == null )
           {
  @@ -85,7 +85,7 @@
           Wagon retValue = null;
           for ( Iterator iterator = wagonFactories.iterator(); iterator.hasNext(); )
           {
  -            WagonFactory wagonFactory = ( WagonFactory ) iterator.next();
  +            final WagonFactory wagonFactory = ( WagonFactory ) iterator.next();
               if ( supportsProtocol( wagonFactory, protocol ) )
               {
                   retValue = wagonFactory.createWagon( null );
  
  
  

---------------------------------------------------------------------
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