Add option to set remapped
This commit is contained in:
parent
4d6b6af270
commit
b23370e6a4
|
@ -33,6 +33,7 @@ const buildToolProvider: string = (core.getInput('buildToolProvider') || 'Spigot
|
||||||
let versions: string[] = fixArgArr((core.getInput('versions') || 'latest').toLowerCase().split(','));
|
let versions: string[] = fixArgArr((core.getInput('versions') || 'latest').toLowerCase().split(','));
|
||||||
const generateSrc: boolean = core.getInput('generateSrc') == 'true';
|
const generateSrc: boolean = core.getInput('generateSrc') == 'true';
|
||||||
const generateDoc: boolean = core.getInput('generateDoc') == 'true';
|
const generateDoc: boolean = core.getInput('generateDoc') == 'true';
|
||||||
|
const remapped: string = (core.getInput("remapped") || '');
|
||||||
const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true';
|
const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true';
|
||||||
|
|
||||||
const forceRun: boolean = core.getInput('forceRun') == 'true';
|
const forceRun: boolean = core.getInput('forceRun') == 'true';
|
||||||
|
@ -106,6 +107,11 @@ async function run(): Promise<{ code: number, msg?: string }> {
|
||||||
buildToolsArgs.push('--disable-java-check');
|
buildToolsArgs.push('--disable-java-check');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (remapped) {
|
||||||
|
buildToolsArgs.push("--remapped");
|
||||||
|
buildToolsArgs.push(remapped);
|
||||||
|
}
|
||||||
|
|
||||||
const tasks = [];
|
const tasks = [];
|
||||||
for (const ver of versions) {
|
for (const ver of versions) {
|
||||||
tasks.push(async (): Promise<void> => {
|
tasks.push(async (): Promise<void> => {
|
||||||
|
|
Loading…
Reference in New Issue