Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
detect.polaris.url -> polaris.url
Browse files Browse the repository at this point in the history
  • Loading branch information
taikuukaits committed Feb 7, 2019
1 parent 3679be2 commit 59ea1cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public enum DetectProperty {

@HelpGroup(primary = GROUP_POLARIS, additional = {})
@HelpDescription("The url of your polaris instance.")
DETECT_POLARIS_URL("detect.polaris.url", "Polaris Url", "4.1.0", PropertyType.STRING, PropertyAuthority.None),
POLARIS_URL("polaris.url", "Polaris Url", "4.1.0", PropertyType.STRING, PropertyAuthority.None),

@HelpGroup(primary = GROUP_PROJECT, additional = { SEARCH_GROUP_GLOBAL, SEARCH_GROUP_PROJECT_SETTING, SEARCH_GROUP_POLICY })
@HelpDescription("A comma-separated list of policy violation severities that will fail detect. If this is not set, detect will not fail due to policy violations.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public RunDecision decide(DetectConfiguration detectConfiguration, PolarisEnviro
} else {
logger.info("No Black Duck url was found and offline mode is not set, will NOT run Black Duck product.");
}
String polarisUrl = detectConfiguration.getProperty(DetectProperty.DETECT_POLARIS_URL, PropertyAuthority.None);
String polarisUrl = detectConfiguration.getProperty(DetectProperty.POLARIS_URL, PropertyAuthority.None);
boolean libraryCanRun = polarisEnvironmentCheck.canRun(directoryManager.getUserHome());
if (StringUtils.isBlank(polarisUrl)) {
logger.info("No polaris url was found, cannot run polaris.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void runPolaris(final IntLogger logger, File projectDirectory) throws Det
}

logger.info("Polaris determined it should attempt to run.");
String polarisUrl = detectConfiguration.getProperty(DetectProperty.DETECT_POLARIS_URL, PropertyAuthority.None);
String polarisUrl = detectConfiguration.getProperty(DetectProperty.POLARIS_URL, PropertyAuthority.None);
logger.info("Will use the following polaris url: " + polarisUrl);

IntHttpClient restConnection = connectionManager.createUnauthenticatedRestConnection(polarisUrl);
Expand Down

0 comments on commit 59ea1cd

Please sign in to comment.