Prevents jars from being built as part of jar downloading
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good

This commit is contained in:
2021-08-03 10:16:43 +02:00
parent e4be75b770
commit 33795a90a9
3 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ public class JarDownloaderTest {
}
@Test
public void craftbukkitDownloadTest() throws ConfigurationException, IOException {
public void craftBukkitDownloadTest() throws ConfigurationException, IOException {
singleDownloadTest(ServerTypeHandler.getByName("Bukkit"));
}
@ -96,6 +96,10 @@ public class JarDownloaderTest {
private void singleDownloadTest(ServerType serverType) throws IOException {
assertNotNull(serverType);
for (String serverVersion : serverType.getVersions()) {
if ((serverType.getName().equals("Spigot") || serverType.getName().equals("Bukkit"))
&& serverVersion.equals("Latest")) {
continue;
}
System.out.println("Downloading " + serverType.getName() + serverVersion + ".jar");
serverType.downloadJar(targetDirectory, serverVersion);
assertTrue(new File(targetDirectory + serverType.getName() + serverVersion + ".jar").exists());