-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/IJMP-1537' into 'release/v1.2.0-221'
IJMP-1537: move tasks from 2.0.0 to 1.2.0 See merge request ijmp/for-mainframe!491
- Loading branch information
Showing
15 changed files
with
398 additions
and
488 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/main/kotlin/eu/ibagroup/formainframe/common/SettingsPropertyManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Copyright IBA Group 2020 | ||
*/ | ||
|
||
package eu.ibagroup.formainframe.common | ||
|
||
import java.util.* | ||
|
||
class SettingsPropertyManager | ||
|
||
/** | ||
* Properties from the settings.properties file | ||
*/ | ||
internal val settingsProperties by lazy { | ||
Properties().apply { | ||
load(SettingsPropertyManager::class.java.classLoader.getResourceAsStream("settings.properties")) | ||
} | ||
} | ||
|
||
/** | ||
* Check if the debug mode is enabled | ||
*/ | ||
fun isDebugModeEnabled(): Boolean { | ||
return settingsProperties.getProperty("debug.mode")?.toBoolean() ?: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.