copyFiles

fun copyFiles(modpackDir: String, inclusions: ArrayList<InclusionSpecification>, clientMods: List<String>, whitelist: List<String>, minecraftVersion: String, destination: String, modloader: String, overwrite: Boolean): List<File>

Copies all specified directories and mods, excluding clientside-only mods, from the modpack directory into the server pack directory. If a source/file;destination/file -combination is provided, the specified source-file is copied to the specified destination-file. One of the reasons as to why it is recommended to run a given ConfigurationModel through the ConfigurationHandler first, is because the ConfigurationHandler will resolve links to their files first before then correcting the given ConfigurationModel.

Author

Griefed

Parameters

modpackDir

Files and directories are copied into the server_pack directory inside the modpack directory.

inclusions

All directories and files therein to copy to the server pack.

clientMods

List of clientside-only mods to exclude from the server pack.

minecraftVersion

The Minecraft version the modpack uses.

destination

The destination where the files should be copied to.

modloader

The modloader used for mod sideness detection.