Lines 151-157
Link Here
|
151 |
|
151 |
|
152 |
String packExcludes = properties.getProperty("pack.excludes"); //$NON-NLS-1$ |
152 |
String packExcludes = properties.getProperty("pack.excludes"); //$NON-NLS-1$ |
153 |
if (packExcludes != null) { |
153 |
if (packExcludes != null) { |
154 |
String[] excludes = packExcludes.split(",\\s*"); //$NON-NLS-1$ |
154 |
String[] excludes = toStringArray(packExcludes, ","); //$NON-NLS-1$ |
155 |
Set packExclusions = new HashSet(); |
155 |
Set packExclusions = new HashSet(); |
156 |
for (int i = 0; i < excludes.length; i++) { |
156 |
for (int i = 0; i < excludes.length; i++) { |
157 |
packExclusions.add(excludes[i]); |
157 |
packExclusions.add(excludes[i]); |
Lines 166-172
Link Here
|
166 |
return Collections.EMPTY_SET; |
166 |
return Collections.EMPTY_SET; |
167 |
String signExcludes = properties.getProperty("sign.excludes"); //$NON-NLS-1$ |
167 |
String signExcludes = properties.getProperty("sign.excludes"); //$NON-NLS-1$ |
168 |
if (signExcludes != null) { |
168 |
if (signExcludes != null) { |
169 |
String[] excludes = signExcludes.split(",\\s*"); //$NON-NLS-1$ |
169 |
String[] excludes = toStringArray(signExcludes, ","); //$NON-NLS-1$ |
170 |
Set signExclusions = new HashSet(); |
170 |
Set signExclusions = new HashSet(); |
171 |
for (int i = 0; i < excludes.length; i++) { |
171 |
for (int i = 0; i < excludes.length; i++) { |
172 |
signExclusions.add(excludes[i]); |
172 |
signExclusions.add(excludes[i]); |
Lines 185-188
Link Here
|
185 |
} |
185 |
} |
186 |
return buffer.toString(); |
186 |
return buffer.toString(); |
187 |
} |
187 |
} |
|
|
188 |
|
189 |
public static String[] toStringArray(String input, String separator) { |
190 |
StringTokenizer tokenizer = new StringTokenizer(input, separator); |
191 |
int count = tokenizer.countTokens(); |
192 |
String[] result = new String[count]; |
193 |
for (int i = 0; i < count; i++) { |
194 |
result[i] = tokenizer.nextToken(); |
195 |
} |
196 |
return result; |
197 |
} |
188 |
} |
198 |
} |