mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 09:44:24 +00:00
Load module jars next to the compiled-in built-ins in the built-in pack fixture and leave the iris namespace free
IrisModuleHost no longer reserves the iris namespace. BuiltInPack can serve a pack folder whose modules folder holds module jars, PackModuleJar writes jars of several modules, and PackModuleJarNextToBuiltInsTest covers a jar of several modules in the iris namespace and a jar module with a compiled-in built-in's id failing as a duplicate.
This commit is contained in:
1 parent
2f3ba3cebe
commit
e670f96d26
4 files changed
+121
-5
No files matched your search
@@ -43,7 +43,7 @@ import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* The one {@link ModuleHost} every pack load uses: Iris's built-in modules, the built-in module API
|
||||
* package exposed to packs, Iris's own JSON fields, the reserved {@code iris} namespace, Iris's pack object
|
||||
* package exposed to packs, Iris's own JSON fields, Iris's pack object
|
||||
* model as host types, the pack folders Iris reads itself, a jar copy directory under the plugin's cache, and
|
||||
* Iris's log.
|
||||
*/
|
||||
@@ -52,7 +52,6 @@ public final class IrisModuleHost {
|
||||
public static final String BUILT_IN_API_PACKAGE = "art.arcane.iris.builtin";
|
||||
/** Iris's pack object model: built-in settings may hold these classes, which Iris reads and describes itself. */
|
||||
public static final String HOST_TYPE_PACKAGE = "art.arcane.iris.engine.object";
|
||||
static final String RESERVED_NAMESPACE = "iris";
|
||||
private static final String[] JAR_COPY_FOLDER = {"cache", "module-jars"};
|
||||
private static final String TEMPORARY_DIRECTORY_PROPERTY = "java.io.tmpdir";
|
||||
|
||||
@@ -82,7 +81,6 @@ public final class IrisModuleHost {
|
||||
private static ModuleHost build() {
|
||||
return ModuleHost.of(builtInModules())
|
||||
.exposing(BUILT_IN_API_PACKAGE)
|
||||
.reservingNamespaces(RESERVED_NAMESPACE)
|
||||
.reservingFields(ModuleTargets.reservedFields())
|
||||
.describingHostTypesIn(HOST_TYPE_PACKAGE)
|
||||
.reservingFolders(IrisData.ownFolderNames().toArray(String[]::new))
|
||||
|
||||
Reference in new issue
Block a user