1 package org.codehaus.mojo.wagon.shared; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license 5 * agreements. See the NOTICE file distributed with this work for additional information regarding 6 * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance with the License. You may obtain a 8 * copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software distributed under the License 13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 14 * or implied. See the License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18 import java.io.IOException; 19 20 import org.apache.maven.plugin.logging.Log; 21 import org.apache.maven.shared.model.fileset.FileSet; 22 import org.apache.maven.wagon.Wagon; 23 import org.apache.maven.wagon.WagonException; 24 25 /** 26 * 27 */ 28 public interface WagonUpload 29 { 30 String ROLE = WagonUpload.class.getName(); 31 32 /** 33 * Upload a set of files via FileSet interface to a remote repository via Wagon 34 * @param wagon - a Wagon instance 35 * @param fileset 36 * @param logger 37 * @param optimize locally compressed and uncompress at the remote site if scp is use 38 * @throws WagonException 39 */ 40 public void upload( Wagon wagon, FileSet fileset, boolean optimize, Log logger ) 41 throws WagonException, IOException; 42 }