public boolean getAllPossibleValues(final List<Completion> completions, final Class<?> requiredType, final String existingData, final String optionContext, final MethodTarget target) { for (final Path candidate : Path.values()) { if ("".equals(existingData) || candidate.name().startsWith(existingData)) { completions.add(new Completion(candidate.name())); } } return true; }
public LogicalPath getPath(final String moduleName, final Path path) { Validate.notNull(moduleName, "ModuleName required"); final PhysicalPath physicalPath = pomManagementService.getPomFromModuleName(moduleName).getPhysicalPath(path); Validate.notNull(physicalPath, "Physical path for '%s' not found", path.name()); return physicalPath.getLogicalPath(); }
public LogicalPath getFocusedPath(final Path path) { final PhysicalPath physicalPath = pomManagementService.getFocusedModule().getPhysicalPath(path); Validate.notNull(physicalPath, "Physical path for '%s' not found", path.name()); return physicalPath.getLogicalPath(); }
IOUtils.closeQuietly(os); logger.info("Created ".concat(Path.SRC_MAIN_RESOURCES.name()) .concat("/").concat(aliasCerFileName));
fileManager.exists(propertiesAbsolutePath), "Missing certificated file '" .concat(Path.SRC_MAIN_RESOURCES.name()).concat("/") .concat(propertiesPath).concat("' for ") .concat(governorPhysicalTypeMetadata.getId())); fileManager.exists(certificateAbsolutePath), "Missing certificated file '" .concat(Path.SRC_MAIN_RESOURCES.name()).concat("/") .concat(certificatePath).concat("' for ") .concat(governorPhysicalTypeMetadata.getId()));