Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-25002] Added a java comment explaining the use of the limit …
…on the split function
  • Loading branch information
mrdfuse committed Oct 7, 2014
1 parent 4081439 commit c0e0fe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
Expand Up @@ -81,6 +81,7 @@ private List<ToolLocation> parseToolLocations(String toolLocations) {
String[] toolLocsArray = toolLocations.split(" ");
for (String toolLocKeyValue : toolLocsArray) {
boolean found = false;
// limit the split on only the first occurence of ':', so that the tool location path can contain ':' characters
String[] toolLoc = toolLocKeyValue.split(":", 2);

for (ToolDescriptor<?> desc : ToolInstallation.all()) {
Expand Down

0 comments on commit c0e0fe3

Please sign in to comment.