Interface OsFileConventions

  • All Known Implementing Classes:
    AbstractOsFileConventions, PosixFileConventions, WindowsFileConventions

    public interface OsFileConventions
    The policy for handling filenames and command-lines in the given Gnu Make -nB output.

    When the current host OS is the same as the host OS that produced the script then these are just pass-through methods to the underlying java File implementation or command-line tokenizer.

    If the current host is different from the host that produced the -nB output then it is up to the caller to provide a policy that will work.

    • Method Detail

      • tokenizeCommandLineToEscaped

        @NonNull
        java.util.List<java.lang.String> tokenizeCommandLineToEscaped​(@NonNull
                                                                      java.lang.String commandString)
      • tokenizeCommandLineToRaw

        @NonNull
        java.util.List<java.lang.String> tokenizeCommandLineToRaw​(@NonNull
                                                                  java.lang.String commandString)
      • splitCommandLine

        @NonNull
        java.util.List<java.lang.String> splitCommandLine​(@NonNull
                                                          java.lang.String commandString)
      • isPathAbsolute

        boolean isPathAbsolute​(@NonNull
                               java.lang.String file)
      • getFileParent

        @NonNull
        java.lang.String getFileParent​(@NonNull
                                       java.lang.String filename)
      • getFileName

        @NonNull
        java.lang.String getFileName​(@NonNull
                                     java.lang.String filename)
      • toFile

        @NonNull
        java.io.File toFile​(@NonNull
                            java.lang.String filename)
      • toFile

        @NonNull
        java.io.File toFile​(@NonNull
                            java.io.File parent,
                            @NonNull
                            java.lang.String child)