Package org.sonatype.gshell.command

Examples of org.sonatype.gshell.command.IO.error()


        request.setOutputDirectory(outputDirectory.getAbsolutePath());

        if (archetypeId != null) {
            String[] items = archetypeId.split(":", 3);
            if (items.length != 3) {
                io.error("Invalid archetype id: {}", archetypeId); // TODO: i18n
                return Result.FAILURE;
            }

            request.setArchetypeGroupId(items[0])
                .setArchetypeArtifactId(items[1])
View Full Code Here


                io.println("Source: {}", perms.getLoggedInUserSource()); // TODO: i18n

                // TODO: Add more details
            }
            else {
                io.error("Authentication failed"); // TODO: i18n
                return Result.FAILURE;
            }
        }

        // Try to fetch something before we bind into context
View Full Code Here

        if (version != null) {
            params.putSingle("v", version);
        }

        if (params.isEmpty()) {
            io.error("Missing search criteria");
            return Result.FAILURE;
        }

        SearchResponse response = client.ext(BasicClient.class).search(params);
View Full Code Here

            File b = new File(target.getParentFile(), target.getName() + "." + backupString);

            log.debug("Backing up old settings to: {}", b.getAbsolutePath());

            if (!target.renameTo(b)) {
                io.error("Cannot rename existing settings to backup file.\nExisting file: {}\nBackup file: {}",
                    target.getAbsolutePath(), b.getAbsolutePath());
                return Result.FAILURE;
            }

            log.info("Existing settings backed up to: {}", b.getAbsolutePath());
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.