Skip to content

Commit c11afeb

Browse files
committed
Added Linux and MacOS configs
1 parent 2e53a86 commit c11afeb

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

java.darwin.nexss.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let languageConfig = Object.assign(
2+
{},
3+
require(`../config.${process.platform}`)
4+
);
5+
6+
languageConfig.compilers = {
7+
java: {
8+
install: "brew cask install java",
9+
command: "javac",
10+
args: `<file> -Xlint:unchecked -cp .;lib/*;src/lib/* & java -Dfile.encoding="UTF-8" -cp .;lib/*;src/lib/* <fileNoExt>`,
11+
help: ``,
12+
},
13+
};
14+
15+
module.exports = languageConfig;

java.linux.nexss.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
let languageConfig = Object.assign(
2+
{},
3+
require(`../config.${process.platform}`)
4+
);
5+
6+
languageConfig.compilers = {
7+
java8: {
8+
install: "apt install openjdk-8-jdk",
9+
command: "javac",
10+
args: `<file> -Xlint:unchecked -cp .;lib/*;src/lib/* & java -Dfile.encoding="UTF-8" -cp .;lib/*;src/lib/* <fileNoExt>`,
11+
help: ``,
12+
},
13+
java13: {
14+
install: "apt install openjdk-13-jdk",
15+
command: "javac",
16+
args: `<file> -Xlint:unchecked -cp .;lib/*;src/lib/* & java -cp .;lib/*;src/lib/* <fileNoExt>`,
17+
help: ``,
18+
},
19+
};
20+
21+
module.exports = languageConfig;

0 commit comments

Comments
 (0)