Merge pull request #9503 from eclipse/jetty-10.0.x-9497-effective-web-xml
Issue #9497 allow jetty:effective-web-xml for jar projects
This commit is contained in:
commit
574ad3b4da
|
@ -63,12 +63,11 @@ public class JettyEffectiveWebXml extends AbstractUnassembledWebAppMojo
|
|||
}
|
||||
}
|
||||
|
||||
Path start = path.getName(0);
|
||||
int count = path.getNameCount();
|
||||
Path end = path.getName(count > 0 ? count - 1 : count);
|
||||
//if the war is not assembled, we must configure it
|
||||
if (start.startsWith("src") || !end.toString().endsWith(".war"))
|
||||
|
||||
if ((path == null) || (path.startsWith("src") || !path.endsWith(".war")))
|
||||
{
|
||||
super.configureUnassembledWebApp();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue