Source reformat

This commit is contained in:
Anuken
2019-04-08 09:03:18 -04:00
parent 4a96b9bb00
commit b40beb0d1d
331 changed files with 2822 additions and 3274 deletions

View File

@@ -7,15 +7,10 @@ import io.anuke.arc.util.Log;
import io.anuke.arc.util.Strings;
import io.anuke.arc.util.io.PropertiesUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.io.*;
import java.nio.file.*;
public class BundleLauncher {
public class BundleLauncher{
public static void main(String[] args) throws Exception{
File file = new File("bundle.properties");
@@ -24,8 +19,9 @@ public class BundleLauncher {
Array<String> removals = new Array<>();
Files.walk(Paths.get("")).forEach(child -> {
try {
if (child.getFileName().toString().equals("bundle.properties") || Files.isDirectory(child) || child.toString().contains("output")) return;
try{
if(child.getFileName().toString().equals("bundle.properties") || Files.isDirectory(child) || child.toString().contains("output"))
return;
Log.info("Parsing bundle: {0}", child);
@@ -49,7 +45,7 @@ public class BundleLauncher {
for(String key : base.orderedKeys()){
if(!other.containsKey(key) || other.get(key).trim().isEmpty()){
other.put(key, base.get(key));
added ++;
added++;
Log.info("&lc- Adding missing key '{0}'...", key);
}
}
@@ -70,7 +66,7 @@ public class BundleLauncher {
Files.write(child, result.toString().getBytes(Strings.utf8));
}catch (IOException e){
}catch(IOException e){
throw new RuntimeException(e);
}
});