Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x

This commit is contained in:
Joakim Erdfelt 2023-03-20 13:58:11 -05:00
commit 705d68ebf3
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 4 additions and 5 deletions

View File

@ -63,12 +63,11 @@ public class JettyEffectiveWebXml extends AbstractUnassembledWebAppMojo
} }
} }
Path start = path.getName(0);
int count = path.getNameCount(); if ((path == null) || (path.startsWith("src") || !path.endsWith(".war")))
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"))
super.configureUnassembledWebApp(); super.configureUnassembledWebApp();
}
} }
/** /**