Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2013 Keegan Witt
  *
  * Licensed 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.gmavenplus.mojo;
import java.util.*;


This mojo provides access to the Groovy sources (including stubs).

Author(s):
Keegan Witt
public abstract class AbstractGroovyStubSourcesMojo extends AbstractGroovySourcesMojo {
    
The location for the compiled classes.

Parameter:
default-value="${project.build.directory}/generated-sources/groovy-stubs/main"
    protected File stubsOutputDirectory;

    
The location for the compiled test classes.

Parameter:
default-value="${project.build.directory}/generated-sources/groovy-stubs/test"
    protected File testStubsOutputDirectory;

    
Gets the set of files of the main stubs.

Returns:
The set of files of the main stubs
    protected Set<FilegetStubs() {
        Set<Filefiles = new HashSet<File>();
        FileSetManager fileSetManager = new FileSetManager(getLog());
        FileSet fileSet = new FileSet();
        fileSet.setIncludes(Arrays.asList());
        for (String file : fileSetManager.getIncludedFiles(fileSet)) {
            files.add(new File(file));
        }
        return files;
    }

    
Gets the set of files of the test stubs.

Returns:
The set of files of the test stubs
    protected Set<FilegetTestStubs() {
        Set<Filefiles = new HashSet<File>();
        FileSetManager fileSetManager = new FileSetManager(getLog());
        FileSet fileSet = new FileSet();
        fileSet.setIncludes(Arrays.asList());
        for (String file : fileSetManager.getIncludedFiles(fileSet)) {
            files.add(new File(file));
        }
        return files;
    }
New to GrepCode? Check out our FAQ X