Skip to content

Commit a69d509

Browse files
authored
Merge hotfix to master (#409)
* Update testplan for setting environment variables. (#394) * Bump version to 0.12.2 (#406)
1 parent 31973a5 commit a69d509

File tree

12 files changed

+198
-4
lines changed

12 files changed

+198
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to the "vscode-java-debugger" extension will be documented i
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 0.12.2 - 2018-9-6
8+
### Fixed
9+
- Fix: Runtime scope class path entries are missing. [#402](https://github.com/Microsoft/vscode-java-debug/issues/402).
10+
711
## 0.12.1 - 2018-8-31
812
### Fixed
913
- Fix: `env` config in launch.json not respected. [#393](https://github.com/Microsoft/vscode-java-debug/issues/393).

TestPlan.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,3 +429,11 @@ Exception in thread "main" java.lang.IllegalStateException
429429
CustomEnv: This env is for test plan.
430430
SystemPath: <value of PATH >
431431
```
432+
433+
## Runtime classpath entry
434+
1. Open `27.runtimeClassEntry` in vscode.
435+
2. Press <kbd>F5</kbd> to start.
436+
3. Verify the output in Debug Console should be as following:
437+
```
438+
Tomcat started on port(s): 8080 (http)
439+
```

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-java-debug",
33
"displayName": "Debugger for Java",
44
"description": "A lightweight Java debugger for Visual Studio Code",
5-
"version": "0.12.1",
5+
"version": "0.12.2",
66
"publisher": "vscjava",
77
"preview": true,
88
"aiKey": "67d4461e-ccba-418e-8082-1bd0acfe8516",
@@ -37,7 +37,7 @@
3737
"main": "./out/src/extension",
3838
"contributes": {
3939
"javaExtensions": [
40-
"./server/com.microsoft.java.debug.plugin-0.12.1.jar"
40+
"./server/com.microsoft.java.debug.plugin-0.12.2.jar"
4141
],
4242
"commands": [],
4343
"debuggers": [
@@ -366,7 +366,7 @@
366366
"vscode:prepublish": "tsc -p ./",
367367
"compile": "tsc -watch -p ./",
368368
"postinstall": "node ./node_modules/vscode/bin/install",
369-
"test": "node ./scripts/download-vscode-for-system-tests && node ./scripts/install-vsix-dependencies redhat.java && node ./scripts/install-vsix-dependencies vscode-java-debug-0.12.1.vsix && node ./scripts/run-vscode-tests"
369+
"test": "node ./scripts/download-vscode-for-system-tests && node ./scripts/install-vsix-dependencies redhat.java && node ./scripts/install-vsix-dependencies vscode-java-debug-0.12.2.vsix && node ./scripts/run-vscode-tests"
370370
},
371371
"extensionDependencies": [
372372
"redhat.java"
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.github.kdvolder</groupId>
7+
<artifactId>hello-world-service</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<name>demo</name>
12+
<description>Demo project for Spring Boot</description>
13+
14+
<parent>
15+
<groupId>org.springframework.boot</groupId>
16+
<artifactId>spring-boot-starter-parent</artifactId>
17+
<version>2.0.0.RELEASE</version>
18+
<relativePath/> <!-- lookup parent from repository -->
19+
</parent>
20+
21+
<properties>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24+
<java.version>1.8</java.version>
25+
</properties>
26+
27+
<dependencies>
28+
<dependency>
29+
<groupId>org.springframework.boot</groupId>
30+
<artifactId>spring-boot-starter-actuator</artifactId>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-starter-web</artifactId>
35+
</dependency>
36+
<dependency>
37+
<groupId>org.springframework.boot</groupId>
38+
<artifactId>spring-boot-starter-test</artifactId>
39+
<scope>test</scope>
40+
</dependency>
41+
<dependency>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-devtools</artifactId>
44+
<scope>runtime</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>org.springframework.boot</groupId>
48+
<artifactId>spring-boot-configuration-processor</artifactId>
49+
<optional>true</optional>
50+
</dependency>
51+
</dependencies>
52+
53+
<build>
54+
<plugins>
55+
<plugin>
56+
<groupId>org.springframework.boot</groupId>
57+
<artifactId>spring-boot-maven-plugin</artifactId>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
62+
63+
</project>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.kdvolder.helloworldservice;
2+
3+
public class Constants {
4+
public static final String GREETER_ID = "greeets";
5+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
package com.github.kdvolder.helloworldservice;
2+
3+
import org.springframework.beans.factory.annotation.Autowired;
4+
import org.springframework.beans.factory.annotation.Qualifier;
5+
import org.springframework.boot.SpringApplication;
6+
import org.springframework.boot.autoconfigure.SpringBootApplication;
7+
import org.springframework.context.annotation.Bean;
8+
import org.springframework.scheduling.annotation.EnableScheduling;
9+
import org.springframework.web.bind.annotation.GetMapping;
10+
import org.springframework.web.bind.annotation.PathVariable;
11+
import org.springframework.web.bind.annotation.RestController;
12+
13+
14+
@SpringBootApplication
15+
@RestController
16+
@EnableScheduling
17+
public class DemoApplication {
18+
19+
public static class Bar {
20+
}
21+
22+
public static class Foo {
23+
}
24+
25+
@Autowired(required=false) void foo(@Qualifier("foobar")Foo foo) {
26+
System.out.println("a Foo got injected");
27+
}
28+
29+
@Autowired(required=false) void bar(@Qualifier("foobar")Bar bar) {
30+
System.out.println("a Bar got injected");
31+
}
32+
33+
public static void main(String[] args) {
34+
SpringApplication.run(DemoApplication.class, args);
35+
}
36+
37+
@GetMapping(value="/")
38+
public String mainpage() {
39+
return "Hello "+System.getProperty("greeting");
40+
}
41+
42+
43+
@GetMapping(value = "/hello/{name}")
44+
public String getMethodName(@PathVariable String name) {
45+
return "Hello "+name;
46+
}
47+
48+
49+
@Bean Foo foobar() {
50+
return new Foo();
51+
}
52+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.github.kdvolder.helloworldservice;
2+
3+
import org.springframework.stereotype.Component;
4+
5+
6+
@Component
7+
public class Greeter {
8+
9+
String greeting(String name) {
10+
return "Hello "+name;
11+
}
12+
13+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.github.kdvolder.helloworldservice;
2+
3+
import org.springframework.boot.context.properties.ConfigurationProperties;
4+
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
5+
6+
@ConfigurationProperties("my")
7+
public class MyProperties {
8+
9+
private String hello;
10+
11+
/**
12+
* @return the hello
13+
*/
14+
@DeprecatedConfigurationProperty(replacement="new.my.hello")
15+
public String getHello() {
16+
return hello;
17+
}
18+
19+
/**
20+
* @param hello the hello to set
21+
*/
22+
public void setHello(String hello) {
23+
this.hello = hello;
24+
}
25+
26+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
my.hello=Yadaya

0 commit comments

Comments
 (0)