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   * Licensed to the Apache Software Foundation (ASF) under one or more contributor license
18   * agreements. See the NOTICE file distributed with this work for additional information regarding
19   * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
20   * "License"); you may not use this file except in compliance with the License. You may obtain a
21   * copy of the License at
22   * 
23   * http://www.apache.org/licenses/LICENSE-2.0
24   * 
25   * Unless required by applicable law or agreed to in writing, software distributed under the License
26   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
27   * or implied. See the License for the specific language governing permissions and limitations under
28   * the License.
29   */
30  import org.codehaus.mojo.wagon.shared.WagonDownload;
31  import org.codehaus.mojo.wagon.shared.WagonFileSet;
32  
33  /**
34   * Contains common configuration to scan for Wagon's files
35   */
36  public abstract class AbstractWagonListMojo
37      extends AbstractSingleWagonMojo
38  
39  {
40      /**
41       * Directory path relative to Wagon's URL
42       * @parameter expression="${wagon.fromDir}" default-value=""
43       */
44      protected String fromDir = "";
45  
46      /**
47       * Comma separated list of Ant's includes to scan for remote files     
48       * @parameter expression="${wagon.includes}" default-value="*";
49       */
50      protected String includes;
51  
52      /**
53       * Comma separated list of Ant's excludes to scan for remote files     
54       * @parameter expression="${wagon.excludes}"
55       * 
56       */
57      protected String excludes;
58  
59      /**
60       * Whether to consider remote path case sensitivity during scan
61       * @parameter expression="${wagon.caseSensitive}" default-value="true"
62       */
63      protected boolean caseSensitive = true;
64  
65      /**
66       * @component
67       */
68      protected WagonDownload wagonDownload;
69      
70      
71      protected WagonFileSet getWagonFileSet()
72      {
73          return this.getWagonFileSet( fromDir, includes, excludes, caseSensitive, "" );
74      }
75  
76  }