From 98c68de2736d3d94ecf7f40c9f9029d71bcdc58b Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Thu, 9 Jan 2020 10:35:30 -0600 Subject: [PATCH] Set CLASSPATH to empty for JRuby --- dist/index.js | 3 +++ index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index 5e4c1e3..25ed05c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1399,6 +1399,9 @@ async function run() { if (platform === 'windows-latest') { rubyPrefix = await windows.downloadExtractAndSetPATH(ruby) } else { + if (ruby.startsWith('jruby')) { + core.exportVariable('CLASSPATH', '') + } rubyPrefix = await downloadAndExtract(platform, ruby) core.addPath(`${rubyPrefix}/bin`) } diff --git a/index.js b/index.js index 5facb7e..582cfc2 100644 --- a/index.js +++ b/index.js @@ -18,6 +18,9 @@ async function run() { if (platform === 'windows-latest') { rubyPrefix = await windows.downloadExtractAndSetPATH(ruby) } else { + if (ruby.startsWith('jruby')) { + core.exportVariable('CLASSPATH', '') + } rubyPrefix = await downloadAndExtract(platform, ruby) core.addPath(`${rubyPrefix}/bin`) }