grails - putting the appname in a codenarc report title -
just started codenarc plugin grails - seems great! try configure dynamic report title this: "code quality report ${appname}"
unfortunately, seems appname
property not available @ right time - null value.
any ideas?
ps: using grails 2.0.4 ":codenarc:0.19"
appname
default bound in buildconfig.groovy
not available configuration closure codenarc
. yet become cognizant of absolute reasoning behind behavior, unless here throws light on it. can read application.properties
directly appname below:
codenarc.reports = { def props = new properties() new file("application.properties").withinputstream {props.load(it)} myhtmlreport('html') { outputfile = "${props['app.name']} - codenarc-report.html" title = "${props['app.name']} - sample report" } }
Comments
Post a Comment