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