String regex = componentIdRootRegExp(compId, DELEGATE_ROOT_REL_SUFFIX_REGEX); try { replacement = FileUtil.computeRelativePath(file.getParentFile(), new File(compRootPath)); if (replacement != null) FileUtil.replaceStringInFile(file, regex, replacement);
String replacement = FileUtil.computeRelativePath(file.getParentFile(), new File(compRootPath)); FileUtil.replaceStringInFile(file, regExp, replacement);