FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vscode-java-dependency/scripts/buildJdtlsExt.js at main · Pythoneryeah/vscode-java-dependency · GitHub
Pythoneryeah
/
vscode-java-dependency
Public
forked from
microsoft/vscode-java-dependency
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
vscode-java-dependency
/
scripts
/
buildJdtlsExt.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (23 loc) · 926 Bytes
Breadcrumbs
vscode-java-dependency
/
scripts
/
buildJdtlsExt.js
Copy path
File metadata and controls
29 lines (23 loc) · 926 Bytes
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
const
cp
=
require
(
'child_process'
)
;
const
fse
=
require
(
'fs-extra'
)
;
const
path
=
require
(
'path'
)
;
const
server_dir
=
path
.
resolve
(
'jdtls.ext'
)
;
cp
.
execSync
(
mvnw
(
)
+
' clean package'
,
{
cwd
:
server_dir
,
stdio
:
[
0
,
1
,
2
]
}
)
;
copy
(
path
.
join
(
server_dir
,
'com.microsoft.jdtls.ext.core/target'
)
,
path
.
resolve
(
'server'
)
,
(
file
)
=>
{
return
/
^
c
o
m
.
m
i
c
r
o
s
o
f
t
.
j
d
t
l
s
.
e
x
t
.
c
o
r
e
.
*
.
j
a
r
$
/
.
test
(
file
)
;
}
)
;
function
copy
(
sourceFolder
,
targetFolder
,
fileFilter
)
{
const
jars
=
fse
.
readdirSync
(
sourceFolder
)
.
filter
(
file
=>
fileFilter
(
file
)
)
;
fse
.
ensureDirSync
(
targetFolder
)
;
for
(
const
jar
of
jars
)
{
fse
.
copyFileSync
(
path
.
join
(
sourceFolder
,
jar
)
,
path
.
join
(
targetFolder
,
path
.
basename
(
jar
)
)
)
;
}
}
function
isWin
(
)
{
return
/
^
w
i
n
/
.
test
(
process
.
platform
)
;
}
function
mvnw
(
)
{
return
isWin
(
)
?
"mvnw.cmd"
:
"./mvnw"
;
}
Back
|
FazBrowse Home
|
New Git URL