mirror of
https://github.com/actions/setup-java.git
synced 2026-11-11 15:57:37 +00:00
14 lines
434 B
TypeScript
14 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}`);
|
||
|
|
}
|