blob: 4b3b19d8af27c048236ee3ce789ba2499353b9a7 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.codehaus.mojo.archetypeng;
import org.codehaus.mojo.archetypeng.archetype.filesets.FileSet;
import java.io.File;
import java.io.IOException;
import java.util.List;
/**
* @author rafale
*/
public interface ArchetypeFilesResolver
{
String ROLE = ArchetypeFilesResolver.class.getName ();
/**
*/
List getFilesWithExtension ( List files, String extension );
/**
*/
List getFilteredFiles ( List files, String filtered );
/**
*/
List filterFiles ( FileSet fileSet, List archetypeResources );
/**
*/
List filterFiles ( String moduleOffset, FileSet fileSet, List archetypeResources );
/**
*/
List findOtherResources ( int level, List files, String languages );
/**
*/
List findOtherResources ( int level, List files, List sourcesFiles, String languages );
/**
*/
List findOtherSources ( int level, List files, String languages );
/**
*/
List findResourcesMainFiles ( List files, String languages );
/**
*/
List findResourcesTestFiles ( List files, String languages );
/**
*/
List findSiteFiles ( List files, String languages );
/**
*/
List findSourcesMainFiles ( List files, String languages );
/**
*/
List findSourcesTestFiles ( List files, String languages );
/**
*/
List getPackagedFiles ( List files, String packageName );
/**
*/
String resolvePackage ( File file, List languages )
throws IOException;
/**
*/
List getUnfilteredFiles ( List files, String filtered );
/**
*/
List getUnpackagedFiles ( List files, String packageName );
/**
*/
}