Skip to content

Commit 7386630

Browse files
Add long classpath case to the test plan (#536)
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
1 parent 7abda57 commit 7386630

11 files changed

Lines changed: 367 additions & 0 deletions

File tree

TestPlan.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,3 +473,19 @@ Exception in thread "main" java.lang.IllegalStateException
473473
4. Press F5 to verify the variables should be like this:
474474
475475
![args](images/args.PNG)
476+
477+
## Classpath shortener for long classpath project
478+
1. Open `longclasspath` project in VS Code.
479+
2. Append the following config to the launch.json:
480+
```
481+
"shortenCommandLine": "none"
482+
```
483+
3. Click Run or Debug CodeLens.
484+
- On Windows, it should pop up an error box saying "CreateProcess error"=206, The filename or extension is too long".
485+
- On Linux and Macos, it may succeed.
486+
4. On Windows/Linux/Macos, modify the launch.json with the following combinations. Click Run/Debug both should succeed.
487+
```
488+
"shortenCommandLine": ""/"auto"/"jarmanifest"/"argfile", // argfile requires your Java version is 9 and higher.
489+
"console": ""/"internalConsole"/"integratedTerminal"/"externalTerminal"
490+
491+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
HELP.md
2+
.gradle
3+
/build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
6+
### STS ###
7+
.apt_generated
8+
.classpath
9+
.factorypath
10+
.project
11+
.settings
12+
.springBeans
13+
.sts4-cache
14+
15+
### IntelliJ IDEA ###
16+
.idea
17+
*.iws
18+
*.iml
19+
*.ipr
20+
/out/
21+
22+
### NetBeans ###
23+
/nbproject/private/
24+
/nbbuild/
25+
/dist/
26+
/nbdist/
27+
/.nb-gradle/
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
plugins {
2+
id 'org.springframework.boot' version '2.1.3.RELEASE'
3+
id 'java'
4+
}
5+
6+
apply plugin: 'io.spring.dependency-management'
7+
8+
group = 'com.example'
9+
version = '0.0.1-SNAPSHOT'
10+
sourceCompatibility = '1.8'
11+
12+
repositories {
13+
mavenCentral()
14+
}
15+
16+
dependencies {
17+
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
18+
compile('org.springframework.boot:spring-boot-starter-web')
19+
compile('org.apache.spark:spark-core_2.11:2.3.2')
20+
compile('org.apache.spark:spark-sql_2.11:2.3.2')
21+
// compile('org.mongodb.spark:mongo-spark-connector_2.11:2.3.1')
22+
testImplementation('org.springframework.boot:spring-boot-starter-test')
23+
}
24+
25+
configurations.all {
26+
exclude module: 'slf4j-log4j12'
27+
}
54.9 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

testprojects/longclasspath/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testprojects/longclasspath/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
}
5+
}
6+
rootProject.name = 'longclasspath'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.example.longclasspath;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class DemoApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(DemoApplication.class, args);
11+
}
12+
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)