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 java.io.File;
18  import java.util.Set;
19  
20  import org.codehaus.plexus.compiler.util.scan.mapping.SourceMapping;
21  
22  /**
23   * @author jdcasey
24   */
25  public interface SourceInclusionScanner {
26      void addSourceMapping(SourceMapping sourceMapping);
27  
28      /**
29       * @param sourceDir
30       * @param targetDir
31       * @return <code>Set</code> of <code>File</code> objects
32       * @throws InclusionScanException
33       */
34      Set<File> getIncludedSources(File sourceDir, File targetDir) throws InclusionScanException;
35  }