View Javadoc

1   /**
2    * Copyright 2008-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.codehaus.mojo.wagon;
17  
18  /*
19   * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
20   * agreements. See the NOTICE file distributed with this work for additional information regarding
21   * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
22   * "License"); you may not use this file except in compliance with the License. You may obtain a
23   * copy of the License at
24   * 
25   * http://www.apache.org/licenses/LICENSE-2.0
26   * 
27   * Unless required by applicable law or agreed to in writing, software distributed under the License
28   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
29   * or implied. See the License for the specific language governing permissions and limitations under
30   * the License.
31   */
32  
33  
34  /**
35   * Provides base functionality for dealing with I/O using single wagon.
36   * 
37   */
38  public abstract class AbstractDoubleWagonMojo
39      extends AbstractWagonMojo
40  {
41  
42      /**
43       * The URL to the source repository.
44       * 
45       * @parameter expression="${wagon.source}"
46       * @required
47       */
48      protected String source;
49  
50      /**
51       * The URL to the target repository.
52       * 
53       * @parameter expression="${wagon.target}"
54       * @required
55       */
56      protected String target;
57  
58      /**
59       * settings.xml's server id of the source repository. 
60       * This is used when wagon needs extra authentication information.
61       * 
62       * @parameter expression="${wagon.sourceId}" default-value="source"
63       */
64      protected String sourceId;
65  
66      /**
67       * settings.xml's server id of the target repository. 
68       * This is used when wagon needs extra authentication information.
69       * 
70       * @parameter expression="${wagon.targetId}" default-value="target"
71       */
72      protected String targetId;
73      
74      /**
75       * Optimize the  upload by locally compressed all files in one bundle, 
76       * upload the bundle, and finally remote uncompress the bundle.
77       * This only works with SCP's URL
78       * @parameter expression="${wagon.optimize}" default-value="false";
79       */
80      
81      protected boolean optimize = false;
82      
83  
84  }