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 Details

    • os

      @NonNull com.android.utils.cxx.os.OsBehavior os()
    • isPathAbsolute

      boolean isPathAbsolute(@NonNull String file)
    • getFileParent

      @NonNull String getFileParent(@NonNull String filename)
    • getFileName

      @NonNull String getFileName(@NonNull String filename)
    • toFile

      @NonNull File toFile(@NonNull String filename)
    • toFile

      @NonNull File toFile(@NonNull File parent, @NonNull String child)