Skip to content

Commit

Permalink
Fix eclipse classpath build file
Browse files Browse the repository at this point in the history
Add missing --add opens for controlsfx in eclipse classpath
  • Loading branch information
Siedlerchr committed Dec 4, 2019
1 parent 16bb6fd commit fe8f4cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eclipse.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ eclipse {
javafxcontrols.entryAttributes['add-exports'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref:javafx.controls/com.sun.javafx.scene.control.behavior=org.jabref:javafx.controls/javafx.scene.control=org.jabref';
javafxcontrols.entryAttributes['add-opens'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref:javafx.controls/com.sun.javafx.scene.control.behavior=org.jabref:javafx.controls/javafx.scene.control=org.jabref';

def javafxgraphics = entries.find { isJavafxGraphics(it) };
javafxgraphics.entryAttributes['add-opens'] = 'javafx.graphics/javafx.scene=org.controlsfx.controls';

def graaltruffle = entries.find{ isTruffleGraal(it) } ;
graaltruffle.entryAttributes['add-exports'] = 'com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle';

Expand Down Expand Up @@ -56,6 +59,8 @@ boolean isControlsfx(entry) { return entry.properties.path.contains('controlsfx'

boolean isJavafxControls(entry) { return entry.properties.path.contains('javafx-controls'); }

boolean isJavafxGraphics(entry) { return entry.properties.path.contains('javafx-graphics'); }

boolean isTruffleGraal(entry) {return entry.properties.path.contains('org.graalvm.regex'); }

// add formatter and cleanup settings to Eclipse settings
Expand Down

0 comments on commit fe8f4cd

Please sign in to comment.