Permalink
Browse files

[JENKINS-25002] Limit the split function on 2 so that paths with : ca…

…n be used
  • Loading branch information...
mrdfuse committed Oct 6, 2014
1 parent e56c561 commit 4081439807a289bfe74bc6d8e4c99d8374c407e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
@@ -81,7 +81,7 @@ public void doCreateSlave(StaplerRequest req, StaplerResponse rsp, @QueryParamet
String[] toolLocsArray = toolLocations.split(" ");
for (String toolLocKeyValue : toolLocsArray) {
boolean found = false;
String[] toolLoc = toolLocKeyValue.split(":");
String[] toolLoc = toolLocKeyValue.split(":", 2);

for (ToolDescriptor<?> desc : ToolInstallation.all()) {
for (ToolInstallation inst : desc.getInstallations()) {

0 comments on commit 4081439

Please sign in to comment.