Java 类org.springframework.boot.cli.command.options.OptionSetGroovyCompilerConfiguration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:GrabCommand.java   
@Override
protected ExitStatus run(OptionSet options) throws Exception {
    SourceOptions sourceOptions = new SourceOptions(options);

    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();

    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);

    if (System.getProperty("grape.root") == null) {
        System.setProperty("grape.root", ".");
    }

    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.compile(sourceOptions.getSourcesArray());
    return ExitStatus.OK;
}
项目:spring-boot-concourse    文件:GrabCommand.java   
@Override
protected ExitStatus run(OptionSet options) throws Exception {
    SourceOptions sourceOptions = new SourceOptions(options);

    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();

    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);

    if (System.getProperty("grape.root") == null) {
        System.setProperty("grape.root", ".");
    }

    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.compile(sourceOptions.getSourcesArray());
    return ExitStatus.OK;
}
项目:contestparser    文件:GrabCommand.java   
@Override
protected ExitStatus run(OptionSet options) throws Exception {
    SourceOptions sourceOptions = new SourceOptions(options);

    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();

    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);

    if (System.getProperty("grape.root") == null) {
        System.setProperty("grape.root", ".");
    }

    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.compile(sourceOptions.getSourcesArray());
    return ExitStatus.OK;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ArchiveCommand.java   
private GroovyCompiler createCompiler(OptionSet options) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);
    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.getAstTransformations().add(0, new GrabAnnotationTransform());
    return groovyCompiler;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:Installer.java   
private static GroovyCompilerConfiguration createCompilerConfiguration(
        OptionSet options, CompilerOptionHandler compilerOptionHandler) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    return new OptionSetGroovyCompilerConfiguration(options, compilerOptionHandler,
            repositoryConfiguration) {
        @Override
        public boolean isAutoconfigure() {
            return false;
        }
    };
}
项目:spring-boot-concourse    文件:ArchiveCommand.java   
private GroovyCompiler createCompiler(OptionSet options) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);
    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.getAstTransformations().add(0, new GrabAnnotationTransform());
    return groovyCompiler;
}
项目:spring-boot-concourse    文件:Installer.java   
private static GroovyCompilerConfiguration createCompilerConfiguration(
        OptionSet options, CompilerOptionHandler compilerOptionHandler) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    return new OptionSetGroovyCompilerConfiguration(options, compilerOptionHandler,
            repositoryConfiguration) {
        @Override
        public boolean isAutoconfigure() {
            return false;
        }
    };
}
项目:contestparser    文件:ArchiveCommand.java   
private GroovyCompiler createCompiler(OptionSet options) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
            options, this, repositoryConfiguration);
    GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
    groovyCompiler.getAstTransformations().add(0, new GrabAnnotationTransform());
    return groovyCompiler;
}
项目:contestparser    文件:Installer.java   
private static GroovyCompilerConfiguration createCompilerConfiguration(
        OptionSet options, CompilerOptionHandler compilerOptionHandler) {
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
            .createDefaultRepositoryConfiguration();
    return new OptionSetGroovyCompilerConfiguration(options, compilerOptionHandler,
            repositoryConfiguration) {
        @Override
        public boolean isAutoconfigure() {
            return false;
        }
    };
}