diff options
author | Hank <true_cp@163.com> | 2019-09-05 19:35:25 +0800 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2019-09-05 14:35:25 +0300 |
commit | cc6fe5e389bac639d9f5e2e3897a83e7a685bd53 (patch) | |
tree | dfc6a0bf6895bb16f065e885fee98a0e7da834ed /pf4j/src/main/java/org | |
parent | 628bc9d92d483aef7318d02df97ca33d897de8ca (diff) | |
download | pf4j-cc6fe5e389bac639d9f5e2e3897a83e7a685bd53.tar.gz pf4j-cc6fe5e389bac639d9f5e2e3897a83e7a685bd53.zip |
Add IDEA classpath for Development mode (#323)
Diffstat (limited to 'pf4j/src/main/java/org')
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 <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()); } } |