summaryrefslogtreecommitdiffstats
path: root/build/vnu-jar.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:22:19 +0000
commit4ec9afcefb2b7817a7a733e1bc9777a29c350ba4 (patch)
tree85313cb1a727ca829d93bb09299af26a4c247c54 /build/vnu-jar.js
parentAdding upstream version 1.10.3+dfsg. (diff)
downloadbootstrap-icons-4ec9afcefb2b7817a7a733e1bc9777a29c350ba4.tar.xz
bootstrap-icons-4ec9afcefb2b7817a7a733e1bc9777a29c350ba4.zip
Adding upstream version 1.10.4+dfsg.upstream/1.10.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/vnu-jar.js')
-rw-r--r--build/vnu-jar.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/build/vnu-jar.js b/build/vnu-jar.js
index 6885015..c87d518 100644
--- a/build/vnu-jar.js
+++ b/build/vnu-jar.js
@@ -2,22 +2,24 @@
/*!
* Script to run vnu-jar if Java is available.
- * Copyright 2017-2022 The Bootstrap Authors
- * Copyright 2017-2022 Twitter, Inc.
+ * Copyright 2017-2023 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
'use strict'
-const { execFile, spawn } = require('child_process')
+const { execFile, spawn } = require('node:child_process')
const vnu = require('vnu-jar')
execFile('java', ['-version'], (error, stdout, stderr) => {
if (error) {
- console.error('Skipping vnu-jar test; Java is missing.')
+ console.error('Skipping vnu-jar test; Java is probably missing.')
+ console.error(error)
return
}
+ console.log('Running vnu-jar validation...')
+
const is32bitJava = !/64-Bit/.test(stderr)
// vnu-jar accepts multiple ignores joined with a `|`.
@@ -40,6 +42,8 @@ execFile('java', ['-version'], (error, stdout, stderr) => {
args.splice(0, 0, '-Xss512k')
}
+ console.log(`command used: java ${args.join(' ')}`)
+
return spawn('java', args, {
shell: true,
stdio: 'inherit'