Ensure restarts recreate classpath.
This commit is contained in:
Jan Bartel 2017-07-20 13:24:46 +02:00 committed by Joakim Erdfelt
parent 2c60f59325
commit ccf89b81ad
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class JettyWebAppContext extends WebAppContext
private final List<File> _webInfClasses = new ArrayList<>();
private final List<File> _webInfJars = new ArrayList<>();
private final Map<String, File> _webInfJarMap = new HashMap<String, File>();
private List<File> _classpathFiles = new ArrayList<>(); //webInfClasses+testClasses+webInfJars
private List<File> _classpathFiles; //webInfClasses+testClasses+webInfJars
private String _jettyEnvXml;
private List<Overlay> _overlays;
private Resource _quickStartWebXml;
@ -413,6 +413,7 @@ public class JettyWebAppContext extends WebAppContext
_webInfClasses.add(_classes);
// Set up the classpath
_classpathFiles = new ArrayList<>();
_classpathFiles.addAll(_webInfClasses);
_classpathFiles.addAll(_webInfJars);