]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.maven/src/main/java/org/argeo/slc/maven/ManualWagonProvider.java
84fb6563e5257a843af6db496dcfbca28caf98a8
1 package org
.argeo
.slc
.maven
;
3 /*******************************************************************************
4 * Copyright (c) 2010 Sonatype, Inc.
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *******************************************************************************/
11 import org
.apache
.maven
.wagon
.Wagon
;
12 import org
.apache
.maven
.wagon
.providers
.file
.FileWagon
;
13 import org
.apache
.maven
.wagon
.providers
.http
.LightweightHttpWagon
;
14 import org
.sonatype
.aether
.connector
.wagon
.WagonProvider
;
16 public class ManualWagonProvider
17 implements WagonProvider
20 public Wagon
lookup( String roleHint
)
23 if ( "file".equals( roleHint
) )
25 return new FileWagon();
27 else if ( "http".equals( roleHint
) )
29 return new LightweightHttpWagon();
34 public void release( Wagon wagon
)