FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vscode-java-debug/scripts/build/buildJdtlsExt.js at main · microsoft/vscode-java-debug · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
vscode-java-debug
Public
Notifications
You must be signed in to change notification settings
Fork
428
Star
589
Code
Issues
201
Pull requests
11
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vscode-java-debug
/
scripts
/
build
/
buildJdtlsExt.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (34 loc) · 1.08 KB
Breadcrumbs
vscode-java-debug
/
scripts
/
build
/
buildJdtlsExt.js
Copy path
File metadata and controls
42 lines (34 loc) · 1.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
const
cp
=
require
(
'child_process'
)
;
const
path
=
require
(
'path'
)
;
const
fs
=
require
(
'fs'
)
;
const
server_dir
=
path
.
resolve
(
'../java-debug'
)
;
cp
.
execSync
(
mvnw
(
)
+
' clean package'
,
{
cwd
:
server_dir
,
stdio
:
[
0
,
1
,
2
]
}
)
;
copy
(
path
.
join
(
server_dir
,
'com.microsoft.java.debug.plugin/target'
)
,
path
.
resolve
(
'server'
)
,
(
file
)
=>
{
return
/
^
c
o
m
.
m
i
c
r
o
s
o
f
t
.
j
a
v
a
.
d
e
b
u
g
.
*
.
j
a
r
$
/
.
test
(
file
)
;
}
)
;
function
copy
(
sourceFolder
,
targetFolder
,
fileFilter
)
{
const
jars
=
fs
.
readdirSync
(
sourceFolder
)
.
filter
(
file
=>
fileFilter
(
file
)
)
;
if
(
!
fs
.
existsSync
(
targetFolder
)
)
{
fs
.
mkdirSync
(
targetFolder
)
;
}
for
(
const
jar
of
jars
)
{
fs
.
copyFileSync
(
path
.
join
(
sourceFolder
,
jar
)
,
path
.
join
(
targetFolder
,
path
.
basename
(
jar
)
)
)
;
}
}
function
isWin
(
)
{
return
/
^
w
i
n
/
.
test
(
process
.
platform
)
;
}
function
isMac
(
)
{
return
/
^
d
a
r
w
i
n
/
.
test
(
process
.
platform
)
;
}
function
isLinux
(
)
{
return
/
^
l
i
n
u
x
/
.
test
(
process
.
platform
)
;
}
function
mvnw
(
)
{
return
isWin
(
)
?
"mvnw.cmd"
:
"./mvnw"
;
}
Back
|
FazBrowse Home
|
New Git URL