本文整理汇总了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);
}
示例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()));
}
示例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);
}
示例4: DefaultJavaToolChainRegistry
import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
public DefaultJavaToolChainRegistry(JavaToolChainInternal toolChain) {
this.toolChain = toolChain;
}
示例5: getBinaryBuildAbility
import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
@Override
protected BinaryBuildAbility getBinaryBuildAbility() {
return new ToolSearchBuildAbility(((JavaToolChainInternal) getToolChain()).select(getTargetPlatform()));
}
示例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);
}
示例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());
}
示例8: createJavaToolChain
import org.gradle.jvm.internal.toolchain.JavaToolChainInternal; //导入依赖的package包/类
JavaToolChainInternal createJavaToolChain(JavaCompilerFactory compilerFactory, ExecActionFactory execActionFactory) {
return new DefaultJavaToolChain(compilerFactory, execActionFactory);
}
示例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);
}
示例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);
}
示例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());
}