Save This Page
Home » maven-ant-tasks-2.1.0-src » org.apache » maven » artifact » ant » [javadoc | source]
    1   package org.apache.maven.artifact.ant;
    2   
    3   /*
    4    * Licensed to the Apache Software Foundation (ASF) under one
    5    * or more contributor license agreements.  See the NOTICE file
    6    * distributed with this work for additional information
    7    * regarding copyright ownership.  The ASF licenses this file
    8    * to you under the Apache License, Version 2.0 (the
    9    * "License"); you may not use this file except in compliance
   10    * with the License.  You may obtain a copy of the License at
   11    *
   12    *  http://www.apache.org/licenses/LICENSE-2.0
   13    *
   14    * Unless required by applicable law or agreed to in writing,
   15    * software distributed under the License is distributed on an
   16    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   17    * KIND, either express or implied.  See the License for the
   18    * specific language governing permissions and limitations
   19    * under the License.
   20    */
   21   
   22   import org.apache.maven.wagon.proxy.ProxyInfo;
   23   
   24   /**
   25    * Ant Wrapper for wagon proxy.
   26    *
   27    * @author <a href="mailto:brett@apache.org">Brett Porter</a>
   28    * @version $Id: Proxy.java 524632 2007-04-01 17:05:24Z jvanzyl $
   29    */
   30   public class Proxy
   31       extends ProxyInfo
   32   {
   33       public Proxy()
   34       {
   35           super();
   36       }
   37   
   38       public Proxy( org.apache.maven.settings.Proxy proxy )
   39       {
   40           setHost( proxy.getHost() );
   41           setPort( proxy.getPort() );
   42           setNonProxyHosts( proxy.getNonProxyHosts() );
   43           setUserName( proxy.getUsername() );
   44           setPassword( proxy.getPassword() );
   45           setType( proxy.getProtocol() );
   46       }
   47   }

Save This Page
Home » maven-ant-tasks-2.1.0-src » org.apache » maven » artifact » ant » [javadoc | source]