/** * Returns the applicable {@link RepositoryBrowser} for files * controlled by this {@link SCM}. * @see #guessBrowser */ @SuppressWarnings("deprecation") @Exported(name="browser") public final @CheckForNull RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if(b!=null) return b; if (useAutoBrowserHolder) { if (autoBrowserHolder == null) { autoBrowserHolder = new AutoBrowserHolder(this); } return autoBrowserHolder.get(); } else { try { return guessBrowser(); } catch (RuntimeException x) { LOGGER.log(Level.WARNING, null, x); return null; } } }
/** * Returns the applicable {@link RepositoryBrowser} for files * controlled by this {@link SCM}. * * <p> * This method attempts to find applicable browser * from other job configurations. */ @Exported(name="browser") public final RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if(b!=null) return b; if(autoBrowserHolder==null) autoBrowserHolder = new AutoBrowserHolder(this); return autoBrowserHolder.get(); }
/** * Returns the applicable {@link RepositoryBrowser} for files * controlled by this {@link SCM}. * * <p> * This method attempts to find applicable browser * from other job configurations. */ @Exported(name="browser") public final RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if(b!=null) return b; if(autoBrowserHolder==null) autoBrowserHolder = new AutoBrowserHolder(this); return autoBrowserHolder.get(); }
/** * Returns the applicable {@link RepositoryBrowser} for files * controlled by this {@link SCM}. * * <p> * This method attempts to find applicable browser * from other job configurations. */ @Exported(name="browser") public final RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if(b!=null) return b; if(autoBrowserHolder==null) autoBrowserHolder = new AutoBrowserHolder(this); return autoBrowserHolder.get(); }
/** * Returns the applicable {@link RepositoryBrowser} for files controlled by * this {@link SCM}. * * <p> This method attempts to find applicable browser from other job * configurations. */ @Exported(name = "browser") public final RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if (b != null) { return b; } if (autoBrowserHolder == null) { autoBrowserHolder = new AutoBrowserHolder(this); } return autoBrowserHolder.get(); }
/** * Returns the applicable {@link RepositoryBrowser} for files * controlled by this {@link SCM}. * @see #guessBrowser */ @SuppressWarnings("deprecation") @Exported(name="browser") public final @CheckForNull RepositoryBrowser<?> getEffectiveBrowser() { RepositoryBrowser<?> b = getBrowser(); if(b!=null) return b; if (useAutoBrowserHolder) { if (autoBrowserHolder == null) { autoBrowserHolder = new AutoBrowserHolder(this); } return autoBrowserHolder.get(); } else { return guessBrowser(); } }