Class Dos2UnixUtils

java.lang.Object
org.qubership.atp.mia.utils.dos2unix.utils.Dos2UnixUtils

public class Dos2UnixUtils extends Object
  • Constructor Details

    • Dos2UnixUtils

      public Dos2UnixUtils()
  • Method Details

    • getDos2UnixPath

      public static Path getDos2UnixPath(String pathToDos2UnixS, String... pathToDos2Unix)
      Transforms dos2unix path to RealPath, it allows to check whether it exists.
      Parameters:
      pathToDos2UnixS - start of path.
      pathToDos2Unix - the rest of path.
      Returns:
      RealPath to dos2unix tool.
    • destinationToRealPath

      public static Path destinationToRealPath(Path dest)
      Transform existing path to file, which need will be transformed by dos2unix. Need to check whether given path exists.
      Parameters:
      dest - path to file.
      Returns:
      RealPath of given file.