Package com.volantis.mcs.project

Examples of com.volantis.mcs.project.ProjectFactory


//
//        return JDBCRepository.createRepository (properties);
    }

    private Project createJDBCProject(LocalRepository repository) {
        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(args.getValue(PROJECT));
        return factory.createProject(configuration);
    }
View Full Code Here


                    exception("unexpected-exception", re);
                }
                throw re;
            }

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

    private Project createDestinationXMLProject(LocalRepository repository) {

        String dirName = args.getValue(DESTINATION_DIR);
        File dir = new File(dirName);

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setDeleteProjectContents(args.contains(REPLACE));
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

     * @return the created project.
     */
    private Project createProject(
            LocalRepository destinationRepository, String policyRoot) {

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(destinationRepository);
        configuration.setPolicyLocation(new File(policyRoot).getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.project.ProjectFactory

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.