Package org.rioproject.impl.system.capability

Examples of org.rioproject.impl.system.capability.PlatformCapabilityWriter


                        if(configFileLocation==null) {
                            logger.warn("Unable to write PlatformConfiguration [{}] configuration, " +
                                        "unknown platform configuration directory. The RIO_HOME environment " +
                                        "variable must be set", pCap.getName());
                        } else {
                            PlatformCapabilityWriter pCapWriter = new PlatformCapabilityWriter();
                            String fileName = pCapWriter.write(pCap, configFileLocation);
                            pCap.setConfigurationFile(fileName);
                            logger.info("Wrote PlatformCapability [{}] configuration to {}", pCap.getName(), fileName);
                        }
                    }
                    logger.trace("Have PlatformCapability : {} load any system resources", pCap.getClass().getName());
View Full Code Here


        platform.mkdirs();
        PlatformCapability pCap = new PlatformCapability();
        pCap.define(PlatformCapability.NAME, "Foo");
        pCap.define(PlatformCapability.VERSION, "1.0");
        pCap.setClassPath(new String[]{cwd+File.separator+"target"+File.separator+"classes"+File.separator});
        PlatformCapabilityWriter writer = new PlatformCapabilityWriter();
        String fileName = writer.write(pCap, platform.getPath());
        Assert.assertNotNull(fileName);
        PlatformLoader platformLoader = new PlatformLoader();
        PlatformCapabilityConfig[] pCapConfigs = platformLoader.parsePlatform(platform.getPath());
        Assert.assertNotNull(pCapConfigs);
        Assert.assertEquals(1, pCapConfigs.length);
View Full Code Here

TOP

Related Classes of org.rioproject.impl.system.capability.PlatformCapabilityWriter

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.