Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
yet another patcher-sourced fix, heh. Version-a-day!
Browse files Browse the repository at this point in the history
  • Loading branch information
rzwitserloot committed Mar 1, 2014
1 parent 1fa0114 commit fbab1ca
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ivy-module version="2.0">
<info organisation="org.projectlombok" module="lombok.patcher" revision="0.11" publication="20140301023500">
<info organisation="org.projectlombok" module="lombok.patcher" revision="0.12" publication="20140301023600">
<license name="MIT License" url="http://www.opensource.org/licenses/mit-license.php" />
<ivyauthor name="rzwitserloot" url="http://zwitserloot.com/" />
<ivyauthor name="rspilker" url="http://github.com/rspilker" />
Expand All @@ -9,6 +9,6 @@
<conf name="default" />
</configurations>
<publications>
<artifact conf="default" url="http://projectlombok.org/downloads/lombok.patcher-0.11.jar" />
<artifact conf="default" url="http://projectlombok.org/downloads/lombok.patcher-0.12.jar" />
</publications>
</ivy-module>
14 changes: 0 additions & 14 deletions buildScripts/ivy-repo/org.projectlombok-lombok.patcher-0.6.xml

This file was deleted.

14 changes: 0 additions & 14 deletions buildScripts/ivy-repo/org.projectlombok-lombok.patcher-0.7.xml

This file was deleted.

2 changes: 1 addition & 1 deletion buildScripts/ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<conf name="javac7" />
</configurations>
<dependencies>
<dependency org="org.projectlombok" name="lombok.patcher" rev="0.11" conf="buildBase->default; runtime->default" />
<dependency org="org.projectlombok" name="lombok.patcher" rev="0.12" conf="buildBase->default; runtime->default" />
<dependency org="zwitserloot.com" name="cmdreader" rev="1.2" conf="buildBase->runtime; runtime" />

<dependency org="junit" name="junit" rev="4.8.2" conf="test->default; contrib->sources" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic.Kind;

import lombok.patcher.HomeFinder;
import lombok.patcher.ClassRootFinder;
import lombok.patcher.Hook;
import lombok.patcher.MethodTarget;
import lombok.patcher.ScriptManager;
Expand All @@ -57,7 +57,7 @@ public class DisableCheckedExceptionsAgent extends AbstractProcessor {
procEnv.getMessager().printMessage(Kind.WARNING, "You aren't using a compiler based around javac v1.6, so disableCheckedExceptions will not work.\n" +
"Your processor class is: " + className);
} else {
new LiveInjector().inject(HomeFinder.findHomeOfClass(DisableCheckedExceptionsAgent.class));
new LiveInjector().inject(ClassRootFinder.findClassRootOfClass(DisableCheckedExceptionsAgent.class));
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/lombok/core/AnnotationProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic.Kind;

import lombok.patcher.HomeFinder;
import lombok.patcher.ClassRootFinder;

@SupportedAnnotationTypes("*")
public class AnnotationProcessor extends AbstractProcessor {
Expand Down Expand Up @@ -102,7 +102,7 @@ private ClassLoader findAndPatchClassLoader(ProcessingEnvironment procEnv) throw
if (environmentClassLoader != null && environmentClassLoader.getClass().getCanonicalName().equals("org.codehaus.plexus.compiler.javac.IsolatedClassLoader")) {
if (lombokAlreadyAddedTo.put(environmentClassLoader, true) == null) {
Method m = environmentClassLoader.getClass().getDeclaredMethod("addURL", URL.class);
URL selfUrl = new File(HomeFinder.findHomeOfClass(AnnotationProcessor.class)).toURI().toURL();
URL selfUrl = new File(ClassRootFinder.findClassRootOfClass(AnnotationProcessor.class)).toURI().toURL();
m.invoke(environmentClassLoader, selfUrl);
}
return environmentClassLoader;
Expand Down
4 changes: 2 additions & 2 deletions src/core/lombok/core/PublicApiCreatorApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import java.util.zip.ZipEntry;

import lombok.Lombok;
import lombok.patcher.HomeFinder;
import lombok.patcher.ClassRootFinder;

import org.mangosdk.spi.ProviderFor;

Expand Down Expand Up @@ -79,7 +79,7 @@ public class PublicApiCreatorApp extends LombokApp {
* a jar that wasn't accessed via the file-system, or if its started via e.g. unpacking the jar.
*/
private static File findOurJar() {
return new File(HomeFinder.findHomeOfClass(PublicApiCreatorApp.class));
return new File(ClassRootFinder.findClassRootOfClass(PublicApiCreatorApp.class));
}

private int writeApiJar(File outFile) throws Exception {
Expand Down
4 changes: 2 additions & 2 deletions src/installer/lombok/installer/IdeLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.net.URL;

import lombok.installer.eclipse.EclipseFinder;
import lombok.patcher.HomeFinder;
import lombok.patcher.ClassRootFinder;

/**
* Represents a location that contains an IDE.
Expand All @@ -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(HomeFinder.findHomeOfClass(IdeFinder.class));
return new File(ClassRootFinder.findClassRootOfClass(IdeFinder.class));
}

@Override public String toString() {
Expand Down
4 changes: 2 additions & 2 deletions src/installer/lombok/installer/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import lombok.core.SpiLoadUtil;
import lombok.core.Version;
import lombok.installer.IdeFinder.OS;
import lombok.patcher.HomeFinder;
import lombok.patcher.ClassRootFinder;

import org.mangosdk.spi.ProviderFor;

Expand Down Expand Up @@ -101,7 +101,7 @@ static void autoDiscover(List<IdeLocation> locations, List<CorruptedIdeLocationE
}

public static boolean isSelf(String jar) {
String self = HomeFinder.findHomeOfClass(Installer.class);
String self = ClassRootFinder.findClassRootOfClass(Installer.class);
if (self == null) return false;
File a = new File(jar).getAbsoluteFile();
File b = new File(self).getAbsoluteFile();
Expand Down

0 comments on commit fbab1ca

Please sign in to comment.