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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getFileName​(java.lang.String filename)  
      java.lang.String getFileParent​(java.lang.String filename)  
      boolean isPathAbsolute​(java.lang.String file)  
      com.android.build.gradle.internal.cxx.os.OsBehavior os()  
      java.io.File toFile​(java.io.File parent, java.lang.String child)  
      java.io.File toFile​(java.lang.String filename)  
    • Method Detail

      • os

        @NonNull
        com.android.build.gradle.internal.cxx.os.OsBehavior os()
      • 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)