Package com.dtolabs.rundeck.core.common

Examples of com.dtolabs.rundeck.core.common.FrameworkProject


        } catch (IOException e) {
            main.error(e.getMessage());
            throw new ProjectToolException("failed creating project structure", e);
        }
        main.verbose("initializing project: " + project);
        final FrameworkProject d = framework.getFrameworkProjectMgr().createFrameworkProject(
            project, properties);
        if (!d.getBaseDir().exists() && !d.getBaseDir().mkdir()) {
            throw new ProjectToolException("Failed to create project dir: " + d.getBaseDir());
        }
    }
View Full Code Here


    private void initArgs(BaseActionArgs args) {
        if (null != args.getProject()) {
            project = args.getProject();
        } else if (null == args.getProject() &&
                framework.getFrameworkProjectMgr().listFrameworkProjects().size() == 1) {
            final FrameworkProject d = (FrameworkProject) framework.getFrameworkProjectMgr().listFrameworkProjects().iterator().next();
            project = d.getName();
            main.log("defaulting to project: " + d.getName());
        } else {
            throw new InvalidArgumentsException("-p option not specified");
        }
        verbose = args.isVerbose();
    }
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.common.FrameworkProject

Copyright © 2018 www.massapicom. 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.