commit | bae998540001a0c1dee0bc7f8bd4567ead85d683 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Thu Feb 05 11:39:10 2009 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Thu Feb 05 11:39:10 2009 +0000 |
tree | 4e66e4b4fb130fd517d6c4cc3db5c3adfb356717 | |
parent | 6a8e81055b1fb569032455e70242080ca9242b16 [diff] |
GSHELL-158: The group.name has an incorrect value at the root when using '..' from a subshell git-svn-id: https://svn.apache.org/repos/asf/geronimo/gshell/trunk@741078 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/CommandResolverImpl.java b/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/CommandResolverImpl.java index 30f9956..419e89e 100644 --- a/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/CommandResolverImpl.java +++ b/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/registry/CommandResolverImpl.java
@@ -330,7 +330,11 @@ log.trace("Creating command for group: {}", file); GroupCommand command = container.getBean(GroupCommand.class); - command.setPath(file.getName().getBaseName()); + String path = fileSystemAccess.dereference(commandsRoot).getName().getRelativeName(file.getName()); + if (".".equals(path)) { + path = "/"; + } + command.setPath(path); return command; }