Skip to content
Permalink
Browse files
JENKINS-15638 Xvfb 'display name offset' defaults to 0, not 1 as
described, if unset
 - added missing getter for display name offset
  • Loading branch information
Zoran Regvart committed Nov 5, 2012
1 parent 8b20973 commit 5ddf36dd787e981b6f143973f621d88e0616fa8b
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
@@ -186,6 +186,10 @@ public Integer getDisplayName() {
return displayName;
}

public int getDisplayNameOffset() {
return displayNameOffset;
}

public XvfbInstallation getInstallation(final EnvVars env, final Node node, final BuildListener listener) {
for (final XvfbInstallation installation : getDescriptor().getInstallations()) {
if (installationName != null && installationName.equals(installation.getName())) {
@@ -241,7 +245,7 @@ private XvfbEnvironment launchXvfb(@SuppressWarnings("rawtypes") final AbstractB
if (installation == null) {
listener.error(Messages.XvfbBuildWrapper_NoInstallationsConfigured());

return null;
throw new InterruptedException();
}

final String path = installation.getHome();

0 comments on commit 5ddf36d

Please sign in to comment.