-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1794 remove all 'test-ls' profile, use system variable to determine …
…is test LS enabled Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
- Loading branch information
Yevhen Vydolob
committed
Aug 22, 2017
1 parent
77ffb9a
commit 952ddd6
Showing
34 changed files
with
722 additions
and
756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 14 additions & 15 deletions
29
agents/test-ls/src/main/java/org/eclipse/che/api/agent/TestLSAgent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2017 Codenvy, S.A. | ||
/* | ||
* Copyright (c) 2012-2017 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
|
||
package org.eclipse.che.api.agent; import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
package org.eclipse.che.api.agent; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import java.io.IOException; | ||
import org.eclipse.che.api.agent.shared.model.Agent; | ||
import org.eclipse.che.api.agent.shared.model.impl.BasicAgent; | ||
|
||
import java.io.IOException; | ||
|
||
/** | ||
* Test Language server agent. | ||
* | ||
* @see Agent | ||
* | ||
*/ | ||
@Singleton | ||
public class TestLSAgent extends BasicAgent { | ||
private static final String AGENT_DESCRIPTOR = "org.eclipse.che.test.ls.json"; | ||
private static final String AGENT_SCRIPT = "org.eclipse.che.test.ls.script.sh"; | ||
private static final String AGENT_DESCRIPTOR = "org.eclipse.che.test.ls.json"; | ||
private static final String AGENT_SCRIPT = "org.eclipse.che.test.ls.script.sh"; | ||
|
||
@Inject | ||
public TestLSAgent() throws IOException { | ||
super(AGENT_DESCRIPTOR, AGENT_SCRIPT); | ||
} | ||
@Inject | ||
public TestLSAgent() throws IOException { | ||
super(AGENT_DESCRIPTOR, AGENT_SCRIPT); | ||
} | ||
} |
24 changes: 12 additions & 12 deletions
24
agents/test-ls/src/main/java/org/eclipse/che/api/agent/TestLSModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2017 Codenvy, S.A. | ||
/* | ||
* Copyright (c) 2012-2017 Red Hat, Inc. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
* Red Hat, Inc. - initial API and implementation | ||
*/ | ||
|
||
package org.eclipse.che.api.agent; | ||
|
||
import com.google.inject.AbstractModule; | ||
import com.google.inject.multibindings.Multibinder; | ||
|
||
import org.eclipse.che.api.agent.shared.model.Agent; | ||
import org.eclipse.che.inject.DynaModule; | ||
|
||
/** | ||
* | ||
*/ | ||
/** Test language server module */ | ||
@DynaModule | ||
public class TestLSModule extends AbstractModule { | ||
@Override | ||
protected void configure() { | ||
Multibinder<Agent> agents = Multibinder.newSetBinder(binder(), Agent.class); | ||
agents.addBinding().to(TestLSAgent.class); | ||
@Override | ||
protected void configure() { | ||
|
||
if (System.getProperty("test_language_server_enabled") != null) { | ||
Multibinder<Agent> agents = Multibinder.newSetBinder(binder(), Agent.class); | ||
agents.addBinding().to(TestLSAgent.class); | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
agents/test-ls/src/main/resources/org.eclipse.che.test.ls.script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.