Commit 1381fe17 authored by Phillip Webb's avatar Phillip Webb

Polish

parent 28f7cf44
......@@ -85,14 +85,12 @@ public class AgentTasksEnhancer implements Action<Project> {
if (loaded != null) {
CodeSource source = loaded.getProtectionDomain().getCodeSource();
if (source != null) {
File agent;
try {
agent = new File(source.getLocation().toURI());
return new File(source.getLocation().toURI());
}
catch (URISyntaxException ex) {
agent = new File(source.getLocation().getPath());
return new File(source.getLocation().getPath());
}
return agent;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment