Package com.redhat.ceylon.common

Examples of com.redhat.ceylon.common.ModuleDescriptorReader


        // Launcher+CeylonClassLoader that dynamically find and load the necessary
        // jar and car files. But when running from within Eclipse it doesn't know
        // where to look, so we need to give it a hint
        System.setProperty("ceylon.home", "../ceylon-dist/dist");
       
        ModuleDescriptorReader r = new ModuleDescriptorReader("com.redhat.ceylon.ant.modules.a", new File("test/src"));
        Assert.assertEquals("1.0", r.getModuleVersion());
        Assert.assertEquals("com.redhat.ceylon.ant.modules.a", r.getModuleName());
        Assert.assertEquals("http://example.com/license", r.getModuleLicense());
        List<String> authors = r.getModuleAuthors();
        Assert.assertEquals(2, authors.size());
        Assert.assertEquals("Tom", authors.get(0));
        Assert.assertEquals("and Tom", authors.get(1));
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.common.ModuleDescriptorReader

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.