Examples of ConsoleFile


Examples of org.apache.jackrabbit.vault.util.console.ConsoleFile

            throws Exception {
        String jcrPath = (String) cl.getValue(argJcrPath);
        if (jcrPath == null) {
            jcrPath = "/";
        }
        ConsoleFile wo = ctx.getFile(jcrPath, true);
        if (wo instanceof RepositoryCFile) {
            Node node = (Node) wo.unwrap();
            try {
                node.save();
                System.out.println("Modifications persisted.");
            } catch (RepositoryException e) {
                throw new ExecutionException("Error while saving: " + e);
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.console.ConsoleFile

        String path = (String) cl.getValue(argPath);
        int depth = Integer.MAX_VALUE;
        if (cl.hasOption(optRecursive)) {
            depth = ((Long) cl.getValue(optRecursive)).intValue();
        }
        ConsoleFile file = ctx.getFile(path, true);
        tree(file, depth, "");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.