Allow bash scripts to work within a distributation folder.

- Fixed NullPointerException when module name not found.

Change-Id: I8f9b29f047ff90995d4cccc6b4b518bfbf026570
This commit is contained in:
Chiao Cheng
2012-09-07 13:35:41 -07:00
parent a1947074e6
commit d7a603c968
4 changed files with 43 additions and 17 deletions

View File

@@ -55,6 +55,11 @@ public class IntellijProject {
// First pass, find all dependencies and cache them.
Module module = cache.getAndCache(moduleName);
if (module == null) {
logger.info("Module '" + moduleName + "' not found." +
" Module names are case senstive.");
return;
}
projectIdeaDir = new File(module.getDir(), ".idea");
projectIdeaDir.mkdir();
copyTemplates();