private String prepareHostForRoute(String routeDomainPostfix, String name) { String ret = FileUtil.stripPostfix(name,"-service"); ret = FileUtil.stripPostfix(ret,"."); ret += "."; ret += FileUtil.stripPrefix(routeDomainPostfix, "."); return ret; }
private File resolveRemoteResources() { if (this.resources != null) { final List<String> remotes = this.resources.getRemotes(); if (remotes != null && !remotes.isEmpty()) { final File tempDirectory = FileUtil.createTempDirectory(); downloadRemotes(tempDirectory, remotes); return tempDirectory; } } return null; }
Object fileLocation = file; if (basedir != null) { String path = FileUtil.getRelativePath(basedir, file).getPath(); if (path != null) { fileLocation = FileUtil.stripPrefix(path, "/");
String urlPrefix = getConfig(Config.urlPrefix); if (StringUtils.isBlank(urlPrefix)) { String relativePath = FileUtil.getRelativePath(rootProjectFolder, iconSourceFile).toString(); String relativeParentPath = FileUtil.getRelativePath(rootProjectFolder, getContext().getProjectDirectory()).toString(); if (getContext() instanceof MavenEnricherContext) { MavenEnricherContext mavenEnricherContext = (MavenEnricherContext) getContext();
String host = ""; if (StringUtils.isNotBlank(routeDomainPostfix)) { host = serviceName + "." + namespace + "." + FileUtil.stripPrefix(routeDomainPostfix, ".");
name = FileUtil.stripPostfix(name, ".yml") + YAML_EXTENSION;