coding style - How to write appropriate warning messages while writing Gradle plugin? -


i trying write gradle plugin , have situation in user specified bunch of files , when file not specific extension warning has thrown, because these files can not processed. wondering if there convention how construct appropriate warning message, message clear , not disappear in thousands line of project log.

i think like:

warning!!! file ${file.getname()} incompatible extention type ${extention}. appropriate extension ${extetnio_type}. current file not taken during build." 

but while looking in gradle code. warning messages message without warning or else. please, give me advises.

warning messages typically logged log.warn(). however, if files cannot processed, might more appropriate throw gradleexception. warnings should avoided whenever possible because create noise, require user check command line output, , overlooked.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -