Ruling static final variables before compilation


(Alexey Plotnikov) #1

Hello, i have constant

public static final boolean DEBUG = true;

and i want create two tasks, like buildDebug - before compilation, tasks must set DEBUG variable to true buildRelease - before compilation, tasks must set DEBUG variable to false

How i can do this?