diff options
author | Joakim Erdfelt | 2014-04-15 21:54:19 +0000 |
---|---|---|
committer | Joakim Erdfelt | 2014-04-15 21:54:19 +0000 |
commit | 348cd406c8cda54a1c6d1934dbb1b6138a92cbe0 (patch) | |
tree | f3ee4d7e42bbd66740514a5e1f93263a8d345623 | |
parent | e5314d4a3e0df85a786bcddb3927a0793f32f52e (diff) | |
download | org.eclipse.jetty.project-348cd406c8cda54a1c6d1934dbb1b6138a92cbe0.tar.gz org.eclipse.jetty.project-348cd406c8cda54a1c6d1934dbb1b6138a92cbe0.tar.xz org.eclipse.jetty.project-348cd406c8cda54a1c6d1934dbb1b6138a92cbe0.zip |
Removing deprecated methods
-rw-r--r-- | jetty-start/src/main/java/org/eclipse/jetty/start/BaseHome.java | 52 |
1 files changed, 3 insertions, 49 deletions
diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/BaseHome.java b/jetty-start/src/main/java/org/eclipse/jetty/start/BaseHome.java index 35485ad7c6..70ca6bebd5 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/BaseHome.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/BaseHome.java @@ -183,34 +183,18 @@ public class BaseHome return baseDir.toString(); } - /** - * @deprecated use {@link #getBasePath()} - */ - @Deprecated - public File getBaseDir() + public Path getBasePath() { - return baseDir.toFile(); + return baseDir; } /** - * Create a file reference to some content in <code>"${jetty.base}"</code> + * Create a {@link Path} reference to some content in <code>"${jetty.base}"</code> * * @param path * the path to reference * @return the file reference - * @deprecated use {@link #getBasePath(String)} */ - @Deprecated - public File getBaseFile(String path) - { - return baseDir.resolve(path).toFile(); - } - - public Path getBasePath() - { - return baseDir; - } - public Path getBasePath(String path) { return baseDir.resolve(path); @@ -221,41 +205,11 @@ public class BaseHome return this.sources; } - /** - * Get a specific file reference. - * <p> - * File references go through 3 possibly scenarios. - * <ol> - * <li>If exists relative to <code>${jetty.base}</code>, return that reference</li> - * <li>If exists relative to <code>${jetty.home}</code>, return that reference</li> - * <li>Otherwise return absolute path reference (standard java logic)</li> - * </ol> - * - * @param path - * the path to get. - * @return the file reference. - * @deprecated use {@link #getPath(String)} - */ - @Deprecated - public File getFile(String path) - { - return getPath(path).toAbsolutePath().toFile(); - } - public String getHome() { return homeDir.toString(); } - /** - * @deprecated use {@link #getHomePath()} - */ - @Deprecated - public File getHomeDir() - { - return homeDir.toFile(); - } - public Path getHomePath() { return homeDir; |