Package com.android.build.gradle.tasks
Class ExternalNativeBuildTaskUtils
java.lang.Object
com.android.build.gradle.tasks.ExternalNativeBuildTaskUtils
Shared utility methods for dealing with external native build tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanfileIsUpToDate(File source, File derived) File 'derived' is consider to depend on the contents of file 'source' this function return true if source is more recent than derived.
-
Constructor Details
-
ExternalNativeBuildTaskUtils
public ExternalNativeBuildTaskUtils()
-
-
Method Details
-
fileIsUpToDate
public static boolean fileIsUpToDate(@NonNull File source, @NonNull File derived) throws IOException File 'derived' is consider to depend on the contents of file 'source' this function return true if source is more recent than derived.If derived doesn't exist then it is not consider to be up-to-date with respect to source.
- Parameters:
source- -- original file (must exist)derived- -- derived file- Returns:
- true if derived is more recent than original
- Throws:
IOException- if there was a problem reading the timestamp of one of the files
-