Closes gh-4572
This commit is contained in:
Johnny Lim
2015-11-21 12:12:05 +09:00
committed by Stephane Nicoll
parent 31d7ebc96e
commit 8ec00c35bf
40 changed files with 70 additions and 70 deletions

View File

@@ -43,7 +43,7 @@ import org.springframework.boot.gradle.SpringBootPluginExtension;
*/
public class AgentTasksEnhancer implements Action<Project> {
private static final String SPRING_LOADED_AGENT_CLASSNAME = "org.springsource.loaded.agent.SpringLoadedAgent";
private static final String SPRING_LOADED_AGENT_CLASS_NAME = "org.springsource.loaded.agent.SpringLoadedAgent";
private File agent;
@@ -83,7 +83,7 @@ public class AgentTasksEnhancer implements Action<Project> {
private File getSpringLoadedAgent() {
try {
Class<?> loaded = Class.forName(SPRING_LOADED_AGENT_CLASSNAME);
Class<?> loaded = Class.forName(SPRING_LOADED_AGENT_CLASS_NAME);
if (loaded != null) {
CodeSource source = loaded.getProtectionDomain().getCodeSource();
if (source != null) {