duplicated the class DevToolSettings

... to make it available to the test classes. The tests actually do not need it. However, it is used in the test data generator.

In the future, we should move the devtools to the test source folder and removed the extra devtools source folder to prevent stuff like this.
This commit is contained in:
Stefan Dollase 2016-01-25 02:15:43 +01:00
parent da26a17f3b
commit f307702b09
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,16 @@
package amidst.devtools;
public enum DevToolsSettings {
INSTANCE;
private String minecraftVersionsDirectory = "/home/stefan/.minecraft/amidst-all-client-versions/";
private String minecraftLibrariesDirectory = "/home/stefan/.minecraft/libraries/";
public String getMinecraftVersionsDirectory() {
return minecraftVersionsDirectory;
}
public String getMinecraftLibrariesDirectory() {
return minecraftLibrariesDirectory;
}
}

View File

@ -5,7 +5,6 @@ import java.io.IOException;
import java.util.LinkedList;
import java.util.List;
import amidst.devtools.settings.DevToolsSettings;
import amidst.mojangapi.file.FilenameFactory;
import amidst.mojangapi.file.MojangApiParsingException;
import amidst.mojangapi.file.directory.DotMinecraftDirectory;