提交 18d4a29a 编写于 作者: D Daniel Spilker

changed regex to parse CSV

上级 65f88cce
......@@ -50,7 +50,7 @@ import java.net.URL;
@Retention(RUNTIME)
public @interface WithPlugin {
/**
* Whitespace separated list of plugin names.
* Comma separated list of plugin names.
*
* For now, this has to be one or more of the plugins statically available in resources
* "/plugins/NAME". TODO: support retrieval through Maven repository.
......@@ -70,7 +70,7 @@ public @interface WithPlugin {
@Override
public void decorateHome(HudsonTestCase testCase, File home) throws Exception {
for (String plugin : a.value().split("\\s+")) {
for (String plugin : a.value().split("\\s*,\\s*")) {
URL res = getClass().getClassLoader().getResource("plugins/" + plugin);
FileUtils.copyURLToFile(res, new File(home, "plugins/" + plugin));
}
......@@ -88,7 +88,7 @@ public @interface WithPlugin {
@Override
public void decorateHome(JenkinsRule jenkinsRule, File home) throws Exception {
for (String plugin : a.value().split("\\s+")) {
for (String plugin : a.value().split("\\s*,\\s*")) {
URL res = getClass().getClassLoader().getResource("plugins/" + plugin);
FileUtils.copyURLToFile(res, new File(home, "plugins/" + plugin));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册