logic for whether to build is confusing
---------------------------------------
Key: CONTINUUM-1127
URL: http://jira.codehaus.org/browse/CONTINUUM-1127
Project: Continuum
Issue Type: Bug
Components: Core system
Affects Versions: 1.1
Reporter: Brett Porter
Looking at the logic in DefaultBuildcontroller's shouldBuild( BuildContext
context ), I see some potential problems:
- the second else clause is redundant - shouldBuild is always true at this point
- the code is confusing - better to default to false, then set to true if
state/oldstate is new or checkedout, or if the build was forced
- move the dependency checking outside the other if. It doesn't need to be
conditional on whether there were changes or not.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira