From cc6fe5e389bac639d9f5e2e3897a83e7a685bd53 Mon Sep 17 00:00:00 2001 From: Hank Date: Thu, 5 Sep 2019 19:35:25 +0800 Subject: Add IDEA classpath for Development mode (#323) --- pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pf4j/src/main/java/org') diff --git a/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java b/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java index 4d7727d..e5bd537 100644 --- a/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java +++ b/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java @@ -41,14 +41,22 @@ public class DevelopmentPluginClasspath extends PluginClasspath { */ public static final PluginClasspath KOTLIN = new PluginClasspath().addClassesDirectories("build/classes/kotlin/main", "build/resources/main", "build/tmp/kapt3/classes/main"); + /** + * The development plugin classpath for IDEA. + * The classes directories are {@code out/production/classes", out/production/resource}. + */ + public static final PluginClasspath IDEA = new PluginClasspath().addClassesDirectories("out/production/classes", "out/production/resource"); + public DevelopmentPluginClasspath() { addClassesDirectories(MAVEN.getClassesDirectories()); addClassesDirectories(GRADLE.getClassesDirectories()); addClassesDirectories(KOTLIN.getClassesDirectories()); + addClassesDirectories(IDEA.getClassesDirectories()); addJarsDirectories(MAVEN.getJarsDirectories()); addJarsDirectories(GRADLE.getJarsDirectories()); addJarsDirectories(KOTLIN.getJarsDirectories()); + addJarsDirectories(IDEA.getJarsDirectories()); } } -- cgit v1.2.3