Issue #515 Alternate start modules
Additional usecases to test for loops in dynamic modules
This commit is contained in:
parent
9800c3c128
commit
d54ba38cb6
|
@ -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);
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
EX|IllegalStateException
|
||||
EX|cyclic
|
|
@ -0,0 +1 @@
|
|||
--add-to-startd=tom
|
|
@ -0,0 +1 @@
|
|||
--add-to-startd=other
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[provides]
|
||||
branch
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[depends]
|
||||
dynamic/harry
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[depends]
|
||||
tom
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[provides]
|
||||
branch
|
|
@ -0,0 +1,3 @@
|
|||
[depends]
|
||||
branch
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[depends]
|
||||
dick
|
|
@ -0,0 +1 @@
|
|||
-module=root
|
|
@ -0,0 +1,2 @@
|
|||
EX|IllegalStateException
|
||||
EX|cyclic
|
|
@ -0,0 +1 @@
|
|||
--add-to-startd=tom
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[provides]
|
||||
branch
|
|
@ -0,0 +1,2 @@
|
|||
[depends]
|
||||
harry
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[depends]
|
||||
tom
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[provides]
|
||||
branch
|
|
@ -0,0 +1,3 @@
|
|||
[depends]
|
||||
branch
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
[depends]
|
||||
dick
|
|
@ -0,0 +1 @@
|
|||
-module=root
|
Loading…
Reference in New Issue