Package com.axelor.ai.seed
Class Sources
java.lang.Object
com.axelor.ai.seed.Sources
Helpers for deriving
AiSources.-
Method Summary
-
Method Details
-
sub
A view ofsourcerestricted to entries underprefix/, with the prefix removed. -
reroot
Normalizes a bundle whose type dirs are nested under wrapper directories — zipping a folder yieldsmyBundle/skills/...rather thanskills/.... When noknownRootsdir appears at the top level but every entry shares a single leading segment, that segment is stripped, repeated until a known root surfaces. A source already rooted at a known dir (e.g. the classpathai/bundle) is returned unchanged.
-