Tabnine Logo
FilesystemConfig.isUseAbsolutePath
Code IndexAdd Tabnine to your IDE (free)

How to use
isUseAbsolutePath
method
in
com.emc.ecs.sync.config.storage.FilesystemConfig

Best Java code snippets using com.emc.ecs.sync.config.storage.FilesystemConfig.isUseAbsolutePath (Showing top 3 results out of 315)

origin: EMCECS/ecs-sync

@Override
public String getRelativePath(String identifier, boolean directory) {
  String relativePath = createFile(identifier).getAbsolutePath();
  File rootFile = createFile(config.getPath());
  if (!config.isUseAbsolutePath() && relativePath.startsWith(rootFile.getAbsolutePath())) {
    relativePath = relativePath.substring(rootFile.getAbsolutePath().length());
  }
  if (File.separatorChar == '\\') {
    relativePath = relativePath.replace('\\', '/');
  }
  if (relativePath.startsWith("/")) {
    relativePath = relativePath.substring(1);
  }
  return relativePath;
}
origin: EMCECS/ecs-sync

Assert.assertEquals(object.isUseAbsolutePath(), xObject.isUseAbsolutePath());
Assert.assertEquals(object.isFollowLinks(), xObject.isFollowLinks());
Assert.assertEquals(object.getDeleteOlderThan(), xObject.getDeleteOlderThan());
origin: EMCECS/ecs-sync

@Test
public void testFilesystemCli() throws Exception {
  File sourceFile = new File("/tmp/foo");
  File targetFile = new File("/tmp/bar");
  String[] args = new String[]{
      "-source", "file://" + sourceFile,
      "-target", "file://" + targetFile,
      "--source-use-absolute-path",
      "--target-include-base-dir"
  };
  CliConfig cliConfig = CliHelper.parseCliConfig(args);
  SyncConfig syncConfig = CliHelper.parseSyncConfig(cliConfig, args);
  Object source = syncConfig.getSource();
  Assert.assertNotNull("source is null", source);
  Assert.assertTrue("source is not FilesystemSource", source instanceof FilesystemConfig);
  FilesystemConfig fsSource = (FilesystemConfig) source;
  Object target = syncConfig.getTarget();
  Assert.assertNotNull("target is null", target);
  Assert.assertTrue("target is not FilesystemTarget", target instanceof FilesystemConfig);
  FilesystemConfig fsTarget = (FilesystemConfig) target;
  Assert.assertEquals("source file mismatch", sourceFile.getPath(), fsSource.getPath());
  Assert.assertTrue("source use-absolute-path should be enabled", fsSource.isUseAbsolutePath());
  Assert.assertEquals("target file mismatch", targetFile.getPath(), fsTarget.getPath());
  Assert.assertTrue("target include-base-dir should be enabled", fsTarget.isIncludeBaseDir());
}
com.emc.ecs.sync.config.storageFilesystemConfigisUseAbsolutePath

Popular methods of FilesystemConfig

  • <init>
  • getPath
  • setPath
  • getDeleteCheckScript
  • getDeleteOlderThan
  • getExcludedPaths
  • getModifiedSince
  • isFollowLinks
  • isIncludeBaseDir
  • setExcludedPaths
  • setModifiedSince
    Date/time should be provided in ISO-8601 UTC format (i.e. 2015-01-01T04:30:00Z)
  • setStoreMetadata
  • setModifiedSince,
  • setStoreMetadata,
  • isStoreMetadata,
  • setDeleteCheckScript,
  • setDeleteOlderThan,
  • setFollowLinks,
  • setUseAbsolutePath

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now