Class MCRDeveloperTools

java.lang.Object
org.mycore.common.MCRDeveloperTools

public class MCRDeveloperTools extends Object
Author:
Sebastian Hofmann
  • Constructor Details

    • MCRDeveloperTools

      public MCRDeveloperTools()
  • Method Details

    • overrideActive

      public static boolean overrideActive()
      Returns:
      true if any override is defined
    • getOverriddenFilePath

      public static Optional<Path> getOverriddenFilePath(String path, boolean webResource)
      Reads the property MCR.Developer.Resource.Override and checks if any of the containing paths contains the path parameter.
      Parameters:
      path - the resource to override
      webResource - if true META-INF/resources will be appended to the paths in the property
      Returns:
      the path to new file