Skip to content

Commit

Permalink
Remove fixed path
Browse files Browse the repository at this point in the history
  • Loading branch information
fabapp2 committed Nov 6, 2023
1 parent 036b811 commit ae53de5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.example.recipes.DummyRecipe;
import io.example.recipes.AnotherDummyRecipe;
import net.sf.saxon.functions.Remove;
import org.assertj.core.data.Index;
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.BeforeAll;
Expand Down Expand Up @@ -137,7 +138,8 @@ void loadOpenRewriteRecipes() {
void loadRecipeFromClasspath2() {
String[] acceptPackages = {}; // "com.example"
ClasspathScanningLoader loader = new ClasspathScanningLoader(new Properties(), acceptPackages);
Path jarPath = Path.of("/Users/fkrueger/.m2/repository/org/openrewrite/recipe/rewrite-spring/4.36.0/rewrite-spring-4.36.0.jar");// Path.of(System.getProperty("user.home")).resolve(".m2").resolve("repository/org/springframework/sbm/openrewrite-dummy-recipe/1.0-SNAPSHOT/openrewrite-dummy-recipe-1.0-SNAPSHOT.jar");
String path = System.getProperty("user.home");
Path jarPath = Path.of(path + "/.m2/repository/org/openrewrite/recipe/rewrite-spring/4.36.0/rewrite-spring-4.36.0.jar");// Path.of(System.getProperty("user.home")).resolve(".m2").resolve("repository/org/springframework/sbm/openrewrite-dummy-recipe/1.0-SNAPSHOT/openrewrite-dummy-recipe-1.0-SNAPSHOT.jar");


ClasspathScanningLoader classpathScanningLoader = new ClasspathScanningLoader(jarPath, new Properties(), Set.of(loader), getClass().getClassLoader());
Expand Down

0 comments on commit ae53de5

Please sign in to comment.