Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into enableFetcherTEst
Browse files Browse the repository at this point in the history
* upstream/master:
  Fix eclipse javafx module access  (#5390)
  Add UUID for upgrading (#5391)
  • Loading branch information
Siedlerchr committed Oct 5, 2019
2 parents 1197cb6 + cb65af0 commit b75ad56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ jlink {
installerOptions = [
'--vendor', 'JabRef',
'--app-version', "${project.version}",
'--win-upgrade-uuid', 'd636b4ee-6f10-451e-bf57-c89656780e36',
'--win-dir-chooser',
'--win-shortcut'
]
Expand Down
12 changes: 6 additions & 6 deletions eclipse.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ eclipse {
it.entryAttributes['test'] = 'true'
}

def jreContainer = entries.find { isJREContainer(it) };
jreContainer.entryAttributes['add-exports'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref';
jreContainer.entryAttributes['add-opens'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref';
def javafxcontrols = entries.find { isJavafxControls(it) };
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';


entries.findAll { isLibrary(it) && isTestScope(it) }.each { //mark test source files
it.entryAttributes['test'] = 'true'
Expand All @@ -51,9 +52,8 @@ boolean isSource(entry) { return entry.properties.kind.equals('src'); }

boolean isControlsfx(entry) { return entry.properties.path.contains('controlsfx'); }

boolean isJREContainer(entry) {
return entry.properties.kind == 'con' && entry.properties.path.startsWith('org.eclipse.jdt.launching.JRE_CONTAINER')
};
boolean isJavafxControls(entry) { return entry.properties.path.contains('javafx-controls'); }


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

0 comments on commit b75ad56

Please sign in to comment.