001 package org.codehaus.mojo.wagon.shared;
002
003 /*
004 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
005 * agreements. See the NOTICE file distributed with this work for additional information regarding
006 * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance with the License. You may obtain a
008 * copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software distributed under the License
013 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
014 * or implied. See the License for the specific language governing permissions and limitations under
015 * the License.
016 */
017
018 import java.io.IOException;
019
020 import org.apache.maven.plugin.logging.Log;
021 import org.apache.maven.shared.model.fileset.FileSet;
022 import org.apache.maven.wagon.Wagon;
023 import org.apache.maven.wagon.WagonException;
024
025 /**
026 *
027 */
028 public interface WagonUpload
029 {
030 String ROLE = WagonUpload.class.getName();
031
032 /**
033 * Upload a set of files via FileSet interface to a remote repository via Wagon
034 * @param wagon - a Wagon instance
035 * @param fileset
036 * @param logger
037 * @param optimize locally compressed and uncompress at the remote site if scp is use
038 * @throws WagonException
039 */
040 public void upload( Wagon wagon, FileSet fileset, boolean optimize, Log logger )
041 throws WagonException, IOException;
042 }