Attempting to fix failing testcase

This commit is contained in:
Kris De Volder
2018-12-06 15:28:47 -08:00
parent 7d937d056e
commit 71da26c56e
3 changed files with 9 additions and 2 deletions

View File

@@ -37,6 +37,8 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jdt.core.JavaCore;
import org.junit.After;
import org.junit.Ignore;
@@ -154,6 +156,9 @@ public class ClasspathListenerHandlerTest {
}
@Test public void sourceJar() throws Exception {
IEclipsePreferences m2eprefs = InstanceScope.INSTANCE.getNode("org.eclipse.m2e.core");
m2eprefs.putBoolean("eclipse.m2.downloadSources", true);
System.out.println("downloadSources = " + m2eprefs.get("eclipse.m2.downloadSources", null));
String projectName = "maven-with-jar-dependency";
IProject project = createTestProject(projectName);
File loc = project.getLocation().toFile();

View File

@@ -9,7 +9,9 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.jdt.core,
org.eclipse.core.resources,
com.google.guava
com.google.guava,
org.eclipse.m2e.jdt,
org.eclipse.m2e.core
Export-Package: org.springframework.tooling.jdt.ls.commons,
org.springframework.tooling.jdt.ls.commons.classpath,
org.springframework.tooling.jdt.ls.commons.javadoc,

View File

@@ -1,6 +1,6 @@
{
"name": "vscode-spring-boot",
"version": "1.1.1",
"version": "1.2.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {