- cleanup logger use in ProjectExtensionManager

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10096 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 6dacfd56b3
commit f854248495
  1. 12
      sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java

@ -447,7 +447,7 @@ public class ProjectExtensionManager {
//XXX: deleting old (beta) files here
FileObject fo = projectRoot.getFileObject(entry.getName());
if (fo != null && entry.getSize() != -1 && entry.getSize() == fo.getSize()) {
logger.log(Level.INFO, "Deleting old folder " + fo.getNameExt());
logger.log(Level.INFO, "Deleting old folder {0}", fo.getNameExt());
fo.delete();
}
FileUtil.createFolder(projectRoot, fileName);
@ -455,7 +455,7 @@ public class ProjectExtensionManager {
//XXX: deleting old (beta) files here
FileObject fo = projectRoot.getFileObject(entry.getName());
if (fo != null && !fo.equals(projectRoot)) {
logger.log(Level.INFO, "Deleting old file " + fo.getNameExt());
logger.log(Level.INFO, "Deleting old file {0}", fo.getNameExt());
fo.delete();
}
fo = projectRoot.getFileObject(fileName);
@ -463,7 +463,7 @@ public class ProjectExtensionManager {
fo = FileUtil.createData(projectRoot, fileName);
writeFile(str, fo);
} else {
logger.log(Level.INFO, "Not overwriting existing file " + fo.getNameExt());
logger.log(Level.INFO, "Not overwriting existing file {0}", fo.getNameExt());
}
}
}
@ -485,7 +485,7 @@ public class ProjectExtensionManager {
//XXX: deleting old (beta) files here
FileObject old = projectRoot.getFileObject(entry.getName());
if (old != null && !old.equals(projectRoot)) {
logger.log(Level.INFO, "Deleting old file " + old.getNameExt());
logger.log(Level.INFO, "Deleting old file {0}", old.getNameExt());
if (entry.getSize() != -1 && entry.getSize() == old.getSize()) {
old.delete();
}
@ -494,11 +494,11 @@ public class ProjectExtensionManager {
FileObject obj = projectRoot.getFileObject(fileName);
if (obj != null && !obj.equals(projectRoot) && !obj.isFolder()) {
if (entry.getSize() != -1 && entry.getSize() == obj.getSize()) {
logger.log(Level.INFO, "Deleting file " + obj.getNameExt());
logger.log(Level.INFO, "Deleting file {0}", obj.getNameExt());
obj.delete();
} else {
kept = true;
logger.log(Level.INFO, "Keeping file " + obj.getNameExt());
logger.log(Level.INFO, "Keeping file {0}", obj.getNameExt());
}
}
}

Loading…
Cancel
Save