Move Application* and *FileWriter classes
Move `ApplicationHome`, `ApplicationPid` and `ApplicationTemp` to the `system` package. Since `system` package is now much lower level, the existing `FileWriter` implementations also needed to move to prevent package tangles. Fixes gh-8614
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -17,7 +17,7 @@
|
||||
package org.springframework.boot.cli;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.system.EmbeddedServerPortFileWriter;
|
||||
import org.springframework.boot.web.context.WebServerPortFileWriter;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
|
||||
/**
|
||||
@@ -33,7 +33,7 @@ public class CliTesterSpringApplication extends SpringApplication {
|
||||
|
||||
@Override
|
||||
protected void postProcessApplicationContext(ConfigurableApplicationContext context) {
|
||||
context.addApplicationListener(new EmbeddedServerPortFileWriter());
|
||||
context.addApplicationListener(new WebServerPortFileWriter());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user