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

CHE-1120 disable binding maven project type if M2_HOME env property n… #1283

Merged
merged 1 commit into from
May 19, 2016

Conversation

evidolob
Copy link
Contributor

…ot set, code clean up

@@ -39,7 +39,10 @@
protected void configure() {
newSetBinder(binder(), ValueProviderFactory.class).addBinding().to(MavenValueProviderFactory.class);

newSetBinder(binder(), ProjectTypeDef.class).addBinding().to(MavenProjectType.class);
//bind maven project type only if maven installed on dev machine
if(System.getenv("M2_HOME") != null) {
Copy link
Member

Choose a reason for hiding this comment

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

AFAIK usually we inject named variable for getting environment variable's value
@Named("env.M2_HOME") String m2Home

@codenvy-ci
Copy link

@vparfonov
Copy link
Contributor

ok

@evidolob evidolob merged commit 69eef13 into master May 19, 2016
@evidolob evidolob deleted the CHE-1120 branch May 19, 2016 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants