Package org.rioproject.system.capability

Examples of org.rioproject.system.capability.PlatformCapability.define()


                            /*if (!OperatingSystemType.isWindows()) {
                                name = fileName.substring(3, index);
                            } else {*/
                            name = fileName.substring(0, index);
                            //}
                            nLib.define(NativeLibrarySupport.NAME, name);
                            nLib.define(NativeLibrarySupport.FILENAME, fileName);
                            nLib.setPath(dir.getCanonicalPath());
                            platforms.add(nLib);
                        } else {
                            logger.warn("Illegal Shared Library name="+fileName);
View Full Code Here


                                name = fileName.substring(3, index);
                            } else {*/
                            name = fileName.substring(0, index);
                            //}
                            nLib.define(NativeLibrarySupport.NAME, name);
                            nLib.define(NativeLibrarySupport.FILENAME, fileName);
                            nLib.setPath(dir.getCanonicalPath());
                            platforms.add(nLib);
                        } else {
                            logger.warn("Illegal Shared Library name="+fileName);
                        }
View Full Code Here

        String cwd = System.getProperty("user.dir");
        File target = new File(cwd, "target");
        File platform = new File(target, "platform-file");
        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);
View Full Code Here

        File target = new File(cwd, "target");
        File platform = new File(target, "platform-file");
        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();
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.