当前位置: 首页>>代码示例>>Java>>正文


Java JavaToolChainInternal类代码示例

本文整理汇总了Java中org.gradle.jvm.internal.toolchain.JavaToolChainInternal的典型用法代码示例。如果您正苦于以下问题:Java JavaToolChainInternal类的具体用法?Java JavaToolChainInternal怎么用?Java JavaToolChainInternal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JavaToolChainInternal类属于org.gradle.jvm.internal.toolchain包,在下文中一共展示了JavaToolChainInternal类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: executeExternalJavadoc

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
private void executeExternalJavadoc() {
    JavadocSpec spec = new JavadocSpec();
    spec.setExecutable(executable);
    spec.setOptions(options);
    spec.setIgnoreFailures(!failOnError);
    spec.setWorkingDir(getProject().getProjectDir());
    spec.setOptionsFile(getOptionsFile());

    Compiler<JavadocSpec> generator = ((JavaToolChainInternal) getToolChain()).select(getPlatform()).newCompiler(JavadocSpec.class);
    generator.execute(spec);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:12,代码来源:Javadoc.java

示例2: getBuildAbility

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
@Override
public BinaryBuildAbility getBuildAbility() {
    if (!buildable) {
        return new FixedBuildAbility(false);
    }
    return new ToolSearchBuildAbility(((JavaToolChainInternal) getToolChain()).select(getTargetPlatform()));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:8,代码来源:DefaultClassDirectoryBinarySpec.java

示例3: executeExternalJavadoc

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
private void executeExternalJavadoc() {
    JavadocSpec spec = new JavadocSpec();
    spec.setExecutable(executable);
    spec.setOptions(options);
    spec.setIgnoreFailures(!failOnError);
    spec.setWorkingDir(getProject().getProjectDir());
    spec.setOptionsFile(getOptionsFile());

    Compiler<JavadocSpec> generator = ((JavaToolChainInternal) getToolChain()).select(null).newCompiler(spec);
    generator.execute(spec);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:12,代码来源:Javadoc.java

示例4: DefaultJavaToolChainRegistry

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
public DefaultJavaToolChainRegistry(JavaToolChainInternal toolChain) {
    this.toolChain = toolChain;
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:DefaultJavaToolChainRegistry.java

示例5: getBinaryBuildAbility

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
@Override
protected BinaryBuildAbility getBinaryBuildAbility() {
    return new ToolSearchBuildAbility(((JavaToolChainInternal) getToolChain()).select(getTargetPlatform()));
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:DefaultJarBinarySpec.java

示例6: javaToolChain

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
@Model
@Hidden
public JavaToolChainRegistry javaToolChain(ServiceRegistry serviceRegistry) {
    JavaToolChainInternal toolChain = serviceRegistry.get(JavaToolChainInternal.class);
    return new DefaultJavaToolChainRegistry(toolChain);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:7,代码来源:JvmComponentPlugin.java

示例7: createCompiler

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
private CleaningJavaCompiler createCompiler(JavaCompileSpec spec) {
    Compiler<JavaCompileSpec> javaCompiler = CompilerUtil.castCompiler(((JavaToolChainInternal) getToolChain()).select(getPlatform()).newCompiler(spec.getClass()));
    return new CleaningJavaCompiler(javaCompiler, getAntBuilderFactory(), getOutputs());
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:5,代码来源:JavaCompile.java

示例8: createJavaToolChain

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
JavaToolChainInternal createJavaToolChain(JavaCompilerFactory compilerFactory, ExecActionFactory execActionFactory) {
    return new DefaultJavaToolChain(compilerFactory, execActionFactory);
}
 
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:JavaToolChainServiceRegistry.java

示例9: javaToolChain

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
@Model
JavaToolChainRegistry javaToolChain(ServiceRegistry serviceRegistry) {
    JavaToolChainInternal toolChain = serviceRegistry.get(JavaToolChainInternal.class);
    return new DefaultJavaToolChainRegistry(toolChain);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:6,代码来源:JvmComponentPlugin.java

示例10: execute

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
public void execute(JarBinarySpec jarBinarySpec) {
    JavaToolChainInternal toolChain = (JavaToolChainInternal) jarBinarySpec.getToolChain();
    boolean canBuild = toolChain.select(jarBinarySpec.getTargetPlatform()).isAvailable();
    ((JarBinarySpecInternal) jarBinarySpec).setBuildable(canBuild);
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:6,代码来源:JvmComponentPlugin.java

示例11: createCompiler

import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
private CleaningJavaCompiler createCompiler(JavaCompileSpec spec) {
    // TODO:DAZ Supply the target platform to the task, using the compatibility flags as overrides
    // Or maybe split the legacy compile task from the new one
    Compiler<JavaCompileSpec> javaCompiler = ((JavaToolChainInternal) getToolChain()).select(getPlatform()).newCompiler(spec);
    return new CleaningJavaCompiler(javaCompiler, getAntBuilderFactory(), getOutputs());
}
 
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:7,代码来源:JavaCompile.java


注:本文中的org.gradle.jvm.internal.toolchain.JavaToolChainInternal类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。