Examples of validateExuberantCtags()


Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

    @Test
    public void testIndexGeneration() throws Exception {
        System.out.println("Generating index by using the class methods");
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        if (env.validateExuberantCtags()) {
            env.setSourceRoot(repository.getSourceRoot());
            env.setDataRoot(repository.getDataRoot());
            env.setVerbose(true);
            Indexer.getInstance().prepareIndexer(env, true, true, "/c", null,
                false, false, false, null, null, new ArrayList<String>(), false);
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

    @Test
    public void testMain() throws IOException {
        System.out.println("Generate index by using command line options");
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        if (env.validateExuberantCtags()) {
            String[] argv = {"-S", "-P", "-H", "-Q", "off", "-s",
                repository.getSourceRoot(), "-d", repository.getDataRoot(), "-v"};
            Indexer.main(argv);
        } else {
            System.out.println("Skipping test. Could not find a ctags I could use in path.");
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

                r = RepositoryFactory.getRepository(ri);
                break;
            }
        }

        if (r != null && r.isWorking() && env.validateExuberantCtags()) {
            Project project = new Project();
            project.setPath("/rfe2575");
            IndexDatabase idb = new IndexDatabase(project);
            assertNotNull(idb);
            MyIndexChangeListener listener = new MyIndexChangeListener();
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        env.setSourceRoot(repository.getSourceRoot());
        env.setDataRoot(repository.getDataRoot());

        if (env.validateExuberantCtags()) {
            Project project = new Project();
            project.setPath("/bug3430");
            IndexDatabase idb = new IndexDatabase(project);
            assertNotNull(idb);
            MyIndexChangeListener listener = new MyIndexChangeListener();
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        env.setSourceRoot(repository.getSourceRoot());
        env.setDataRoot(repository.getDataRoot());

        if (env.validateExuberantCtags()) {
            Project project = new Project();
            String ppath="bug3430";
            project.setPath("/"+ppath);           
            IndexDatabase idb = new IndexDatabase(project);
            assertNotNull(idb);
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

            executor.exec(true);

            executor = new Executor(new String[]{"mkfifo", repository.getSourceRoot() + "/testBug11896/FIFO"});
            executor.exec(true);

            if (env.validateExuberantCtags()) {
                Project project = new Project();
                project.setPath("/testBug11896");
                IndexDatabase idb = new IndexDatabase(project);
                assertNotNull(idb);
                MyIndexChangeListener listener = new MyIndexChangeListener();
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty("org.opensolaris.opengrok.analysis.Ctags", "ctags"));
        env.setSourceRoot(repository.getSourceRoot());
        env.setDataRoot(repository.getDataRoot());

        if (env.validateExuberantCtags()) {
            env.setSourceRoot(repository.getSourceRoot());
            env.setDataRoot(repository.getDataRoot());
            env.setVerbose(false);
            Indexer.getInstance().prepareIndexer(env, true, true, "/c", null,
                false, false, false, null, null, new ArrayList<String>(), false);
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

    @Test
    public void testMainWithH() throws IOException {
        System.out.println("Generate index by using command line options with -H");
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        if (env.validateExuberantCtags()) {
            String[] argv = {"-S", "-H", "-s", repository.getSourceRoot(),
                "-d", repository.getDataRoot(), "-v"};
            Indexer.main(argv);
            checkNumberOfThreads();
        } else {
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

    @Test
    public void testMainWithoutH() throws IOException {
        System.out.println("Generate index by using command line options without -H");
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        env.setCtags(System.getProperty(ctagsProperty, "ctags"));
        if (env.validateExuberantCtags()) {
            String[] argv = {"-S", "-P", "-s", repository.getSourceRoot(),
                "-d", repository.getDataRoot(), "-v"};
            Indexer.main(argv);
            checkNumberOfThreads();
        } else {
View Full Code Here

Examples of org.opensolaris.opengrok.configuration.RuntimeEnvironment.validateExuberantCtags()

    }

    @BeforeClass
    public static void setUpClass() throws Exception {
        RuntimeEnvironment env = RuntimeEnvironment.getInstance();
        assertTrue("No ctags available", env.validateExuberantCtags());

        repository = new TestRepository();
        repository.create(
                IndexDatabase.class.getResourceAsStream("source.zip"));
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.