]> source.dussan.org Git - pf4j.git/commitdiff
Add IDEA classpath for Development mode (#323)
authorHank <true_cp@163.com>
Thu, 5 Sep 2019 11:35:25 +0000 (19:35 +0800)
committerDecebal Suiu <decebal.suiu@gmail.com>
Thu, 5 Sep 2019 11:35:25 +0000 (14:35 +0300)
pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java

index 4d7727dda5ad935dd7d0e7591362c55635c04293..e5bd5378561a33d81dfb378e707b937fc1f58557 100644 (file)
@@ -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 <a href="https://www.jetbrains.com/help/idea/specifying-compilation-settings.html">IDEA</a>.
+     * 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());
     }
 
 }