Skip to content

Commit

Permalink
Enable leading wildcard by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzanek committed Sep 30, 2019
1 parent 7d5f72b commit 5b7cea8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion docker/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ opengrok-indexer \
-s /opengrok/src \
-d /opengrok/data \
--remote on \
--leadingWildCards on \
-W /opengrok/etc/configuration.xml \
-U "$URI" \
$OPS \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ public void setGroupsCollapseThreshold(int groupsCollapseThreshold) throws Illeg
public Configuration() {
// This list of calls is sorted alphabetically so please keep it.
cmds = new HashMap<>();
setAllowLeadingWildcard(true);
setAllowedSymlinks(new HashSet<>());
setAuthorizationWatchdogEnabled(false);
//setBugPage("http://bugs.myserver.org/bugdatabase/view_bug.do?bug_id=");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ public void testRamBufferSize() {
@Test
public void testAllowLeadingWildcard() {
RuntimeEnvironment instance = RuntimeEnvironment.getInstance();
assertFalse(instance.isAllowLeadingWildcard());
instance.setAllowLeadingWildcard(true);
assertTrue(instance.isAllowLeadingWildcard());
instance.setAllowLeadingWildcard(false);
assertFalse(instance.isAllowLeadingWildcard());
}

@Test
Expand Down

0 comments on commit 5b7cea8

Please sign in to comment.