public final class SpigotBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
buildToolsUrl |
private static Process |
exec |
private static String |
versionsUrl |
| Constructor and Description |
|---|
SpigotBuilder() |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
buildSpigot(String version,
Path outputPath)
Build the spigot or copy if exists
|
(package private) static void |
deleteBuildFolder(File buildFolder)
Delete the build folder
|
static Process |
getExec() |
private static LinkedList<String> |
loadVersions() |
private static boolean |
runBuildTools(String version,
File buildFolder,
File buildTools,
Path outputPath)
Run the build tools of the jar not exists
|
static boolean |
start(jline.console.ConsoleReader reader,
Path outputPath)
Start the process to choice the Spigot version And build after choice
|
private static final String buildToolsUrl
private static final String versionsUrl
private static Process exec
public static boolean start(jline.console.ConsoleReader reader,
Path outputPath)
reader - to read the answerprivate static LinkedList<String> loadVersions()
private static boolean buildSpigot(String version, Path outputPath)
version - the version of spigotprivate static boolean runBuildTools(String version, File buildFolder, File buildTools, Path outputPath)
version - the version of spigotbuildFolder - the folder in there are buildbuildTools - the path of the build toolsstatic void deleteBuildFolder(File buildFolder) throws IOException
buildFolder - foldr pathIOException - throws if tree throwspublic static Process getExec()
Copyright © 2020. All rights reserved.