001    /**
002     * Copyright 2008-2012 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.codehaus.mojo.wagon;
017    
018    /*
019     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
020     * agreements. See the NOTICE file distributed with this work for additional information regarding
021     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
022     * "License"); you may not use this file except in compliance with the License. You may obtain a
023     * copy of the License at
024     * 
025     * http://www.apache.org/licenses/LICENSE-2.0
026     * 
027     * Unless required by applicable law or agreed to in writing, software distributed under the License
028     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
029     * or implied. See the License for the specific language governing permissions and limitations under
030     * the License.
031     */
032    
033    
034    /**
035     * Provides base functionality for dealing with I/O using single wagon.
036     * 
037     */
038    public abstract class AbstractDoubleWagonMojo
039        extends AbstractWagonMojo
040    {
041    
042        /**
043         * The URL to the source repository.
044         * 
045         * @parameter expression="${wagon.source}"
046         * @required
047         */
048        protected String source;
049    
050        /**
051         * The URL to the target repository.
052         * 
053         * @parameter expression="${wagon.target}"
054         * @required
055         */
056        protected String target;
057    
058        /**
059         * settings.xml's server id of the source repository. 
060         * This is used when wagon needs extra authentication information.
061         * 
062         * @parameter expression="${wagon.sourceId}" default-value="source"
063         */
064        protected String sourceId;
065    
066        /**
067         * settings.xml's server id of the target repository. 
068         * This is used when wagon needs extra authentication information.
069         * 
070         * @parameter expression="${wagon.targetId}" default-value="target"
071         */
072        protected String targetId;
073        
074        /**
075         * Optimize the  upload by locally compressed all files in one bundle, 
076         * upload the bundle, and finally remote uncompress the bundle.
077         * This only works with SCP's URL
078         * @parameter expression="${wagon.optimize}" default-value="false";
079         */
080        
081        protected boolean optimize = false;
082        
083    
084    }