Package com.redhat.ceylon.ceylondoc

Examples of com.redhat.ceylon.ceylondoc.CeylonDocTool


                "ceylon.unicode"
        };
       
        compileSdkJavaFiles();

        CeylonDocTool tool = tool(Arrays.asList(new File("../ceylon-sdk/source")),
                Collections.<File>emptyList(),
                Arrays.asList(fullModuleNames), true, false);
        tool.setIncludeNonShared(false);
        tool.setIncludeSourceCode(true);
        tool.run();
        Map<String,String> nameToVersion = new HashMap<String,String>();
        for(Module module : tool.getDocumentedModules()){
            nameToVersion.put(module.getNameAsString(), module.getVersion());
        }
       
        for(String moduleName : fullModuleNames){
            Module module = makeModule(moduleName, nameToVersion.get(moduleName));
View Full Code Here


        String pathname = "test/ceylondoc";
        String moduleName = "com.redhat.ceylon.ceylondoc.test.modules.bug1622";
       
        compile(pathname, dir.getPath(), moduleName);

        CeylonDocTool tool =
                tool(Arrays.asList(new File(pathname)),
                        Arrays.asList(new File("doc")),
                        Arrays.asList(moduleName),
                        true, false);
        tool.setIncludeNonShared(true);
        tool.run();
    }
View Full Code Here

   
    @Test
    public void testDoc()  throws Exception {
        ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
        Assert.assertNotNull(model);
        CeylonDocTool tool = pluginFactory.bindArguments(model,
                options("--src=test/src", "com.redhat.ceylon.tools.test.ceylon"));
        tool.run();
    }
View Full Code Here

   
    @Test
    public void testDocMultiple()  throws Exception {
        ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
        Assert.assertNotNull(model);
        CeylonDocTool tool = pluginFactory.bindArguments(model,
                options("--src=test/src", "com.redhat.ceylon.tools.test.multiple.*"));
        tool.run();
    }
View Full Code Here

   
    @Test
    public void testDocNonShared()  throws Exception {
        ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
        Assert.assertNotNull(model);
        CeylonDocTool tool = pluginFactory.bindArguments(model,
                options("--non-shared", "--src=test/src", "com.redhat.ceylon.tools.test.ceylon"));
        tool.run();
    }
View Full Code Here

   
    @Test
    public void testDocSourceCode()  throws Exception {
        ToolModel<CeylonDocTool> model = pluginLoader.loadToolModel("doc");
        Assert.assertNotNull(model);
        CeylonDocTool tool = pluginFactory.bindArguments(model,
                options("--source-code", "--src=test/src", "com.redhat.ceylon.tools.test.ceylon"));
        tool.run();
    }
View Full Code Here

TOP

Related Classes of com.redhat.ceylon.ceylondoc.CeylonDocTool

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.