private void pullDependencies(String modName) { log.info("Attempting to pull in dependencies for module " + modName); createPM().pullInDependencies(modName, createLoggingHandler("pulling in dependencies", unblockHandler())); block(); }
/** * Pull in all the dependencies (the 'includes' and the 'deploys' fields in mod.json) and copy them into an internal mods directory in the module. This allows a self contained module to be created. * * @param moduleName The name of the module * @return Promise of pull */ @Override public Promise<Void> pullInDependencies(String moduleName) { final Deferred<Void> d = when.defer(); manager.pullInDependencies(moduleName, result -> { if (result.succeeded()) { d.resolve(result.result()); } else { d.reject(result.cause()); } }); return d.getPromise(); }