commit | c07247457ba33ad52e14a2fe657ed43a8dbd80d3 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Tue Sep 29 09:40:07 2009 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Tue Sep 29 09:40:07 2009 +0000 |
tree | 4a1fa6e6582444a3039c5f6a80ebb346ff0cf15a | |
parent | 119c79be92d8bbe454005eac5f59859eeeacf3fb [diff] |
Added constant, fixed minor formatting issue. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@819869 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/shell/src/main/java/org/apache/felix/shell/impl/SystemPropertiesCommandImpl.java b/shell/src/main/java/org/apache/felix/shell/impl/SystemPropertiesCommandImpl.java index ca273bc..2f1705f 100644 --- a/shell/src/main/java/org/apache/felix/shell/impl/SystemPropertiesCommandImpl.java +++ b/shell/src/main/java/org/apache/felix/shell/impl/SystemPropertiesCommandImpl.java
@@ -34,6 +34,8 @@ */ public class SystemPropertiesCommandImpl implements Command { + private static final String REMOVE_PROP_SWITCH = "-r"; + public void execute(String line, PrintStream out, PrintStream err) { StringTokenizer st = new StringTokenizer(line); @@ -54,8 +56,10 @@ } else if (tokens == 3) { - if ("-r".equals(secondArgument)) + if (REMOVE_PROP_SWITCH.equals(secondArgument)) + { removeProperty(st.nextToken()); + } else { String value = st.nextToken();