Package com.volantis.mcs.runtime.configuration.project

Examples of com.volantis.mcs.runtime.configuration.project.RuntimeProjectConfiguration



            RuntimeProject fallbackProject = null;
            String fallbackProjectName = configuration.getFallbackProjectName();
            if (fallbackProjectName != null) {
                RuntimeProjectConfiguration fallbackConfiguration =
                        (RuntimeProjectConfiguration) projectConfigurations.get(fallbackProjectName);
                if (fallbackConfiguration == null) {
                    throw new IllegalStateException("Named configuration '" +
                            configuration.getName() +
                            "' extends unknown configuration '" +
View Full Code Here


            Map namedProjects = new HashMap();

            for (Iterator i = projectConfigurations.values().iterator();
                 i.hasNext();) {
                RuntimeProjectConfiguration configuration =
                        (RuntimeProjectConfiguration) i.next();

                List dependencyPath = Collections.EMPTY_LIST;
                createProject(configuration, dependencyPath, namedProjects);
            }
View Full Code Here

    }

    // Javadoc inherited.
    protected RuntimeProjectConfiguration loadConfiguration(Path projectFile) {

        RuntimeProjectConfiguration configuration = null;

        // Connect to the resource server and get the response.
        try {
            String urlAsString = projectFile.toExternalForm();
            HttpMethod method = connectAndExecute(urlAsString);
View Full Code Here

                }

                // The project could not be found so try and load it if
                // requested.
                if (loadProject) {
                    RuntimeProjectConfiguration configuration = null;
                    try {
                        configuration = projectLoader.loadProjectConfiguration(
                                policyURLAsString, optimizer);
                    } catch (IOException e) {
                        // load failed, keep configuration null.
View Full Code Here

        };

        URL url = getClass().getResource("a/b/blah.txt");
        String urlAsString = url.toExternalForm();

        RuntimeProjectConfiguration configuration =
                loader.loadProjectConfiguration(urlAsString, optimizerMock);
        assertNotNull("Should find a configuration", configuration);
    }
View Full Code Here

        };

        URL url = getClass().getResource("a/b/blah.txt");
        String urlAsString = url.toExternalForm();

        RuntimeProjectConfiguration configuration =
                loader.loadProjectConfiguration(urlAsString, optimizerMock);
        assertNull("Should not find a configuration", configuration);
    }
View Full Code Here

    public void testBuildProject() throws Exception {

        ProjectConfigurationReader reader = new ProjectConfigurationReader();
        URL url = getClassRelativeResourceURL("a/mcs-project.xml");
        InputStream stream = url.openStream();
        RuntimeProjectConfiguration configuration;
        try {
            configuration = reader.readProject(stream, url.toExternalForm());
        } finally {
            stream.close();
        }
View Full Code Here

    private RuntimeProjectMock globalProjectMock;

    protected void setUp() throws Exception {
        super.setUp();

        configuration = new RuntimeProjectConfiguration();

        // =====================================================================
        //   Create Mocks
        // =====================================================================
View Full Code Here

        configuratorMock.fuzzy
                .buildProject(configuration, null, mockFactory.expectsAny())
                .returns(projectMock);

        RuntimeProjectConfiguration configuration2 = new RuntimeProjectConfiguration();
        projectLoaderMock.expects
                .loadProjectConfiguration("http://host/fred/image.mimg",
                        optimizer)
                .returns(configuration2);
View Full Code Here

        ProjectLoader loader = createLoader();

        String urlAsString =
                getClassRelativeResourceURLAsString("a/b/blah.txt");

        RuntimeProjectConfiguration configuration =
                loader.loadProjectConfiguration(urlAsString, optimizer);
        assertNotNull("Should find a configuration", configuration);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.project.RuntimeProjectConfiguration

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.