Examples of NoSuchModuleException


Examples of com.redhat.ceylon.common.ModuleDescriptorReader.NoSuchModuleException

        ModuleManager moduleManager = pus.getModuleManager();
        if(Module.DEFAULT_MODULE_NAME.equals(moduleName)){
            // visit every folder and skip modules
            boolean exists = findDefaultModuleSource(srcDir);
            if(!exists)
                throw new NoSuchModuleException("No source found for default module");
        }else{
            visitModule(vfs, pus, name, srcDir, vfs.getFromFile(srcDir), moduleManager);
        }
        for (PhasedUnit pu : pus.getPhasedUnits()) {
            pu.visitSrcModulePhase();
View Full Code Here

Examples of com.redhat.ceylon.common.ModuleDescriptorReader.NoSuchModuleException

            File child = new File(srcDir, part);
            if(child.exists() && child.isDirectory()){
                moduleManager.push(part);
                srcDir = child;
            }else{
                throw new NoSuchModuleException("Failed to find module name part "+part+" of "+name+" in "+srcDir);
            }
        }
        File moduleFile = new File(srcDir, ModuleManager.MODULE_FILE);
        if(moduleFile.exists()){
            moduleManager.visitModuleFile();
            pus.parseUnit(vfs.getFromFile(moduleFile), virtualSourceDirectory);
        }else{
            throw new NoSuchModuleException("No module file in "+srcDir);
        }
    }
View Full Code Here

Examples of com.redhat.ceylon.common.ModuleDescriptorReader.NoSuchModuleException

            constructor.setAccessible(true);
            this.instance = constructor.newInstance(moduleName, srcDir);
        } catch (InvocationTargetException e) {
            Throwable cause = e.getCause();
            if(cause != null && cause.getClass().getName().equals("com.redhat.ceylon.common.ModuleDescriptorReader$NoSuchModuleException"))
                throw new NoSuchModuleException(cause.getMessage());
            throw new RuntimeException(e);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.springframework.xd.dirt.module.NoSuchModuleException

      ModuleDefinition def = moduleRegistry.findDefinition(moduleName, type);
      if (def != null) {
        return type;
      }
    }
    throw new NoSuchModuleException(moduleName, candidates);
  }
View Full Code Here

Examples of org.springframework.xd.dirt.module.NoSuchModuleException

  @ResponseBody
  public DetailedModuleDefinitionResource info(@PathVariable("type") ModuleType type,
      @PathVariable("name") String name) {
    ModuleDefinition def = moduleDefinitionService.findDefinition(name, type);
    if (def == null) {
      throw new NoSuchModuleException(name, type);
    }
    return detailedAssembler.toResource(def);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.