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

I want to implement an IDEA plug-in based on HA to achieve remote hot deployment #618

Open
KevinClair opened this issue Dec 20, 2024 · 3 comments

Comments

@KevinClair
Copy link

KevinClair commented Dec 20, 2024

Hello, HA is a very useful tool for me. When using IDEA Plugin, I found that it can only realize hot deployment of local language, such as HotSwapHelper, by the way, it is a good IDEA Plugin, easy to use.
Now I want to develop an IDEA Plugin based on HA to realize remote hot deployment.
For example, select a changed file in IDEA Plugin and push them to the remote Linux server (maybe a specific directory), and then HA will update the class file after monitoring the file changes.
Is there any solution to realize this function?

@skybber
Copy link
Contributor

skybber commented Dec 20, 2024

Great idea! I don’t know of any such solution, nor do I know how to implement deployment to a remote environment (using HA?). Otherwise, part of the problem is addressed by a debugger that can update classes in a remote JVM, but it doesn’t save them to .class files and can’t add new classes. So, such a plugin would definitely be interesting and would expand the current capabilities of remote debugging.

@KevinClair
Copy link
Author

When starting a java application on a Linux server, and starting HA via -javaagent, is it possible to update .class files by placing the changed files in a special path and then have HA monitor changes to the files in this path?

@skybber
Copy link
Contributor

skybber commented Dec 21, 2024

Yes, it is possible. There are 2 configuration parameters - extraClasspath and autoHotswap designed for this purpose. Look at :

https://hotswapagent.org/mydoc_configuration.html

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

No branches or pull requests

2 participants