You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/04/02 10:19:58 UTC
[jira] Updated: (CONTINUUM-1127) logic for whether to build is
confusing
[ http://jira.codehaus.org/browse/CONTINUUM-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated CONTINUUM-1127:
------------------------------------
Fix Version/s: (was: Future)
1.x
> 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-alpha-1
> Reporter: Brett Porter
> Fix For: 1.x
>
>
> 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