View Javadoc
1   package org.codehaus.plexus.compiler.util.scan;
2   
3   /*
4    * Copyright 2001-2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7    * in compliance with the License. You may obtain a copy of the License at
8    *
9    * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software distributed under the License
12   * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13   * or implied. See the License for the specific language governing permissions and limitations under
14   * the License.
15   */
16  
17  import org.codehaus.plexus.compiler.util.scan.mapping.SourceMapping;
18  
19  import java.io.File;
20  import java.util.Set;
21  
22  /**
23   * @author jdcasey
24   */
25  public interface SourceInclusionScanner
26  {
27      void addSourceMapping( SourceMapping sourceMapping );
28  
29      /**
30       * @param sourceDir
31       * @param targetDir
32       * @return <code>Set</code> of <code>File</code> objects
33       * @throws InclusionScanException
34       */
35      Set<File> getIncludedSources( File sourceDir, File targetDir )
36          throws InclusionScanException;
37  }