fixed typo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2017, 2019 Pivotal, Inc.
|
||||
* Copyright (c) 2017, 2021 Pivotal, 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
|
||||
@@ -30,7 +30,7 @@ public class SpringBootLanguageServer extends STS4LanguageServerProcessStreamCon
|
||||
|
||||
initExplodedJarCommand(
|
||||
Paths.get("servers", "spring-boot-language-server"),
|
||||
"org.springframework.ide.vscode.boot.app.BootLanguagServerBootApp",
|
||||
"org.springframework.ide.vscode.boot.app.BootLanguageServerBootApp",
|
||||
"application.properties",
|
||||
getJVMArgs()
|
||||
);
|
||||
|
||||
@@ -89,7 +89,7 @@ import reactor.core.publisher.Hooks;
|
||||
@ComponentScan
|
||||
@EnableConfigurationProperties(BootLsConfigProperties.class)
|
||||
//@SpringBootApplication
|
||||
public class BootLanguagServerBootApp {
|
||||
public class BootLanguageServerBootApp {
|
||||
|
||||
private static final String SERVER_NAME = "boot-language-server";
|
||||
|
||||
@@ -98,7 +98,7 @@ public class BootLanguagServerBootApp {
|
||||
System.setProperty(LanguageServerRunner.SYSPROP_LANGUAGESERVER_NAME, SERVER_NAME); //makes it easy to recognize language server processes - and set this as early as possible
|
||||
|
||||
LogRedirect.bootRedirectToFile(SERVER_NAME); //TODO: use boot (or logback realy) to configure logging instead.
|
||||
SpringApplication.run(BootLanguagServerBootApp.class, args);
|
||||
SpringApplication.run(BootLanguageServerBootApp.class, args);
|
||||
}
|
||||
|
||||
@ConditionalOnMissingClass("org.springframework.ide.vscode.languageserver.testharness.LanguageServerHarness")
|
||||
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2018-2020 Pivotal, Inc.
|
||||
* Copyright (c) 2018, 2021 Pivotal, 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
|
||||
@@ -19,7 +19,7 @@ import java.lang.annotation.Target;
|
||||
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
||||
import org.springframework.boot.test.autoconfigure.OverrideAutoConfiguration;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.ide.vscode.boot.app.BootLanguagServerBootApp;
|
||||
import org.springframework.ide.vscode.boot.app.BootLanguageServerBootApp;
|
||||
import org.springframework.ide.vscode.languageserver.starter.LanguageServerAutoConf;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.annotation.DirtiesContext.ClassMode;
|
||||
@@ -29,7 +29,7 @@ import org.springframework.test.annotation.DirtiesContext.ClassMode;
|
||||
@OverrideAutoConfiguration(enabled=false)
|
||||
@ImportAutoConfiguration(classes= {LanguageServerAutoConf.class, JavaTestConf.class})
|
||||
@SpringBootTest(classes={
|
||||
BootLanguagServerBootApp.class
|
||||
BootLanguageServerBootApp.class
|
||||
})
|
||||
@DirtiesContext(classMode=ClassMode.AFTER_EACH_TEST_METHOD)
|
||||
public @interface BootLanguageServerTest {
|
||||
|
||||
Reference in New Issue
Block a user