Class ExternalNativeBuildTaskUtils


  • public class ExternalNativeBuildTaskUtils
    extends java.lang.Object
    Shared utility methods for dealing with external native build tasks.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean fileIsUpToDate​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalNativeBuildTaskUtils

        public ExternalNativeBuildTaskUtils()
    • Method Detail

      • fileIsUpToDate

        public static boolean fileIsUpToDate​(@NonNull
                                             java.io.File source,
                                             @NonNull
                                             java.io.File derived)
                                      throws java.io.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:
        java.io.IOException - if there was a problem reading the timestamp of one of the files