Searched refs:env (Results 1 - 25 of 48) sorted by relevance

12

/opengrok/test/org/opensolaris/opengrok/configuration/messages/
H A DAbortMessageTest.java33 RuntimeEnvironment env; field in class:AbortMessageTest
37 env = RuntimeEnvironment.getInstance();
38 env.removeAllMessages();
43 env.removeAllMessages();
50 Assert.assertEquals(0, env.getMessagesInTheSystem());
51 m.apply(env);
52 Assert.assertEquals(0, env.getMessagesInTheSystem());
60 Assert.assertEquals(0, env.getMessagesInTheSystem());
61 m.apply(env);
62 Assert.assertEquals(0, env
[all...]
H A DNormalMessageTest.java36 RuntimeEnvironment env; field in class:NormalMessageTest
44 env = RuntimeEnvironment.getInstance();
45 env.removeAllMessages();
50 env.removeAllMessages();
57 Assert.assertEquals(0, env.getMessagesInTheSystem());
58 m.apply(env);
59 Assert.assertEquals(0, env.getMessagesInTheSystem());
65 Assert.assertEquals(0, env.getMessagesInTheSystem());
66 m.apply(env);
67 Assert.assertEquals(1, env
[all...]
H A DExpirationNormalMessageTest.java24 RuntimeEnvironment env; field in class:ExpirationNormalMessageTest
39 env = RuntimeEnvironment.getInstance();
40 env.removeAllMessages();
45 env.removeAllMessages();
55 env.startExpirationTimer();
57 env.stopExpirationTimer();
67 env.startExpirationTimer();
69 env.stopExpirationTimer();
85 env.startExpirationTimer();
89 env
[all...]
/opengrok/src/org/opensolaris/opengrok/configuration/messages/
H A DAbortMessage.java32 public void apply(RuntimeEnvironment env) { argument
33 env.removeAnyMessage(tags);
H A DNormalMessage.java32 public void apply(RuntimeEnvironment env) { argument
33 env.addMessage(this);
/opengrok/test/org/opensolaris/opengrok/web/
H A DSearchHelperTest.java51 RuntimeEnvironment env; field in class:SearchHelperTest
66 env = RuntimeEnvironment.getInstance();
67 env.setSourceRoot(repository.getSourceRoot());
68 env.setDataRoot(repository.getDataRoot());
69 env.setVerbose(true);
80 Indexer.getInstance().prepareIndexer(env, true, true, "/c", null,
88 sh.dataRoot = env.getDataRootFile(); // throws Exception if none-existent
93 sh.maxItems = env.getHitsPerPage();
94 sh.contextPath = env.getUrlPrefix();
97 sh.compressed = env
[all...]
H A DProjectHelperTestBase.java53 protected static RuntimeEnvironment env; field in class:ProjectHelperTestBase
205 env = RuntimeEnvironment.getInstance();
206 pluginDirectory = env.getPluginDirectory();
207 groups = env.getGroups();
208 projects = env.getProjects();
209 repositories = env.getRepositories();
211 env.setPluginDirectory(null);
238 env.setProjects(prjs);
239 env.setGroups(new TreeSet<>(grps));
240 env
[all...]
H A DProjectHelperTest.java52 * Test if projects and groups are always reloaded fully from the env.
59 List<Project> oldProjects = new ArrayList<>(env.getProjects());
60 List<RepositoryInfo> oldRepositories = new ArrayList<>(env.getRepositories());
61 Set<Group> oldGroups = new TreeSet<>(env.getGroups());
69 Assert.assertEquals("There should be 40 env projects", 40, env.getProjects().size());
70 Assert.assertEquals("There should be 20 env repositories", 20, env.getRepositories().size());
71 Assert.assertEquals("There should be 4 env groups", 4, env
[all...]
H A DProjectHelperExtendedTest.java45 List<Group> grps = new ArrayList<>(env.getGroups());
46 List<Project> prjs = env.getProjects();
47 List<RepositoryInfo> rps = env.getRepositories();
64 env.setProjects(prjs);
65 env.setGroups(new TreeSet<>(grps));
66 env.setRepositories(rps);
67 env.register();
/opengrok/test/org/opensolaris/opengrok/index/
H A DIndexerTest.java94 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
95 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
96 if (env.validateExuberantCtags()) {
97 env.setSourceRoot(repository.getSourceRoot());
98 env.setDataRoot(repository.getDataRoot());
99 env.setVerbose(true);
100 Indexer.getInstance().prepareIndexer(env, true, true, "/c", null,
131 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
132 env.setProjects(projects);
137 env,
[all...]
H A DIndexerRepoTest.java92 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
93 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
94 if (env.validateExuberantCtags()) {
107 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
108 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
109 if (env.validateExuberantCtags()) {
H A DIndexDatabaseTest.java52 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
53 assertTrue("No ctags available", env.validateExuberantCtags());
59 env.setSourceRoot(repository.getSourceRoot());
60 env.setDataRoot(repository.getDataRoot());
64 env, true, true, "/c", null,
/opengrok/src/org/opensolaris/opengrok/configuration/
H A DProject.java167 final RuntimeEnvironment env = RuntimeEnvironment.getInstance();
168 if (env.hasProjects()) {
170 for (Project p : env.getProjects()) {
215 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
216 if (env.hasProjects()) {
217 for (Project proj : env.getProjects()) {
H A DGroup.java195 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
196 if (env.hasGroups()) {
197 for (Group grp : env.getGroups()) {
/opengrok/src/org/opensolaris/opengrok/history/
H A DFileHistoryCache.java84 * @param env runtime environment
91 RuntimeEnvironment env, Repository repository,
124 if (env.isTagsEnabled() && repository.hasFileBasedTags()) {
135 List<HistoryEntry>> map_entry, RuntimeEnvironment env,
139 String repodir = env.getPathRelativeToSourceRoot(
178 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
181 sb.append(env.getDataRootPath());
186 String add = env.getPathRelativeToSourceRoot(file, 0);
240 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
254 if (env
90 doFileHistory(Map.Entry<String, List<HistoryEntry>> map_entry, RuntimeEnvironment env, Repository repository, File test, File root, boolean renamed) argument
134 isRenamedFile(Map.Entry<String, List<HistoryEntry>> map_entry, RuntimeEnvironment env, Repository repository, History history) argument
[all...]
/opengrok/src/org/opensolaris/opengrok/web/
H A DWebappListener.java66 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
73 env.readConfiguration(new File(config));
102 env.getConfiguration().setPluginDirectory(pluginDirectory);
105 if (env.getDataRootPath() == null) {
106 env.getConfiguration().setPluginDirectory(PLUGIN_DIRECTORY_DEFAULT);
108 env.getConfiguration().setPluginDirectory(env.getDataRootPath() + "/../" + PLUGIN_DIRECTORY_DEFAULT);
/opengrok/test/org/opensolaris/opengrok/search/
H A DSearchEngineTest.java56 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
57 env.setCtags(System.getProperty("org.opensolaris.opengrok.analysis.Ctags", "ctags"));
58 env.setSourceRoot(repository.getSourceRoot());
59 env.setDataRoot(repository.getDataRoot());
61 if (env.validateExuberantCtags()) {
62 env.setSourceRoot(repository.getSourceRoot());
63 env.setDataRoot(repository.getDataRoot());
64 env.setVerbose(false);
65 Indexer.getInstance().prepareIndexer(env, true, true, "/c", null, false, false, false, null, null, new ArrayList<String>(), false);
73 env
[all...]
H A DSearchTest.java61 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
62 env.setCtags(System.getProperty("org.opensolaris.opengrok.analysis.Ctags", "ctags"));
63 env.setSourceRoot(repository.getSourceRoot());
64 env.setDataRoot(repository.getDataRoot());
66 if (env.validateExuberantCtags()) {
67 env.setSourceRoot(repository.getSourceRoot());
68 env.setDataRoot(repository.getDataRoot());
69 env.setVerbose(false);
70 Indexer.getInstance().prepareIndexer(env, true, true, "/c", null,
79 env
[all...]
/opengrok/src/org/opensolaris/opengrok/index/
H A DIndexDatabase.java163 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
166 if (env.hasProjects()) {
167 for (Project project : env.getProjects()) {
202 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
207 if (project == null && env.hasProjects()) {
256 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
257 File indexDir = new File(env.getDataRootFile(), INDEX_DIR);
269 if (!env.isUsingLuceneLocking()) {
273 ignoredNames = env.getIgnoredNames();
274 includedNames = env
[all...]
H A DIndexer.java549 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
550 env.setConfiguration(cfg, subFilesList);
558 * For the check we need to have 'env' already set.
561 String srcPath=env.getSourceRootPath();
566 if (env.hasProjects()) {
586 if (env.isHandleHistoryOfRenamedFiles() && cfg.isHistoryCacheInDB()) {
592 getInstance().prepareIndexer(env, searchRepositories, addProjects,
601 if (runIndex || (optimizedChanged && env.isOptimizeDatabase())) {
608 getInstance().sendToConfigHost(env, configHost);
632 public void prepareIndexer(RuntimeEnvironment env, argument
891 sendToConfigHost(RuntimeEnvironment env, String configHost) argument
[all...]
/opengrok/test/org/opensolaris/opengrok/configuration/
H A DProjectTest.java105 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
106 env.setProjects(projects);
144 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
145 env.setProjects(projects);
147 List<String> descs = env.getProjectDescriptions();
H A DRuntimeEnvironmentTest.java224 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
225 assertFalse(env.storeHistoryCacheInDB());
226 env.setStoreHistoryCacheInDB(true);
227 assertTrue(env.storeHistoryCacheInDB());
443 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
446 assertObfuscated(false, env);
448 env.setObfuscatingEMailAddresses(true);
449 assertObfuscated(true, env);
451 env.setObfuscatingEMailAddresses(false);
452 assertObfuscated(false, env);
455 assertObfuscated(boolean expected, RuntimeEnvironment env) argument
[all...]
/opengrok/test/org/opensolaris/opengrok/analysis/c/
H A DCAnalyzerFactoryTest.java66 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
67 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
68 if (env.validateExuberantCtags()) {
/opengrok/test/org/opensolaris/opengrok/analysis/clojure/
H A DClojureAnalyzerFactoryTest.java64 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
65 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
66 if (env.validateExuberantCtags()) {
/opengrok/test/org/opensolaris/opengrok/analysis/csharp/
H A DCSharpAnalyzerFactoryTest.java61 RuntimeEnvironment env = RuntimeEnvironment.getInstance();
62 env.setCtags(System.getProperty(ctagsProperty, "ctags"));
63 if (env.validateExuberantCtags()) {

Completed in 41 milliseconds

12