Skip to content

Commit

Permalink
Merge pull request #5619 from JabRef/fixeclipseconfig
Browse files Browse the repository at this point in the history
Add graalvm export also in eclipse gradle
  • Loading branch information
Siedlerchr authored Nov 16, 2019
2 parents e5e96b2 + 5804a83 commit e3277c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eclipse.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ 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 graaltruffle = entries.find{ isTruffleGraal(it) } ;
graaltruffle.entryAttributes['add-exports'] = 'com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle';

entries.findAll { isLibrary(it) && isTestScope(it) }.each { //mark test source files
it.entryAttributes['test'] = 'true'
Expand All @@ -54,6 +56,7 @@ boolean isControlsfx(entry) { return entry.properties.path.contains('controlsfx'

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

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

// add formatter and cleanup settings to Eclipse settings
// see http://stackoverflow.com/a/27461890/873282
Expand Down

0 comments on commit e3277c5

Please # to comment.