-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathtasks.json
58 lines (58 loc) · 1.66 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//Author : Mehedi Hasan Shifat
//data:Sat 16 May 2020 02:25:10 PM +06
//Task:shortcut to run a java file which will take input and show output of the programme automatically with programme runtime status such as memory consume and execution time
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run Java Code",
"type": "shell",
"command": "",
"args": [
"/usr/bin/time",
"-v",
"--output",
"sys.txt",
"timeout",
"5",
"javac",
"${relativeFile}",
"-d",
"${workspaceFolder}",
"&&",
"java",
"${fileBasenameNoExtension}",
"<",
"input.txt",
">",
"output.txt",
"&&",
"rm",
"-rf",
"*.class"
],
"presentation": {
"reveal": "silent"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "java",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}