1 package org.codehaus.mojo.wagon;
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.plugins.annotations.Parameter;
23
24 /**
25 * Provides base functionality for dealing with I/O using single wagon.
26 */
27 public abstract class AbstractDoubleWagonMojo
28 extends AbstractWagonMojo
29 {
30
31 /**
32 * The URL to the source repository.
33 */
34 @Parameter( property = "wagon.source", required = true)
35 protected String source;
36
37 /**
38 * The URL to the target repository.
39 */
40 @Parameter( property = "wagon.target", required = true)
41 protected String target;
42
43 /**
44 * settings.xml's server id of the source repository. This is used when wagon needs extra authentication
45 * information.
46 */
47 @Parameter( property = "wagon.sourceId", defaultValue = "source")
48 protected String sourceId;
49
50 /**
51 * settings.xml's server id of the target repository. This is used when wagon needs extra authentication
52 * information.
53 */
54 @Parameter( property = "wagon.targetId", defaultValue = "target")
55 protected String targetId;
56
57 /**
58 * Optimize the upload by locally compressed all files in one bundle, upload the bundle, and finally remote
59 * uncompress the bundle. This only works with SCP's URL
60 */
61 @Parameter( property = "wagon.optimize", defaultValue = "false")
62 protected boolean optimize = false;
63
64 }