-
Notifications
You must be signed in to change notification settings - Fork 17
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
Update to Java 17 and other improvements #134
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is required in order for JOGL to work. It's ugly, I know. But right now, there doesn't seem to exist a better solution. Let's hope it doesn't break anytime soon...
We need to set Multi-Release to true so that log4j can determine the correct class names. Otherwise, the app wouldn't work when running as a jar (and not inside an IDE).
With this approach, we don't have to maintain two separate build scripts and keep both up-to-date. Also, you can invoke Gradle now directly instead of calling the old build scripts. Those are only kept for compatibility reasons.
There may be some issues left to make the app fully work. However, this should pretty much cover the additional building steps required.
Instead of parsing the arguments and replacing the paths to the log files with absolute paths, we'll just keep the current working directory. We then refer to the Jar file through the already existing DIR variable. This also supports setting the Dock icon on macOS if the application is running inside of a bundled application. And on top of that, the script should now be compatible with other POSIX-compatible shells (not just bash).
Otherwise, we'd try to copy the jar file before it was created.
Until now, RoboViz would not start without a config file being present. Now, we'll just use the default hardcoded configuration values in that case. When attempting to save the configuration using the built-in configuration editor, RoboViz will ask if a new configuration file should be initialized (if none is present so far).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A summary of the relevant changes of this pull request:
binDir
task that creates thebin
directory with all the necessary files. The oldbuild.sh
script is only kept for backwards compatibility. Instead, you can just usegradle binDir
now.macOSApp
task. For example, this allows RoboViz to be placed in the dock. It mostly appears in the same way as other GUI applications on macOS.roboviz.sh
script got simplified.A few more notes:
Testing and any kind of feedback are very appreciated. Thanks.