Class PathUtils

java.lang.Object
io.gitlab.ntduycse.util.PathUtils

public final class PathUtils extends Object
Path helpers for Spring Quickstart log output.
  • Method Details

    • relativeToProject

      public static String relativeToProject(org.gradle.api.Project project, File file)
      Returns a display-friendly path relative to the project directory, using forward slashes. Falls back to the absolute path (with forward slashes) when file is not inside the project directory, so the helper works on both Unix and Windows.
      Parameters:
      project - the owning project
      file - the file to relativize
      Returns:
      the relative path (or absolute fallback), always using / as separator