Package com.android.build.gradle.tasks
Class ExternalNativeBuildTaskUtils
- java.lang.Object
-
- com.android.build.gradle.tasks.ExternalNativeBuildTaskUtils
-
public class ExternalNativeBuildTaskUtils extends java.lang.ObjectShared utility methods for dealing with external native build tasks.
-
-
Constructor Summary
Constructors Constructor Description ExternalNativeBuildTaskUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanfileIsUpToDate(java.io.File source, java.io.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.
-
-
-
Method Detail
-
fileIsUpToDate
public static boolean fileIsUpToDate(@NonNull java.io.File source, @NonNull java.io.File derived) throws java.io.IOExceptionFile '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:
java.io.IOException- if there was a problem reading the timestamp of one of the files
-
-