String asRepoInitString()

in src/main/java/org/apache/sling/repoinit/parser/operations/OperationWithPathOptions.java [40:48]


    String asRepoInitString(@NotNull String type, @NotNull String name) {
        String path = wpopt.path;
        if (path == null || path.isEmpty()) {
            return String.format("create %s %s%n", type, name);
        } else {
            String forced = (wpopt.forcedPath) ? "forced " : "";
            return String.format("create %s %s with %spath %s%n", type, name, forced, path);
        }
    }