mirror of
https://gitea.com/actions/setup-java.git
synced 2026-10-28 09:03:04 +08:00
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
|
|
import * as core from '@actions/core';
|
||
|
|
import {INPUT_PROBLEM_MATCHER} from './constants.js';
|
||
|
|
import {getBooleanInput} from './util.js';
|
||
|
|
|
||
|
|
export function configureProblemMatcher(matcherPath: string): void {
|
||
|
|
const problemMatcherEnabled = getBooleanInput(INPUT_PROBLEM_MATCHER, true);
|
||
|
|
|
||
|
|
if (!problemMatcherEnabled) {
|
||
|
|
core.debug('Java problem matcher is disabled');
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
core.info(`##[add-matcher]${matcherPath}`);
|
||
|
|
}
|