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