warn on duplicate container resource for ee9
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
e7bac208b3
commit
4b0f45f121
|
@ -714,7 +714,11 @@ public class MetaData
|
|||
|
||||
public void addContainerResource(Resource jar)
|
||||
{
|
||||
_orderedContainerResources.add(jar);
|
||||
Objects.requireNonNull(jar);
|
||||
if (!_orderedContainerResources.contains(jar))
|
||||
_orderedContainerResources.add(jar);
|
||||
else
|
||||
LOG.warn("Duplicate Container Resource {}", jar);
|
||||
}
|
||||
|
||||
public void setWebInfClassesResources(List<Resource> dirs)
|
||||
|
|
Loading…
Reference in New Issue