From e7fc88d1e7d4168fa86f6e0bfc6a35ed8bcf673b Mon Sep 17 00:00:00 2001 From: Mark Pollack Date: Wed, 19 Sep 2012 14:29:32 -0400 Subject: [PATCH] Update sample to refelect changes from SHL-48 --- .../helloworld/commands/MyBannerProvider.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/MyBannerProvider.java b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/MyBannerProvider.java index d73d76ec..96cb19b8 100644 --- a/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/MyBannerProvider.java +++ b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/MyBannerProvider.java @@ -17,10 +17,10 @@ package org.springframework.shell.samples.helloworld.commands; import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; -import org.springframework.shell.support.util.StringUtils; import org.springframework.shell.core.CommandMarker; import org.springframework.shell.core.annotation.CliCommand; import org.springframework.shell.plugin.support.DefaultBannerProvider; +import org.springframework.shell.support.util.OsUtils; import org.springframework.stereotype.Component; /** @@ -35,11 +35,11 @@ public class MyBannerProvider extends DefaultBannerProvider @CliCommand(value = { "version" }, help = "Displays current CLI version") public String getBanner() { StringBuffer buf = new StringBuffer(); - buf.append("=======================================" + StringUtils.LINE_SEPARATOR); - buf.append("* *"+ StringUtils.LINE_SEPARATOR); - buf.append("* HelloWorld *" +StringUtils.LINE_SEPARATOR); - buf.append("* *"+ StringUtils.LINE_SEPARATOR); - buf.append("=======================================" + StringUtils.LINE_SEPARATOR); + buf.append("=======================================" + OsUtils.LINE_SEPARATOR); + buf.append("* *"+ OsUtils.LINE_SEPARATOR); + buf.append("* HelloWorld *" +OsUtils.LINE_SEPARATOR); + buf.append("* *"+ OsUtils.LINE_SEPARATOR); + buf.append("=======================================" + OsUtils.LINE_SEPARATOR); buf.append("Version:" + this.getVersion()); return buf.toString();