Class Utils

  • All Implemented Interfaces:
    org.graalvm.buildtools.utils.SharedConstants

    public abstract class Utils
    extends java.lang.Object
    implements org.graalvm.buildtools.utils.SharedConstants
    Utility class containing various native-image and JVM related methods.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MAVEN_GROUP_ID  
      static java.lang.String NATIVE_TESTS_EXE  
      • Fields inherited from interface org.graalvm.buildtools.utils.SharedConstants

        AGENT_OUTPUT_FOLDER, AGENT_PROPERTY, DEFAULT_EXCLUDES_FOR_RESOURCE_DETECTION, EXECUTABLE_EXTENSION, GRAALVM_EXE_EXTENSION, GU_EXE, IS_WINDOWS, NATIVE_IMAGE_EXE, NATIVE_IMAGE_OUTPUT_FOLDER, NATIVE_TESTS_SUFFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.file.Path getJavaHomeNativeImage​(java.lang.String javaHomeVariable, java.lang.Boolean failFast)  
      static java.nio.file.Path getNativeImage()  
      static java.nio.file.Path getNativeImageFromPath()  
      • Methods inherited from class java.lang.Object

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

      • NATIVE_TESTS_EXE

        public static final java.lang.String NATIVE_TESTS_EXE
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • getJavaHomeNativeImage

        public static java.nio.file.Path getJavaHomeNativeImage​(java.lang.String javaHomeVariable,
                                                                java.lang.Boolean failFast)
                                                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getNativeImageFromPath

        public static java.nio.file.Path getNativeImageFromPath()
      • getNativeImage

        public static java.nio.file.Path getNativeImage()
                                                 throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException