本文整理汇总了Java中org.gradle.tooling.ResultHandler类的典型用法代码示例。如果您正苦于以下问题:Java ResultHandler类的具体用法?Java ResultHandler怎么用?Java ResultHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ResultHandler类属于org.gradle.tooling包,在下文中一共展示了ResultHandler类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public ResultHandlerAdapter(ResultHandler<? super Void> handler) {
super(handler, new ExceptionTransformer(new Transformer<String, Throwable>() {
@Override
public String transform(Throwable throwable) {
return String.format("Could not execute build using %s.", connection.getDisplayName());
}
}));
}
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:DefaultBuildLauncher.java
示例2: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public ResultHandlerAdapter(ResultHandler<? super Void> handler) {
super(handler, new ExceptionTransformer(new Transformer<String, Throwable>() {
@Override
public String transform(Throwable throwable) {
return String.format("Could not execute tests using %s.", connection.getDisplayName());
}
}));
}
开发者ID:lxxlxx888,项目名称:Reer,代码行数:9,代码来源:DefaultTestLauncher.java
示例3: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public ResultHandlerAdapter(ResultHandler<? super T> handler) {
super(handler, new ExceptionTransformer(new Transformer<String, Throwable>() {
@Override
public String transform(Throwable failure) {
String message = String.format("Could not fetch model of type '%s' using %s.", modelType.getSimpleName(), connection.getDisplayName());
if (!(failure instanceof UnsupportedMethodException) && failure instanceof UnsupportedOperationException) {
message += "\n" + Exceptions.INCOMPATIBLE_VERSION_HINT;
}
return message;
}
}));
}
开发者ID:lxxlxx888,项目名称:Reer,代码行数:13,代码来源:DefaultModelBuilder.java
示例4: BuildLauncherBackedGradleHandle
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public BuildLauncherBackedGradleHandle(BuildLauncher launcher) {
launcher.setStandardOutput(standardOutput);
launcher.setStandardError(standardError);
launcher.run(new ResultHandler<Void>() {
public void onComplete(Void result) {
finish();
}
public void onFailure(GradleConnectionException failure) {
exception = failure;
finish();
}
});
}
开发者ID:JakeWharton,项目名称:paraphrase,代码行数:16,代码来源:BuildLauncherBackedGradleHandle.java
示例5: getModel
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public <T> void getModel(final Class<T> modelType, final ResultHandler<? super T> handler) {
model(modelType).get(handler);
}
开发者ID:lxxlxx888,项目名称:Reer,代码行数:4,代码来源:DefaultProjectConnection.java
示例6: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
ResultHandlerAdapter(ResultHandler<? super T> handler) {
this.handler = handler;
}
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:4,代码来源:ResultHandlerAdapter.java
示例7: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public ResultHandlerAdapter(ResultHandler<? super Void> handler) {
super(handler);
}
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:4,代码来源:DefaultBuildLauncher.java
示例8: ResultHandlerAdapter
import org.gradle.tooling.ResultHandler; //导入依赖的package包/类
public ResultHandlerAdapter(ResultHandler<? super T> handler) {
super(handler);
}
开发者ID:Pushjet,项目名称:Pushjet-Android,代码行数:4,代码来源:DefaultModelBuilder.java
注:本文中的org.gradle.tooling.ResultHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论