@Component
public class ApplicationProperties
extends java.util.Properties
Properties. Sets up default properties loaded from the local serverpackcreator.properties
and allows reloading of said properties if the file has changed.| Modifier and Type | Field and Description |
|---|---|
java.io.File |
FILE_CONFIG |
java.io.File |
FILE_CONFIG_OLD |
java.io.File |
FILE_FORGE_ONE_SEVEN_USER_JVM_ARGS |
java.io.File |
FILE_LINUX |
java.io.File |
FILE_MANIFEST_FABRIC |
java.io.File |
FILE_MANIFEST_FABRIC_INSTALLER |
java.io.File |
FILE_MANIFEST_FORGE |
java.io.File |
FILE_MANIFEST_MINECRAFT |
java.io.File |
FILE_SERVER_ICON |
java.io.File |
FILE_SERVER_PROPERTIES |
java.io.File |
FILE_SERVERPACKCREATOR_DATABASE |
java.io.File |
FILE_SERVERPACKCREATOR_PROPERTIES |
java.io.File |
FILE_WINDOWS |
java.util.List<java.lang.String> |
LIST_FALLBACK_MODS_DEFAULT |
java.io.File |
PATH_FILE_MANIFEST_FABRIC |
java.io.File |
PATH_FILE_MANIFEST_FABRIC_INSTALLER |
java.io.File |
PATH_FILE_MANIFEST_FORGE |
java.io.File |
PATH_FILE_MANIFEST_MINECRAFT |
| Constructor and Description |
|---|
ApplicationProperties()
Constructor for our properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToListOfDirectoriesToExclude(java.lang.String entry)
Adder for the list of directories to exclude from server packs.
|
boolean |
checkForAvailablePreReleases()
Getter for whether the search for available PreReleases is enabled or disabled.
Depending on de.griefed.serverpackcreator.versioncheck.prerelease, returns true
if checks for available PreReleases are enabled, false if no checks for available PreReleases should
be made. |
boolean |
getCurseControllerRegenerationEnabled()
Getter for whether the regeneration of server packs is enabled.
|
java.lang.String |
getDirectoryServerPacks()
Getter for the directory in which the server packs are stored/generated in.
|
java.util.List<java.lang.String> |
getListFallbackMods()
Getter for the fallback list of clientside-only mods.
|
java.util.List<java.lang.String> |
getListOfDirectoriesToExclude()
Getter for the list of directories to exclude from server packs.
|
int |
getQueueMaxDiskUsage()
Getter for the maximum disk usage at which JMS/Artemis will stop storing queues on disk.
|
boolean |
getSaveLoadedConfiguration()
Getter for whether the last loaded configuration file should be saved to as well.
|
java.lang.String |
getServerPackCreatorVersion()
Getter for the version of ServerPackCreator.
If a JAR-file compiled from a release-job from a CI/CD-pipeline is used, it should contain a VERSION.txt-file which contains the version of said release. |
boolean |
isCurseForgeActivated()
Getter for whether the CurseForge API in ServerPackCreator is activated.
|
ApplicationProperties |
reload()
Reload serverpackcreator.properties.
|
java.lang.String |
toString() |
boolean |
updateFallback()
Update the fallback clientside-only modlist of our
serverpackcreator.properties from the main-repository
or one of its mirrors. |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, valuespublic final java.io.File FILE_SERVERPACKCREATOR_PROPERTIES
public final java.io.File FILE_WINDOWS
public final java.io.File FILE_LINUX
public final java.io.File FILE_FORGE_ONE_SEVEN_USER_JVM_ARGS
public final java.util.List<java.lang.String> LIST_FALLBACK_MODS_DEFAULT
public final java.io.File FILE_CONFIG
public final java.io.File FILE_CONFIG_OLD
public final java.io.File FILE_SERVER_PROPERTIES
public final java.io.File FILE_SERVER_ICON
public final java.io.File FILE_MANIFEST_MINECRAFT
public final java.io.File FILE_MANIFEST_FORGE
public final java.io.File FILE_MANIFEST_FABRIC
public final java.io.File FILE_MANIFEST_FABRIC_INSTALLER
public final java.io.File FILE_SERVERPACKCREATOR_DATABASE
public final java.io.File PATH_FILE_MANIFEST_MINECRAFT
public final java.io.File PATH_FILE_MANIFEST_FORGE
public final java.io.File PATH_FILE_MANIFEST_FABRIC
public final java.io.File PATH_FILE_MANIFEST_FABRIC_INSTALLER
@Autowired public ApplicationProperties()
public ApplicationProperties reload()
ApplicationProperties The updated instance of this object.public java.lang.String getDirectoryServerPacks()
public java.util.List<java.lang.String> getListFallbackMods()
public java.util.List<java.lang.String> getListOfDirectoriesToExclude()
public void addToListOfDirectoriesToExclude(java.lang.String entry)
entry - String. The directory to add to the list of directories to exclude from server packs.public boolean getCurseControllerRegenerationEnabled()
public boolean getSaveLoadedConfiguration()
public int getQueueMaxDiskUsage()
public java.lang.String getServerPackCreatorVersion()
dev.public boolean checkForAvailablePreReleases()
de.griefed.serverpackcreator.versioncheck.prerelease, returns true
if checks for available PreReleases are enabled, false if no checks for available PreReleases should
be made.public boolean isCurseForgeActivated()
de.griefed.serverpackcreator.curseforge.api.token with a
valid CurseAPI token in the serverpackcreator.properties-file.public boolean updateFallback()
serverpackcreator.properties from the main-repository
or one of its mirrors.true if the fallback-property was updated.public java.lang.String toString()
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>