See gh-43560
This commit is contained in:
arefbehboudi 2024-12-18 20:18:29 +03:30 committed by Phillip Webb
parent ef431609ab
commit dbc1fc26e6
3 changed files with 6 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -55,8 +55,7 @@ public class JarFileRemoteApplicationLauncher extends RemoteApplicationLauncher
List<String> entries = new ArrayList<>(); List<String> entries = new ArrayList<>();
entries.add(appJar.getAbsolutePath()); entries.add(appJar.getAbsolutePath());
entries.addAll(getDependencyJarPaths()); entries.addAll(getDependencyJarPaths());
String classpath = StringUtils.collectionToDelimitedString(entries, File.pathSeparator); return StringUtils.collectionToDelimitedString(entries, File.pathSeparator);
return classpath;
} }
private void addToJar(JarOutputStream output, File root, File current) throws IOException { private void addToJar(JarOutputStream output, File root, File current) throws IOException {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2023 the original author or authors. * Copyright 2012-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -62,7 +62,7 @@ public class RestartApplicationListener implements ApplicationListener<Applicati
} }
private void onApplicationStartingEvent(ApplicationStartingEvent event) { private void onApplicationStartingEvent(ApplicationStartingEvent event) {
// It's too early to use the Spring environment but we should still allow // It's too early to use the Spring environment, but we should still allow
// users to disable restart using a System property. // users to disable restart using a System property.
String enabled = System.getProperty(ENABLED_PROPERTY); String enabled = System.getProperty(ENABLED_PROPERTY);
RestartInitializer restartInitializer = null; RestartInitializer restartInitializer = null;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2022 the original author or authors. * Copyright 2012-2024 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -167,7 +167,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
} }
/** /**
* Compound {@link Enumeration} that adds an additional item to the front. * Compound {@link Enumeration} that adds an item to the front.
*/ */
private static class CompoundEnumeration<E> implements Enumeration<E> { private static class CompoundEnumeration<E> implements Enumeration<E> {