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(','));
|
||||
const generateSrc: boolean = core.getInput('generateSrc') == 'true';
|
||||
const generateDoc: boolean = core.getInput('generateDoc') == 'true';
|
||||
const remapped: string = (core.getInput("remapped") || '');
|
||||
const disableJavaCheck: boolean = core.getInput('disableJavaCheck') == 'true';
|
||||
|
||||
const forceRun: boolean = core.getInput('forceRun') == 'true';
|
||||
|
@ -105,6 +106,11 @@ async function run(): Promise<{ code: number, msg?: string }> {
|
|||
if (disableJavaCheck) {
|
||||
buildToolsArgs.push('--disable-java-check');
|
||||
}
|
||||
|
||||
if (remapped) {
|
||||
buildToolsArgs.push("--remapped");
|
||||
buildToolsArgs.push(remapped);
|
||||
}
|
||||
|
||||
const tasks = [];
|
||||
for (const ver of versions) {
|
||||
|
@ -224,4 +230,4 @@ export function logError(msg?: string | object): void {
|
|||
|
||||
run()
|
||||
.then((result) => exit(result.code, result.msg))
|
||||
.catch((err) => exit(1, err));
|
||||
.catch((err) => exit(1, err));
|
||||
|
|
Loading…
Reference in New Issue