промежуточный. хранение инфы о конфигах, группах и тестах пакета.пока отлаживается.
This commit is contained in:
@@ -1280,11 +1280,36 @@ public class Utils {
|
||||
}
|
||||
public static long getNewestFileDate(File dir){
|
||||
Vector<Long> dates = new Vector<>();
|
||||
dates.add(dir.lastModified());
|
||||
get_newest_file_date_r(dir, dates);
|
||||
Collections.sort(dates);
|
||||
if (dates.isEmpty()) {
|
||||
dates.add(dir.lastModified());
|
||||
}
|
||||
System.out.println(new Date(dates.lastElement()));
|
||||
return dates.firstElement();
|
||||
}
|
||||
//------------------------------------------------------->>>
|
||||
public static Vector<Integer> unpack(String packed){
|
||||
Vector<Integer> ids = new Vector<>();
|
||||
String[] data = packed.split("\n");
|
||||
if (data.length > 0) {
|
||||
for (String s: data) {
|
||||
if (!s.isEmpty())
|
||||
ids.add(Integer.parseInt(s));
|
||||
}
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
public static Vector<String> unpack_s(String packed){
|
||||
Vector<String> ids = new Vector<>();
|
||||
String[] data = packed.split("\n");
|
||||
if (data.length > 0) {
|
||||
for (String s: data) {
|
||||
if (!s.isEmpty())
|
||||
ids.add(s);
|
||||
}
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user