Class AbstractOsFileConventions

  • All Implemented Interfaces:
    OsFileConventions
    Direct Known Subclasses:
    PosixFileConventions, WindowsFileConventions

    public abstract class AbstractOsFileConventions
    extends java.lang.Object
    implements OsFileConventions
    Default implementation of the 'File' methods which are all pass-through. These are here to be overridden in tests that work with -nB scripts from other platforms.
    • Constructor Detail

      • AbstractOsFileConventions

        public AbstractOsFileConventions()
    • Method Detail

      • createForCurrentHost

        public static OsFileConventions createForCurrentHost()
        Return an implementation of ScriptOSFileConventions that will work when the Host OS is the same as the OS that generated the ndk-build -nB script.
      • getFileParent

        @NonNull
        public java.lang.String getFileParent​(@NonNull
                                              java.lang.String filename)
        Specified by:
        getFileParent in interface OsFileConventions
      • getFileName

        @NonNull
        public java.lang.String getFileName​(@NonNull
                                            java.lang.String filename)
        Specified by:
        getFileName in interface OsFileConventions
      • toFile

        @NonNull
        public java.io.File toFile​(@NonNull
                                   java.lang.String filename)
        Specified by:
        toFile in interface OsFileConventions
      • toFile

        @NonNull
        public java.io.File toFile​(@NonNull
                                   java.io.File parent,
                                   @NonNull
                                   java.lang.String child)
        Specified by:
        toFile in interface OsFileConventions