show warning when trying to import scripts to AS3 file

This commit is contained in:
honfika@gmail.com
2015-06-24 19:28:22 +02:00
parent 7b0a5cfa1b
commit 364046fda0
4 changed files with 18 additions and 4 deletions

View File

@@ -38,13 +38,14 @@ public class ScriptImporter {
private static final Logger logger = Logger.getLogger(ScriptImporter.class.getName());
public void importScripts(String scriptsFolder, Map<String, ASMSource> asms) {
public int importScripts(String scriptsFolder, Map<String, ASMSource> asms) {
if (!scriptsFolder.endsWith(File.separator)) {
scriptsFolder += File.separator;
}
Map<String, List<String>> existingNamesMap = new HashMap<>();
int importCount = 0;
for (String key : asms.keySet()) {
ASMSource asm = asms.get(key);
String currentOutDir = scriptsFolder + key + File.separator;
@@ -81,7 +82,10 @@ public class ScriptImporter {
}
asm.setModified();
importCount++;
}
}
return importCount;
}
}