mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
improve conversion
This commit is contained in:
@@ -2,6 +2,7 @@ package org.diylc;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FilenameFilter;
|
||||
import java.net.URL;
|
||||
import java.util.Properties;
|
||||
|
||||
@@ -93,5 +94,17 @@ public class DIYLCStarter {
|
||||
} catch (Exception e) {
|
||||
LOG.error("Could not read config.properties file", e);
|
||||
}
|
||||
|
||||
// batch convert old format to new
|
||||
// File dir = new File("c:\\Users\\bancika\\Downloads\\layouts_v1\\MarkM");
|
||||
// File[] matchingFiles = dir.listFiles(new FilenameFilter() {
|
||||
// public boolean accept(File dir, String name) {
|
||||
// return true;
|
||||
// }
|
||||
// });
|
||||
// for (File file : matchingFiles) {
|
||||
// mainFrame.getPresenter().loadProjectFromFile(file.getAbsolutePath());
|
||||
// mainFrame.getPresenter().saveProjectToFile(file.getParentFile().getAbsolutePath() + "\\converted\\" + file.getName(), false);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user