java.lang.Object
org.springframework.modulith.docs.util.BuildSystemUtils
Utilities to detect the build system used.
- Since:
- 1.3
- Author:
- Oliver Drotbohm, Dennis Wittkötter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the path to the target folder for resources.static StringReturns a path to a resource in the build target folder.getTargetResource(String path) Returns aResourcein the build target folder.static StringDeprecated, for removal: This API element is subject to removal in a future version.since 1.4.4, 2.0.(package private) static boolean(package private) static booleanstatic booleanpointsToTestTarget(String path) Returns whether the given path points to a resource in the test target folder.
-
Constructor Details
-
BuildSystemUtils
public BuildSystemUtils()
-
-
Method Details
-
getTarget
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
Returns aResourcein the build target folder.- Parameters:
path- must not be null or empty.- Returns:
- will never be null.
-
getTestTarget
Deprecated, for removal: This API element is subject to removal in a future version.since 1.4.4, 2.0. UsepointsToTestTarget(String)instead.Returns the path to the folder containing test classes.- Returns:
- will never be null.
-
pointsToTestTarget
Returns whether the given path points to a resource in the test target folder.- Parameters:
path- must not be null or empty.
-
getResourceTarget
Returns the path to the target folder for resources.- Returns:
- will never be null.
- Since:
- 1.4
-
pointsToMavenTestTarget
-
pointsToGradleTestTarget
-