001    package org.codehaus.mojo.wagon;
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     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
018     * agreements. See the NOTICE file distributed with this work for additional information regarding
019     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
020     * "License"); you may not use this file except in compliance with the License. You may obtain a
021     * copy of the License at
022     * 
023     * http://www.apache.org/licenses/LICENSE-2.0
024     * 
025     * Unless required by applicable law or agreed to in writing, software distributed under the License
026     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
027     * or implied. See the License for the specific language governing permissions and limitations under
028     * the License.
029     */
030    import org.codehaus.mojo.wagon.shared.WagonDownload;
031    import org.codehaus.mojo.wagon.shared.WagonFileSet;
032    
033    /**
034     * Contains common configuration to scan for Wagon's files
035     */
036    public abstract class AbstractWagonListMojo
037        extends AbstractSingleWagonMojo
038    
039    {
040        /**
041         * Directory path relative to Wagon's URL
042         * @parameter expression="${wagon.fromDir}" default-value=""
043         */
044        protected String fromDir = "";
045    
046        /**
047         * Comma separated list of Ant's includes to scan for remote files     
048         * @parameter expression="${wagon.includes}" default-value="*";
049         */
050        protected String includes;
051    
052        /**
053         * Comma separated list of Ant's excludes to scan for remote files     
054         * @parameter expression="${wagon.excludes}"
055         * 
056         */
057        protected String excludes;
058    
059        /**
060         * Whether to consider remote path case sensitivity during scan
061         * @parameter expression="${wagon.caseSensitive}" default-value="true"
062         */
063        protected boolean caseSensitive = true;
064    
065        /**
066         * @component
067         */
068        protected WagonDownload wagonDownload;
069        
070        
071        protected WagonFileSet getWagonFileSet()
072        {
073            return this.getWagonFileSet( fromDir, includes, excludes, caseSensitive, "" );
074        }
075    
076    }