use of org.gradle.api.tasks.WorkResult in project gradle by gradle.
the class CreateStaticLibrary method link.
// TODO: Need to track version/implementation of ar tool.
@TaskAction
public void link() {
StaticLibraryArchiverSpec spec = new DefaultStaticLibraryArchiverSpec();
spec.setTempDir(getTemporaryDir());
spec.setOutputFile(getOutputFile().get().getAsFile());
spec.objectFiles(getSource());
spec.args(getStaticLibArgs().get());
BuildOperationLogger operationLogger = getOperationLoggerFactory().newOperationLogger(getName(), getTemporaryDir());
spec.setOperationLogger(operationLogger);
Compiler<StaticLibraryArchiverSpec> compiler = createCompiler();
WorkResult result = BuildOperationLoggingCompilerDecorator.wrap(compiler).execute(spec);
setDidWork(result.getDidWork());
}
use of org.gradle.api.tasks.WorkResult in project gradle by gradle.
the class StripSymbols method stripSymbols.
// TODO: Need to track version/implementation of symbol strip tool.
@TaskAction
public void stripSymbols() {
BuildOperationLogger operationLogger = getServices().get(BuildOperationLoggerFactory.class).newOperationLogger(getName(), getTemporaryDir());
StripperSpec spec = new DefaultStripperSpec();
spec.setBinaryFile(binaryFile.get().getAsFile());
spec.setOutputFile(outputFile.get().getAsFile());
spec.setOperationLogger(operationLogger);
Compiler<StripperSpec> symbolStripper = createCompiler();
symbolStripper = BuildOperationLoggingCompilerDecorator.wrap(symbolStripper);
WorkResult result = symbolStripper.execute(spec);
setDidWork(result.getDidWork());
}
Aggregations