/** * Creates a new instance. */ public EntryNotFoundException(Revision revision, String path) { this(path + " (revision: " + revision.text() + ')'); }
/** * Creates a new instance. */ public EntryNotFoundException(Revision revision, String path) { this(path + " (" + revision.text() + ')'); }
/** * Creates a new instance. */ public RevisionNotFoundException(Revision revision) { this(revision.text()); }
/** * Creates a new instance. */ public RevisionNotFoundException(Revision revision) { this(revision.text()); }
/** * Creates a new instance. */ public EntryNotFoundException(Revision revision, String path) { this(path + " (revision: " + revision.text() + ')'); }
/** * Creates a new instance. */ public RevisionNotFoundException(Revision revision) { this(revision.text()); }
@Override public String toString() { return MoreObjects.toStringHelper(this).omitNullValues() .add("revision", revision.text()) .add("path", path) .add("type", type) .add("content", contentAsText()) .toString(); } }
@Override public String toString() { return MoreObjects.toStringHelper(this) .addValue(revision.text()) .add("when", whenAsText()) .toString(); } }
private Plugin loadPlugin(Revision revision, String path) { try { return new Plugin(project, revision, path); } catch (Exception e) { throw new PluginException( "failed to load plugin '" + path + "' (revision: " + revision.text() + "): " + e, e); } }
private Plugin loadPlugin(Revision revision, String path) { try { return new Plugin(project, revision, path); } catch (Exception e) { throw new PluginException( "failed to load plugin '" + path + "' (revision: " + revision.text() + "): " + e, e); } }
private Plugin loadPlugin(Revision revision, String path) { try { return new Plugin(project, revision, path); } catch (Exception e) { throw new PluginException( "failed to load plugin '" + path + "' (revision: " + revision.text() + "): " + e, e); } }
static RevisionDto convert(Revision revision) { return new RevisionDto(revision.major(), 0, revision.text()); }
static RevisionDto convert(Revision revision) { return new RevisionDto(revision.major(), 0, revision.text()); }
@Override public String toString() { return MoreObjects.toStringHelper(this) .addValue(revision.text()) .add("when", whenAsText()) .toString(); } }
@Override public String toString() { return MoreObjects.toStringHelper(this) .addValue(revision.text()) .add("when", whenAsText()) .toString(); } }
@Override public String toString() { return MoreObjects.toStringHelper(this).omitNullValues() .add("revision", revision.text()) .add("path", path) .add("type", type) .add("content", contentAsText()) .toString(); } }
@Override public String toString() { return MoreObjects.toStringHelper(this).omitNullValues() .add("revision", revision.text()) .add("path", path) .add("type", type) .add("content", contentAsText()) .toString(); } }
static EntryDto convert(Entry<?> entry) { final EntryDto dto = new EntryDto(); dto.setRevision(entry.revision().text()); dto.setPath(entry.path()); dto.setType(entry.type().name()); dto.setContent(entry.contentAsText()); return dto; }
static EntryDto convert(Entry<?> entry) { final EntryDto dto = new EntryDto(); dto.setRevision(entry.revision().text()); dto.setPath(entry.path()); dto.setType(entry.type().name()); dto.setContent(entry.contentAsText()); return dto; }
static EntryDto convert(Entry<?> entry) { final EntryDto dto = new EntryDto(); dto.setRevision(entry.revision().text()); dto.setPath(entry.path()); dto.setType(entry.type().name()); dto.setContent(entry.contentAsText()); return dto; }