Can we improve the Ant task for LOCC such that it fails when LOCC fails? That way the build will fail when LOCC fails, and we'll know that there's a problem that needs fixing.

You could make this an attribute of the Ant task, like
failOnLOCCError="true"
so that the Ant user would be able to decide whether to fail the build or not when LOCC fails.


Note also that the correct way to set these kind of boolean properties is with Project.toBoolean():

/**
  * Sets build sensor in verbose mode to have meaningful printout for
  * sensor debugging. It can be enabled by verbose="true" or "on" or "True" etc.
  *
  * @param verboseValue True, true, or TRUE
  */
 public void setVerbose(String verboseValue) {
   this.verboseMode = Project.toBoolean(verboseValue);
 }

This enables a variety of values ("true" "on" "FALSE" "Off", etc.) to map to their correct boolean value. Some of our sensor code did not use this Ant idiom.


Cheers, Philip

--On Tuesday, November 30, 2004 10:24 AM -1000 Michael Paulding <[EMAIL PROTECTED]> wrote:

Also, for a more urgent motivation, the current release of LOCC is based
upon the JDK 1.5 grammar and treats "enum" as a reserved word.  This
means whenever we name a variable "enum", LOCC will fail to parse the
file and we will not have FileMetric data for that module until it is fixed.






Reply via email to