Skip to content
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

Merged
merged 1 commit into from
Feb 25, 2016
Merged

Conversation

vzhukovs
Copy link
Contributor

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

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;
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explanation

@sleshchenko
Copy link
Member

Also, Why do you not add number of issue to commit message?

@vzhukovs
Copy link
Contributor Author

I've added the issue number, see the description.

@sleshchenko
Copy link
Member

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

@vzhukovs vzhukovs added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 25, 2016
@vparfonov
Copy link
Contributor

ok

vzhukovs pushed a commit that referenced this pull request Feb 25, 2016
Exclude non-source directories from java project
@vzhukovs vzhukovs merged commit 1082978 into master Feb 25, 2016
@vzhukovs vzhukovs deleted the CHE-589 branch February 25, 2016 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants