Remove unused method impl in AntTask and make abstract
This commit is contained in:
parent
5cfefe08b0
commit
af11707da0
|
@ -35,7 +35,7 @@ import java.nio.charset.Charset
|
||||||
*
|
*
|
||||||
* Logging for the task is customizable for subclasses by overriding makeLogger.
|
* Logging for the task is customizable for subclasses by overriding makeLogger.
|
||||||
*/
|
*/
|
||||||
public class AntTask extends DefaultTask {
|
public abstract class AntTask extends DefaultTask {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A buffer that will contain the output of the ant code run,
|
* A buffer that will contain the output of the ant code run,
|
||||||
|
@ -76,12 +76,7 @@ public class AntTask extends DefaultTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Runs the doAnt closure. This can be overridden by subclasses instead of having to set a closure. */
|
/** Runs the doAnt closure. This can be overridden by subclasses instead of having to set a closure. */
|
||||||
protected void runAnt(AntBuilder ant) {
|
protected abstract void runAnt(AntBuilder ant);
|
||||||
if (doAnt == null) {
|
|
||||||
throw new GradleException("Missing doAnt for ${name}")
|
|
||||||
}
|
|
||||||
doAnt(ant)
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Create the logger the ant runner will use, with the given stream for error/output. */
|
/** Create the logger the ant runner will use, with the given stream for error/output. */
|
||||||
protected BuildLogger makeLogger(PrintStream stream, int outputLevel) {
|
protected BuildLogger makeLogger(PrintStream stream, int outputLevel) {
|
||||||
|
|
Loading…
Reference in New Issue