net.elehack.gradle.science.ConfigurableOutputHandler.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-science Show documentation
Show all versions of gradle-science Show documentation
Gradle tasks for scientific publication.
The newest version!
package net.elehack.gradle.science
class ConfigurableOutputHandler extends ProcessOutputHandler {
private Closure lineHandler
ConfigurableOutputHandler(String name, Closure lh) {
super(name)
lineHandler = lh
}
@Override
protected void handleLine(String line) {
lineHandler(line, logger)
}
}