新增公司打包工具

This commit is contained in:
yutou
2020-10-13 14:29:52 +08:00
parent 862c17c90f
commit c8a82d2ba8
14 changed files with 606 additions and 44 deletions

View File

@@ -365,4 +365,21 @@ public class Tools {
System.out.println(System.getProperties().getProperty("os.name"));
return System.getProperties().getProperty("os.name").toLowerCase().contains("windows");
}
public static String readFile(File manifest) {
String tmp;
StringBuilder str = new StringBuilder();
try {
BufferedReader reader = new BufferedReader( new InputStreamReader(new FileInputStream(manifest), StandardCharsets.UTF_8));
while ((tmp = reader.readLine()) != null) {
str.append(tmp);
}
reader.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println(str);
}
return str.toString();
}
}