-
Notifications
You must be signed in to change notification settings - Fork 40
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 executing with JDK headless #45
Conversation
Tested on Yocto Project and it worked just fine. Fixes: #27 LGTM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd annotate on the commit log a better explanation of the issue as well as it fixes #27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems you succeed in reducing a lot the code involved in this processing. There are some commented code and it would be nice if it could be removed.
Can we re-test this? or should we wait? |
yeah, this new implementation uses only ImageIO, nothing from awt and media toolkit which are not always available on headless environment. |
Yup, it's done. :) |
Are you intending to squash the changes? if so, please do and we can run a test here. |
ea21dd4
to
519ea03
Compare
Done! |
Deploy uses TotalCross' Image class to convert unsupported image formats to PNG, and this process relied on classes from java.awt and Toolkit, which may not be available on headless distros. Changed implementation of ImageLoader to perform this conversion using ImageIO instead, with some refactoring along the way for clarity. Fixes #27
519ea03
to
e8c50e3
Compare
@otavio waiting for the test! =) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, it worked fine.
LGTM.
…#45) Deploy uses TotalCross' Image class to convert unsupported image formats to PNG, and this process relied on classes from java.awt and Toolkit, which may not be available on headless distros. Changed implementation of ImageLoader to perform this conversion using ImageIO instead, with some refactoring along the way for clarity. Fixes #27 Co-authored-by: Fabio <flsobral@gmail.com>
…#45) Deploy uses TotalCross' Image class to convert unsupported image formats to PNG, and this process relied on classes from java.awt and Toolkit, which may not be available on headless distros. Changed implementation of ImageLoader to perform this conversion using ImageIO instead, with some refactoring along the way for clarity. Fixes #27 Co-authored-by: Fabio <flsobral@gmail.com>
Description:
Describe your changes in details.
Related Issue:
Motivation and Context:
Solves the problem with deploying totalcross java components from api to tcz when using Java Headless.
Benefited Devices:
How Has This Been Tested?
Tested Devices: