Open sbordet opened 1 year ago
Also, currently the scanner reports the entries to deploy in random order (by using a HashMap.keySet()
).
Would be great if this could be normalized to alphabetical order, so that it would be possible to rely on a consistent deployment order for those cases where webapp B depends on webapp A.
See also tasks in #5748
Jetty version(s) 12
Description Now that we have multiple environments, each
ScanningAppProvider
scans thewebapps/
directory, and tries to deploy what's in there.This is not optimal: we should have one scanner only, and offer what's been scanned to the environment deployers to deploy. In this way we can detect if there are applications that do not have a deployer and won't be deployed.
We don't want to end up in situations such as:
The logs above show that the
core
deployer started, scanned, found an app with explicit*.properties
file indicating theee10
environment, and emitting a warning that it cannot deploy it. But then, theee10
deployer starts, scans (again), finds the app, and deploys it.If the app was an
ee9
app, neithercore
noree10
would have been able to deploy it, with either a double warning, or no warning (if the warning message is demoted to DEBUG level).