diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-03-01 02:14:24 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-03-01 02:14:59 +0100 |
commit | ed57bc84b051debe8f8904a5fe90a36c300aa64a (patch) | |
tree | e4766c8f2ef4018df598e59e1057019c7c123aa6 /src/installer/lombok | |
parent | 0bd2425b29b3433f8d4b3a9d662119a5430ef183 (diff) | |
download | lombok-ed57bc84b051debe8f8904a5fe90a36c300aa64a.tar.gz lombok-ed57bc84b051debe8f8904a5fe90a36c300aa64a.tar.bz2 lombok-ed57bc84b051debe8f8904a5fe90a36c300aa64a.zip |
Updating to new lombok.patcher 'HomeFinder'.
Diffstat (limited to 'src/installer/lombok')
-rw-r--r-- | src/installer/lombok/installer/IdeLocation.java | 6 | ||||
-rw-r--r-- | src/installer/lombok/installer/Installer.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/installer/lombok/installer/IdeLocation.java b/src/installer/lombok/installer/IdeLocation.java index 4d28fb90..ea1f470f 100644 --- a/src/installer/lombok/installer/IdeLocation.java +++ b/src/installer/lombok/installer/IdeLocation.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 The Project Lombok Authors. + * Copyright (C) 2009-2014 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,7 +26,7 @@ import java.io.IOException; import java.net.URL; import lombok.installer.eclipse.EclipseFinder; -import lombok.patcher.inject.LiveInjector; +import lombok.patcher.HomeFinder; /** * Represents a location that contains an IDE. @@ -46,7 +46,7 @@ public abstract class IdeLocation { * a jar that wasn't accessed via the file-system, or if its started via e.g. unpacking the jar. */ public static File findOurJar() { - return new File(LiveInjector.findPathJar(IdeFinder.class)); + return new File(HomeFinder.findHomeOfClass(IdeFinder.class)); } @Override public String toString() { diff --git a/src/installer/lombok/installer/Installer.java b/src/installer/lombok/installer/Installer.java index 29ffde89..4050ad95 100644 --- a/src/installer/lombok/installer/Installer.java +++ b/src/installer/lombok/installer/Installer.java @@ -39,7 +39,7 @@ import lombok.core.LombokApp; import lombok.core.SpiLoadUtil; import lombok.core.Version; import lombok.installer.IdeFinder.OS; -import lombok.patcher.inject.LiveInjector; +import lombok.patcher.HomeFinder; import org.mangosdk.spi.ProviderFor; @@ -101,7 +101,7 @@ public class Installer { } public static boolean isSelf(String jar) { - String self = LiveInjector.findPathJar(Installer.class); + String self = HomeFinder.findHomeOfClass(Installer.class); if (self == null) return false; File a = new File(jar).getAbsoluteFile(); File b = new File(self).getAbsoluteFile(); |