Class AbstractOsFileConventions
- java.lang.Object
-
- com.android.build.gradle.external.gnumake.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 Summary
Constructors Constructor Description AbstractOsFileConventions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OsFileConventionscreateForCurrentHost()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.java.lang.StringgetFileName(java.lang.String filename)java.lang.StringgetFileParent(java.lang.String filename)booleanisPathAbsolute(java.lang.String file)java.io.FiletoFile(java.io.File parent, java.lang.String child)java.io.FiletoFile(java.lang.String filename)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.android.build.gradle.external.gnumake.OsFileConventions
splitCommandLine, tokenizeCommandLineToEscaped, tokenizeCommandLineToRaw
-
-
-
-
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.
-
isPathAbsolute
public boolean isPathAbsolute(@NonNull java.lang.String file)- Specified by:
isPathAbsolutein interfaceOsFileConventions
-
getFileParent
@NonNull public java.lang.String getFileParent(@NonNull java.lang.String filename)- Specified by:
getFileParentin interfaceOsFileConventions
-
getFileName
@NonNull public java.lang.String getFileName(@NonNull java.lang.String filename)- Specified by:
getFileNamein interfaceOsFileConventions
-
toFile
@NonNull public java.io.File toFile(@NonNull java.lang.String filename)- Specified by:
toFilein interfaceOsFileConventions
-
toFile
@NonNull public java.io.File toFile(@NonNull java.io.File parent, @NonNull java.lang.String child)- Specified by:
toFilein interfaceOsFileConventions
-
-