All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itemis.maven.plugins.unleash.scm.providers.util.SVNDirEntryNameChecker Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.itemis.maven.plugins.unleash.scm.providers.util;

import org.tmatesoft.svn.core.ISVNDirEntryHandler;
import org.tmatesoft.svn.core.SVNDirEntry;
import org.tmatesoft.svn.core.SVNException;

import com.google.common.base.Objects;

public class SVNDirEntryNameChecker implements ISVNDirEntryHandler {
  private String entryname;
  private boolean isPresent;

  public SVNDirEntryNameChecker(String entryname) {
    this.entryname = entryname;
  }

  @Override
  public void handleDirEntry(SVNDirEntry dirEntry) throws SVNException {
    if (Objects.equal(dirEntry.getName(), this.entryname)) {
      this.isPresent = true;
    }
  }

  public boolean isPresent() {
    return this.isPresent;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy