GP-5545_5600: ProgramLoader.Builder can now take a string-based source

This commit is contained in:
Ryan Kurtz 2025-07-07 06:45:18 -04:00
parent d4758498ac
commit 66f48fe95b

View file

@ -146,6 +146,18 @@ public class ProgramLoader {
return this; return this;
} }
/**
* Sets the required import source to the given filesystem path
* <p>
* NOTE: Any previously defined sources will be overwritten
*
* @param path The filesystem path to import. A {@code null} value will unset the source.
* @return This {@link Builder}
*/
public Builder source(String path) {
return source(new File(path));
}
/** /**
* Sets the {@link Project}. Loaders can use this to take advantage of existing * Sets the {@link Project}. Loaders can use this to take advantage of existing
* {@link DomainFolder}s and {@link DomainFile}s to do custom behaviors such as loading * {@link DomainFolder}s and {@link DomainFile}s to do custom behaviors such as loading