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

Use a dynamic sources encoding during a hot reload compilation #3487

Merged

Conversation

gwenneg
Copy link
Member

@gwenneg gwenneg commented Aug 12, 2019

Fixes #3486

@gwenneg gwenneg force-pushed the issue-3486-dynamic-hot-reload-sources-encoding branch from d320094 to 64a97e2 Compare August 12, 2019 20:47

this.name = name;
this.classpath = classpath;
this.projectDirectory = projectDirectory;
this.sourceDirectory = sourceDirectory;
this.outputDirectory = outputDirectory;
this.sourceEncoding = sourceEncoding == null ? StandardCharsets.UTF_8 : Charset.forName(sourceEncoding);
Copy link
Member Author

Choose a reason for hiding this comment

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

sourceEncoding can't be typed sooner to Charset because DevModeContext is serialized in the Maven and Gradle plugins.

@gwenneg gwenneg marked this pull request as ready for review August 12, 2019 20:55
@gwenneg gwenneg changed the title WIP: Use a dynamic sources encoding during a hot reload recompilation Use a dynamic sources encoding during a hot reload compilation Aug 12, 2019
@gwenneg
Copy link
Member Author

gwenneg commented Aug 12, 2019

@aloubyansky: Since the Maven and Gradle plugins are involved in this PR, could you please review it?

Copy link
Member

@aloubyansky aloubyansky left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@aloubyansky aloubyansky added this to the 0.21.0 milestone Aug 12, 2019
@aloubyansky aloubyansky added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 12, 2019
@gsmet gsmet merged commit 35a7876 into quarkusio:master Aug 13, 2019
@gwenneg gwenneg deleted the issue-3486-dynamic-hot-reload-sources-encoding branch August 13, 2019 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/waiting-for-ci Ready to merge when CI successfully finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hot reload: the sources encoding used during recompilation should be dynamic
3 participants