mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
Former-commit-id: 58d14a7c52a2dbdd7a785845e705d0ef0db067f4
This commit is contained in:
@@ -146,17 +146,22 @@ public class App {
|
|||||||
*/
|
*/
|
||||||
private void updateSettings(CliParser cli) {
|
private void updateSettings(CliParser cli) {
|
||||||
|
|
||||||
boolean autoUpdate = cli.isAutoUpdate();
|
final boolean autoUpdate = cli.isAutoUpdate();
|
||||||
String connectionTimeout = cli.getConnectionTimeout();
|
final String connectionTimeout = cli.getConnectionTimeout();
|
||||||
String proxyUrl = cli.getProxyUrl();
|
final String proxyUrl = cli.getProxyUrl();
|
||||||
String proxyPort = cli.getProxyPort();
|
final String proxyPort = cli.getProxyPort();
|
||||||
String proxyUser = cli.getProxyUsername();
|
final String proxyUser = cli.getProxyUsername();
|
||||||
String proxyPass = cli.getProxyPassword();
|
final String proxyPass = cli.getProxyPassword();
|
||||||
String dataDirectory = cli.getDataDirectory();
|
final String dataDirectory = cli.getDataDirectory();
|
||||||
File propertiesFile = cli.getPropertiesFile();
|
final File propertiesFile = cli.getPropertiesFile();
|
||||||
String suppressionFile = cli.getSuppressionFile();
|
final String suppressionFile = cli.getSuppressionFile();
|
||||||
boolean nexusDisabled = cli.isNexusDisabled();
|
final boolean nexusDisabled = cli.isNexusDisabled();
|
||||||
String nexusUrl = cli.getNexusUrl();
|
final String nexusUrl = cli.getNexusUrl();
|
||||||
|
final String databaseDriverName = cli.getDatabaseDriverName();
|
||||||
|
final String databaseDriverPath = cli.getDatabaseDriverPath();
|
||||||
|
final String connectionString = cli.getConnectionString();
|
||||||
|
final String databaseUser = cli.getDatabaseUser();
|
||||||
|
final String databasePassword = cli.getDatabasePassword();
|
||||||
|
|
||||||
if (propertiesFile != null) {
|
if (propertiesFile != null) {
|
||||||
try {
|
try {
|
||||||
@@ -206,5 +211,21 @@ public class App {
|
|||||||
if (nexusUrl != null && !nexusUrl.isEmpty()) {
|
if (nexusUrl != null && !nexusUrl.isEmpty()) {
|
||||||
Settings.setString(Settings.KEYS.ANALYZER_NEXUS_URL, nexusUrl);
|
Settings.setString(Settings.KEYS.ANALYZER_NEXUS_URL, nexusUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (databaseDriverName != null && !databaseDriverName.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.DB_DRIVER_NAME, databaseDriverName);
|
||||||
|
}
|
||||||
|
if (databaseDriverPath != null && !databaseDriverPath.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.DB_DRIVER_PATH, databaseDriverPath);
|
||||||
|
}
|
||||||
|
if (connectionString != null && !connectionString.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.DB_CONNECTION_STRING, connectionString);
|
||||||
|
}
|
||||||
|
if (databaseUser != null && !databaseUser.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.DB_USER, databaseUser);
|
||||||
|
}
|
||||||
|
if (databasePassword != null && !databasePassword.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.DB_PASSWORD, databasePassword);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user