Package org.mycore.common
Class MCRDeveloperTools
java.lang.Object
org.mycore.common.MCRDeveloperTools
- Author:
- Sebastian Hofmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetOverriddenFilePath
(String path, boolean webResource) Reads the propertyMCR.Developer.Resource.Override
and checks if any of the containing paths contains the path parameter.static boolean
-
Constructor Details
-
MCRDeveloperTools
public MCRDeveloperTools()
-
-
Method Details
-
overrideActive
public static boolean overrideActive()- Returns:
- true if any override is defined
-
getOverriddenFilePath
Reads the propertyMCR.Developer.Resource.Override
and checks if any of the containing paths contains the path parameter.- Parameters:
path
- the resource to overridewebResource
- if true META-INF/resources will be appended to the paths in the property- Returns:
- the path to new file
-