From: Hank Date: Thu, 5 Sep 2019 11:35:25 +0000 (+0800) Subject: Add IDEA classpath for Development mode (#323) X-Git-Tag: release-3.1.0~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc6fe5e389bac639d9f5e2e3897a83e7a685bd53;p=pf4j.git Add IDEA classpath for Development mode (#323) --- 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()); } }