public void execute(JavaExecSpec javaExecSpec) {
javaExecSpec.setWorkingDir(getProject().getProjectDir());
}
});
JsHintSpec spec = new JsHintSpec();
spec.setSource(getSource().getFiles()); // flatten because we need to serialize
spec.setEncoding(getEncoding());
spec.setJsHint(getJsHint().getSingleFile());
JsHintResult result = rhinoHandle.process(spec);
setDidWork(true);
// TODO - this is all terribly lame. We need some proper reporting here (which means implementing Reporting).