mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Move the config creation files to their own shaded jar so they can be run from the command line without an IDE or messy classpath specification.
This commit is contained in:
@@ -116,6 +116,10 @@ public abstract class ResourceLoader {
|
||||
public static void writeFile(String _sFile, byte[] _btData) {
|
||||
FileOutputStream os = null;
|
||||
try {
|
||||
if (File.separator.equals("/"))
|
||||
_sFile = _sFile.replace("\\", File.separator);
|
||||
else
|
||||
_sFile = _sFile.replace("/", File.separator);
|
||||
int idx = _sFile.lastIndexOf(File.separator);
|
||||
new File((idx > 0)?_sFile.substring(0, idx):_sFile).mkdirs();
|
||||
os = new FileOutputStream(_sFile, false);
|
||||
|
||||
@@ -7,6 +7,6 @@ public abstract class LanternFiles {
|
||||
public static boolean runOpsTasks;
|
||||
|
||||
static {
|
||||
ProdConsoleFiles.init();
|
||||
ProdFiles.init();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user