isExtensionElement check missing in Tool.needsRebuild ? #872
Unanswered
shivasharma25
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
I encountered an issue where incremental build (managed build system - Internal builder) did not work for me. The reason was that one of the 'Options' always returned the 'rebuildState' flag as true.
When I looked deeper, I found that the options that have parent 'Tool' as an extension tool are never accessed to write the 'rebuildState' as 'false' after the build is done.
But the 'rebuildState' flag is read (without the extension element check) before a new build is issued.
This created a problem where the 'rebuildState' was always true (due to the default value) and prevented incremental builds and always led to a new build.
I know there should be no 'Option' that is a direct child to an extension tool and I have fixed this issue in my extension code (value handler called while creating C/C++ project must check for extension-element). But what I wanted to report/ask is as following...
What I wanted to report:
The 'Tool' class's 'needsRebuild(...)' does not check for 'isExtensionElement()' for reading the 'rebuildState' flag
BUT
the 'setRebuildState(...)' of same class checks the 'isExtensionElement()' for writing the 'rebuildState' flag.
Is this a bug OR something intentional? Do you plan to fix it, if it is a bug? Can you please explain if the missing check has some purpose, if so?
Thanks & Best Regards,
Shiva Sharma..
Beta Was this translation helpful? Give feedback.
All reactions