Package org.apache.maven.wagon.providers.file

Examples of org.apache.maven.wagon.providers.file.FileWagon


    }

    public static class StaticWagonProvider implements WagonProvider {
        public Wagon lookup(String roleHint) throws Exception {
            if ("file".equals(roleHint)) {
                return new FileWagon();
            }
            if ("http".equals(roleHint)) {
                return new LightweightHttpWagon();
            }
            if ("https".equals(roleHint)) {
View Full Code Here


    public static class ManualWagonProvider implements WagonProvider {

        public Wagon lookup(String roleHint)
                throws Exception {
            if ("file".equals(roleHint)) {
                return new FileWagon();
            } else if ("http".equals(roleHint)) {
                LightweightHttpWagon wagon = new LightweightHttpWagon();
                wagon.setAuthenticator(new LightweightHttpWagonAuthenticator());
                return wagon;
            } else if ("https".equals(roleHint)) {
View Full Code Here

        throws Exception {
        if ( "http".equals( roleHint ) || "https".equals( roleHint ) ) {
            return new HttpWagon();
        }
        if ( "file".equals( roleHint ) ) {
            return new FileWagon();
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.wagon.providers.file.FileWagon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.