public static String getResourceFilePath()

in dubbo-error-code-inspector/src/main/java/org/apache/dubbo/errorcode/util/FileUtils.java [133:143]


    public static String getResourceFilePath(String path) {
        String resourceFilePath = FileUtils.class.getClassLoader().getResource(path).toString();

        if (WINDOWS_PATH_PATTERN.matcher(resourceFilePath).matches()) {
            resourceFilePath = resourceFilePath.replace("file:/", "");
        } else {
            resourceFilePath = resourceFilePath.replace("file:", "");
        }

        return resourceFilePath;
    }