@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.| 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. |
java.io.File |
DEFAULT_CONFIG()
Default configuration-file for a server pack generation.
|
java.io.File |
DEFAULT_SERVER_ICON()
Default server-icon.png-file used by Minecraft servers.
|
java.io.File |
DEFAULT_SERVER_PROPERTIES()
Default server.properties-file used by Minecraft servers.
|
java.lang.String |
DIRECTORY_PLUGINS()
Directory where plugins are stored in.
|
java.lang.String |
DIRECTORY_SERVER_FILES()
Directory where server-files are stored in, for example the default server-icon and
server.properties.
|
java.io.File |
FABRIC_INSTALLER_VERSION_MANIFEST_LOCATION()
Path to the Fabric installer version manifest-file, as a file.
|
java.io.File |
FABRIC_INSTALLER_VERSION_MANIFEST()
Fabric installer version manifest-file.
|
java.io.File |
FABRIC_VERSION_MANIFEST_LOCATION()
Path to the Fabric version manifest-file, as a file.
|
java.io.File |
FABRIC_VERSION_MANIFEST()
Fabric version manifest-file.
|
java.util.List<java.lang.String> |
FALLBACK_CLIENTSIDE_MODS()
String-list of fallback clientside-only mods.
|
java.io.File |
FORGE_VERSION_MANIFEST_LOCATION()
Path to the Forge version manifest-file, as a file.
|
java.io.File |
FORGE_VERSION_MANIFEST()
Forge version manifest-file.
|
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.io.File |
MINECRAFT_VERSION_MANIFEST_LOCATION()
Path to the Minecraft version manifest-file, as a file.
|
java.io.File |
MINECRAFT_VERSION_MANIFEST()
Minecraft version manifest-file.
|
java.io.File |
OLD_CONFIG()
Old configuration-file used for automated migration in case anyone upgrades from 1.x.
|
java.io.File |
QUILT_INSTALLER_VERSION_MANIFEST_LOCATION()
Path to the Quilt installer version manifest-file, as a file.
|
java.io.File |
QUILT_INSTALLER_VERSION_MANIFEST()
Quilt installer version manifest-file.
|
java.io.File |
QUILT_VERSION_MANIFEST_LOCATION()
Path to the Quilt version manifest-file, as a file.
|
java.io.File |
QUILT_VERSION_MANIFEST()
Quilt version manifest-file.
|
ApplicationProperties |
reload()
Reload serverpackcreator.properties.
|
java.io.File |
SERVERPACKCREATOR_DATABASE()
ServerPackCreator-database when running as a webservice.
|
java.io.File |
SERVERPACKCREATOR_PROPERTIES()
Properties file used by ServerPackCreator, containing the configuration for this instance of
it.
|
java.lang.String |
SERVERPACKCREATOR_VERSION()
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. |
java.io.File |
START_SCRIPT_LINUX()
Start script for server packs, used by UNIX/Linux.
|
java.io.File |
START_SCRIPT_WINDOWS()
Start script for server packs, used by Windows.
|
java.lang.String[] |
SUPPORTED_MODLOADERS()
String-array of modloaders supported by ServerPackCreator.
|
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. |
java.io.File |
USER_JVM_ARGS()
JVM args file used by Forge MC 1.17+
|
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, values@Autowired public ApplicationProperties()
public ApplicationProperties reload()
ApplicationProperties The updated instance of this object.public java.io.File SERVERPACKCREATOR_PROPERTIES()
File serverpackcreator.properties-file.public java.io.File START_SCRIPT_WINDOWS()
File start.bat-file.public java.io.File START_SCRIPT_LINUX()
File start.sh-file.public java.io.File USER_JVM_ARGS()
File user_jvm_args.txt-file.public java.util.List<java.lang.String> FALLBACK_CLIENTSIDE_MODS()
String-list of fallback clientside-only mods.public java.io.File DEFAULT_CONFIG()
File serverpackcreator.conf-file.public java.io.File OLD_CONFIG()
File creator.conf-file.public java.io.File DEFAULT_SERVER_PROPERTIES()
File server.properties-file.public java.io.File DEFAULT_SERVER_ICON()
File server-icon.png-file.public java.io.File MINECRAFT_VERSION_MANIFEST()
File minecraft-manifest.json-file.public java.io.File FORGE_VERSION_MANIFEST()
File forge-manifest.json-file.public java.io.File FABRIC_VERSION_MANIFEST()
File fabric-manifest.xml-filepublic java.io.File FABRIC_INSTALLER_VERSION_MANIFEST()
File fabric-installer-manifest.xml-file.public java.io.File QUILT_VERSION_MANIFEST()
File quilt-manifest.xml-filepublic java.io.File QUILT_INSTALLER_VERSION_MANIFEST()
File quilt-installer-manifest.xml-file.public java.io.File SERVERPACKCREATOR_DATABASE()
File serverpackcreator.db-file.public java.io.File MINECRAFT_VERSION_MANIFEST_LOCATION()
File ./work/minecraft-manifest.jsonpublic java.io.File FORGE_VERSION_MANIFEST_LOCATION()
File ./work/forge-manifest.jsonpublic java.io.File FABRIC_VERSION_MANIFEST_LOCATION()
File ./work/fabric-manifest.xmlpublic java.io.File FABRIC_INSTALLER_VERSION_MANIFEST_LOCATION()
File ./work/fabric-installer-manifest.xmlpublic java.io.File QUILT_VERSION_MANIFEST_LOCATION()
File ./work/quilt-manifest.xmlpublic java.io.File QUILT_INSTALLER_VERSION_MANIFEST_LOCATION()
File ./work/quilt-installer-manifest.xmlpublic java.lang.String SERVERPACKCREATOR_VERSION()
dev.public java.lang.String[] SUPPORTED_MODLOADERS()
String-array of modloaders supported by ServerPackCreator.public java.lang.String DIRECTORY_SERVER_FILES()
String server-files directory.public java.lang.String DIRECTORY_PLUGINS()
String plugins directory.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 getSaveLoadedConfiguration()
public int getQueueMaxDiskUsage()
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 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>