Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken startScripts in $destinationDir/bin dirs #1979

Merged
merged 2 commits into from
Nov 27, 2018

Conversation

freimair
Copy link
Contributor

A recent change in the build procedure produces broken startScripts in the respective $destinationDir/bin-directories.

Issue

startScripts located in $destinationDir/bin-directories yield

Error: Could not find or load main class bisq.desktop.app.BisqAppMain
Caused by: java.lang.ClassNotFoundException: bisq.desktop.app.BisqAppMain

when executed.

Cause

The startScripts get changed in order to be executed in the project root directory. However, they get changed before they are copied and thus, the original startScripts (still located in the $destinationDir/bin-directories) have a wrong path prefix for the classpath declaration (i.e. .../bin/lib/... instead of .../bin/../lib/...)

Fix

First copy the startScripts to rootProject.projectDir and only then change them.

Notes

@freimair freimair requested a review from cbeams as a code owner November 27, 2018 02:16
@ripcurlx
Copy link
Contributor

utACK - I'll leave it to @cbeams to ACK and merge.

Prior to this fix, the build failed with the following error:

    FAILURE: Build failed with an exception.

    * Where:
    Build file '/Users/cbeams/Work/bisq-network/bisq/build.gradle' line: 109

    * What went wrong:
    Execution failed for task ':desktop:installDist'.
    > No such property: bat for class: java.lang.String
Copy link
Contributor

@cbeams cbeams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Thanks for the fix, @freimair. Please see the additional commit I pushed at 5c9eac9.

Nit: In the future, please favor the Git idiom of branch names separated with dashes (lisp case), e.g. fix-broken-executables vs. lowerCamelCase, e.g. fixBrokenExecutables.

@cbeams cbeams merged commit 2026da0 into bisq-network:master Nov 27, 2018
cbeams added a commit that referenced this pull request Nov 27, 2018
Fix broken startScripts in $destinationDir/bin dirs
@freimair freimair deleted the fixBrokenExecutables branch November 27, 2018 09:46
@freimair
Copy link
Contributor Author

hm. I did not get this error when I tested fix locally. And Travis did not complain either.

regarding lisp case: old habits. I will try :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants