Skip to content

Commit

Permalink
Merge pull request #5711 from JabRef/fixeclipseclasspath
Browse files Browse the repository at this point in the history
Fix eclipse classpath build file
  • Loading branch information
Siedlerchr committed Dec 4, 2019
2 parents 16bb6fd + fe8f4cd commit 5dcb565
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 5dcb565

Please sign in to comment.