Class AbstractOsFileConventions
java.lang.Object
com.android.build.gradle.external.gnumake.AbstractOsFileConventions
- All Implemented Interfaces:
OsFileConventions
- Direct Known Subclasses:
PosixFileConventions,WindowsFileConventions
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic OsFileConventionsReturn an implementation of ScriptOSFileConventions that will work when the Host OS is the same as the OS that generated the ndk-build -nB script.getFileName(String filename) getFileParent(String filename) booleanisPathAbsolute(String file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.android.build.gradle.external.gnumake.OsFileConventions
os
-
Constructor Details
-
AbstractOsFileConventions
public AbstractOsFileConventions()
-
-
Method Details
-
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
- Specified by:
isPathAbsolutein interfaceOsFileConventions
-
getFileParent
- Specified by:
getFileParentin interfaceOsFileConventions
-
getFileName
- Specified by:
getFileNamein interfaceOsFileConventions
-
toFile
- Specified by:
toFilein interfaceOsFileConventions
-
toFile
- Specified by:
toFilein interfaceOsFileConventions
-