View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a 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,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.archetype.common;
20  
21  import java.io.File;
22  import java.io.IOException;
23  import java.util.List;
24  
25  import org.apache.maven.archetype.metadata.FileSet;
26  
27  /** @author rafale */
28  public interface ArchetypeFilesResolver {
29  
30      List<String> getFilesWithExtension(List<String> files, String extension);
31  
32      List<String> getFilteredFiles(List<String> files, String filtered);
33  
34      List<String> filterFiles(String moduleOffset, FileSet fileSet, List<String> archetypeResources);
35  
36      List<String> findOtherResources(int level, List<String> files, String languages);
37  
38      List<String> findOtherResources(int level, List<String> files, List<String> sourcesFiles, String languages);
39  
40      List<String> findOtherSources(int level, List<String> files, String languages);
41  
42      List<String> findResourcesMainFiles(List<String> files, String languages);
43  
44      List<String> findResourcesTestFiles(List<String> files, String languages);
45  
46      List<String> findSiteFiles(List<String> files, String languages);
47  
48      List<String> findSourcesMainFiles(List<String> files, String languages);
49  
50      List<String> findSourcesTestFiles(List<String> files, String languages);
51  
52      List<String> getPackagedFiles(List<String> files, String packageName);
53  
54      String resolvePackage(File file, List<String> languages) throws IOException;
55  
56      List<String> getUnpackagedFiles(List<String> files, String packageName);
57  }