Java Path Extract nio extractVersion(Path pathToBinaries)

Here you can find the source of extractVersion(Path pathToBinaries)

Description

extract Version

License

Open Source License

Return

the version of the artifact out of path

Declaration

public static String extractVersion(Path pathToBinaries) 

Method Source Code

//package com.java2s;

import java.nio.file.Path;

public class Main {
    /** @return the version of the artifact out of path */
    public static String extractVersion(Path pathToBinaries) {
        return pathToBinaries.getParent().getFileName().toString();
    }/*from  w  w w. j a va  2  s .c om*/
}

Related

  1. extractClassName(Path path)
  2. extractCurrentPath()
  3. extractFile(ZipInputStream zipIn, Path filePath)
  4. extractLanguageRelativePath(final Path absolutePath)
  5. extractLuaStacktrace(Path path, StackTraceElement[] stackTrace)
  6. extractZipArchive(final File zipFile, Path destDir)
  7. unzipFileInArchive(FileChannel channel, String relpathInZip, File extractTo)