Issue #515 Alternate start modules

Additional usecases to test for loops in dynamic modules
This commit is contained in:
Greg Wilkins 2016-04-28 17:46:52 +10:00
parent 9800c3c128
commit d54ba38cb6
21 changed files with 45 additions and 0 deletions

View File

@ -287,6 +287,7 @@ public class Modules implements Iterable<Module>
{
Path file = _baseHome.getPath("modules/" + dependsOn + ".mod");
registerModule(file).expandProperties(_args.getProperties());
sort();
providers = _provided.get(dependsOn);
if (providers==null || providers.isEmpty())
throw new UsageException("Module %s does not provide %s",_baseHome.toShortForm(file),dependsOn);

View File

@ -0,0 +1,2 @@
EX|IllegalStateException
EX|cyclic

View File

@ -0,0 +1 @@
--add-to-startd=tom

View File

@ -0,0 +1 @@
--add-to-startd=other

View File

@ -0,0 +1,3 @@
[provides]
branch

View File

@ -0,0 +1,3 @@
[depends]
dynamic/harry

View File

@ -0,0 +1,3 @@
[depends]
tom

View File

@ -0,0 +1,3 @@
[provides]
branch

View File

@ -0,0 +1,3 @@
[depends]
branch

View File

@ -0,0 +1,3 @@
[depends]
dick

View File

@ -0,0 +1 @@
-module=root

View File

@ -0,0 +1,2 @@
EX|IllegalStateException
EX|cyclic

View File

@ -0,0 +1 @@
--add-to-startd=tom

View File

@ -0,0 +1,3 @@
[provides]
branch

View File

@ -0,0 +1,2 @@
[depends]
harry

View File

@ -0,0 +1,3 @@
[depends]
tom

View File

@ -0,0 +1,3 @@
[provides]
branch

View File

@ -0,0 +1,3 @@
[depends]
branch

View File

@ -0,0 +1,3 @@
[depends]
dick

View File

@ -0,0 +1 @@
-module=root