public static String getResourceAsString()

in support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateSupport.java [29:37]


    public static String getResourceAsString(String resource) throws IOException {
        try (InputStream is = GenerateSupport.class.getResourceAsStream(resource)) {
            if (is == null) {
                throw new IllegalStateException("Unable to find catalog-license.txt");
            }

            return IOUtils.toString(is, StandardCharsets.UTF_8);
        }
    }