| author | Hristo Iliev | 2010-09-28 05:34:27 (EDT) |
|---|---|---|
| committer | Steve Powell | 2010-09-28 05:35:04 (EDT) |
| commit | 15812b2fdf686bb8faab7d07d04a753cdc819047 (patch) (side-by-side diff) | |
| tree | 4544637ba1e3834a706e7b907f3f8ec27467f63a | |
| parent | b2c167c26a064718f5f745aa5feccd9296a535db (diff) | |
| download | org.eclipse.virgo.kernel-15812b2fdf686bb8faab7d07d04a753cdc819047.zip org.eclipse.virgo.kernel-15812b2fdf686bb8faab7d07d04a753cdc819047.tar.gz org.eclipse.virgo.kernel-15812b2fdf686bb8faab7d07d04a753cdc819047.tar.bz2 | |
Bug 325843 - VSH command does not print correct line endings
| -rw-r--r-- | org.eclipse.virgo.kernel.osgicommand/src/main/java/org/eclipse/virgo/kernel/osgicommand/internal/OsgiKernelShellCommand.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.virgo.kernel.osgicommand/src/main/java/org/eclipse/virgo/kernel/osgicommand/internal/OsgiKernelShellCommand.java b/org.eclipse.virgo.kernel.osgicommand/src/main/java/org/eclipse/virgo/kernel/osgicommand/internal/OsgiKernelShellCommand.java index b686fde..4386820 100644 --- a/org.eclipse.virgo.kernel.osgicommand/src/main/java/org/eclipse/virgo/kernel/osgicommand/internal/OsgiKernelShellCommand.java +++ b/org.eclipse.virgo.kernel.osgicommand/src/main/java/org/eclipse/virgo/kernel/osgicommand/internal/OsgiKernelShellCommand.java @@ -31,6 +31,8 @@ import org.eclipse.virgo.kernel.shell.LinePrinter; */ public final class OsgiKernelShellCommand implements CommandProvider { + private static final String LINE_SEPARATOR = System.getProperty("line.separator", "\n"); + CommandExecutor commandExecutor; public OsgiKernelShellCommand(CommandExecutor commandExecutor) { @@ -65,7 +67,7 @@ public final class OsgiKernelShellCommand implements CommandProvider { * {@inheritDoc} */ public String getHelp() { - return "\tvsh - Virgo shell commands; 'vsh help' to list available commands\n"; + return "\tvsh - Virgo shell commands; 'vsh help' to list available commands" + LINE_SEPARATOR; } /** |

