-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude non-source directories from java project #523
Conversation
If java project (not maven) has language attributem then we search source folder definition in attributes and if no one was found then dont mark folder as source folder. Relevant issue: CHE-589 (Broken project tree). Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com>
if (!attributes.containsKey(srcAttribute)) { | ||
return ""; | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you return "" and null when srcAttribute doesn't have value?
https://github.com/eclipse/che/pull/523/files#diff-6063db316be1e2733d888f9686ae3133R98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because maven project (which is java simultaneously) should have source folder definition, in this case it will be defined or empty, if empty, then we'll mark root folder as source. If project is java (not maven), then source folder may not be defined, if so, then we don't mark any folder as source.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a temporary solution, which I think will be refactored after GA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explanation
Also, Why do you not add number of issue to commit message? |
I've added the issue number, see the description. |
Oh, Yeah. Sorry. It is unusually to see number of issue in body of commit message. Earlier we added it to subject of commit message |
ok |
Exclude non-source directories from java project
If java project (not maven) has language attribute, then we search source folder definition in attributes and if no one was found then dont mark folder as source folder.
Relevant issue: CHE-589 (Broken project tree).
Signed-off-by: Vladyslav Zhukovskii vzhukovskii@codenvy.com
@vparfonov