|
|
|
@ -24,6 +24,9 @@ import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
|
|
|
|
|
|
import org.springframework.core.io.UrlResource;
|
|
|
|
|
import org.springframework.core.io.support.PropertiesLoaderUtils;
|
|
|
|
|
|
|
|
|
@ -40,6 +43,8 @@ public class DevToolsSettings {
|
|
|
|
|
*/
|
|
|
|
|
public static final String SETTINGS_RESOURCE_LOCATION = "META-INF/spring-devtools.properties";
|
|
|
|
|
|
|
|
|
|
private static final Log logger = LogFactory.getLog(DevToolsSettings.class);
|
|
|
|
|
|
|
|
|
|
private static DevToolsSettings settings;
|
|
|
|
|
|
|
|
|
|
private final List<Pattern> restartIncludePatterns = new ArrayList<Pattern>();
|
|
|
|
@ -105,6 +110,12 @@ public class DevToolsSettings {
|
|
|
|
|
settings.add(PropertiesLoaderUtils
|
|
|
|
|
.loadProperties(new UrlResource(urls.nextElement())));
|
|
|
|
|
}
|
|
|
|
|
if (logger.isDebugEnabled()) {
|
|
|
|
|
logger.debug("Included patterns for restart : "
|
|
|
|
|
+ settings.restartIncludePatterns);
|
|
|
|
|
logger.debug("Excluded patterns for restart : "
|
|
|
|
|
+ settings.restartExcludePatterns);
|
|
|
|
|
}
|
|
|
|
|
return settings;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex) {
|
|
|
|
|