Class BuildSystemUtils

java.lang.Object
org.springframework.modulith.docs.util.BuildSystemUtils

public class BuildSystemUtils extends Object
Utilities to detect the build system used.
Since:
1.3
Author:
Oliver Drotbohm
  • Constructor Details

    • BuildSystemUtils

      public BuildSystemUtils()
  • Method Details

    • getTarget

      public static String getTarget(String path)
      Returns a path to a resource in the build target folder.
      Parameters:
      path - must not be null or empty.
      Returns:
      will never be null.
    • getTargetResource

      public static Optional<Resource> getTargetResource(String path)
      Returns a Resource in the build target folder.
      Parameters:
      path - must not be null or empty.
      Returns:
      will never be null.
    • getTestTarget

      public static String getTestTarget()
      Returns the path to the folder containing test classes.
      Returns:
      will never be null.