equal
deleted
inserted
replaced
129 * For example to only had portfile remaining from: |
129 * For example to only had portfile remaining from: |
130 * settings="--server:id=foo,portfile=bar" |
130 * settings="--server:id=foo,portfile=bar" |
131 * do settings = cleanOptions("--server:",Util.set("-portfile"),settings); |
131 * do settings = cleanOptions("--server:",Util.set("-portfile"),settings); |
132 * now settings equals "--server:portfile=bar" |
132 * now settings equals "--server:portfile=bar" |
133 * |
133 * |
134 * @param allowsSubOptions A set of the allowed sub options, id portfile etc. |
134 * @param allowedSubOptions A set of the allowed sub options, id portfile etc. |
135 * @param s The option settings string. |
135 * @param s The option settings string. |
136 */ |
136 */ |
137 public static String cleanSubOptions(Set<String> allowedSubOptions, String s) { |
137 public static String cleanSubOptions(Set<String> allowedSubOptions, String s) { |
138 StringBuilder sb = new StringBuilder(); |
138 StringBuilder sb = new StringBuilder(); |
139 StringTokenizer st = new StringTokenizer(s, ","); |
139 StringTokenizer st = new StringTokenizer(s, ","); |