[ANN] Groovy HotSwap
Thanks to the Eclipse guys who invented a way to overcome Groovy's
limitation which didn't allow a way to hot-swap Groovy classes, we now
can have the same functionality in IntelliJ IDEA. As it's very raw and
under-tested, it's available as a separate plugin. Later it will be
integrated into IDEA's Groovy support. How soon will that be - depends
on you. Please try it and I'd be grateful for any feedback.
The plugin can be downloaded at:
http://plugins.intellij.net/plugin/?idea_ce&id=4677
Please sign in to leave a comment.
I've installed the plugin (to 94.629), restarted IDEA, but no luck: Still getting "schema change not implemented"
The class I am trying to hot swap is a simple DTO ("Java" bean) like
class CompanyDto {
Long id;
@Nullable
@Size(max = 40)
String city;
boolean isCustomer;
}
I haven't made any changes to the source code at all, but was simply compiling the class and answering Yes to the hot swap question.
I am running a web app in Tomcat using exploded dir.
Any ideas?
How is Tomcat run? Could you post the command line here?
These are the first lines from the server log:
cmd /c D:\projekte\engine-tear-down-v2\apache-tomcat-5.5.28\bin\catalina.bat run
Using CATALINA_BASE: C:\maia\system\tomcat\tomcat_engine-tear-down
Using CATALINA_HOME: D:\projekte\engine-tear-down-v2\apache-tomcat-5.5.28
Using CATALINA_TMPDIR: D:\projekte\engine-tear-down-v2\apache-tomcat-5.5.28\temp
Using JRE_HOME: C:\Program Files (x86)\Java\jdk1.5.0_22
Using CLASSPATH: D:\projekte\engine-tear-down-v2\apache-tomcat-5.5.28\bin\bootstrap.jar
Connected to the target VM, address: '127.0.0.1:2629', transport: 'socket'
I also attached a screenshot of the Debug Configuration's "Startup/Connection" panel.
On 25.03.2010 18:49, Peter Gromov (JetBrains) wrote:
It seems that a wat to make hot swap work is to (manually) add to
JAVA_OPTS "-javaagent:<path-to-gragent.jar-in-the-plugin>". Sorry for
inconvenience. We'll try to figure out how to do this automatically.
Thanks, that works fine.
What a relief! I'll finally start and use groovy more in my app!
On 25.03.2010 21:01, Peter Gromov (JetBrains) wrote:
Thanks, that works fine.
What a relief! I'll finally start and use groovy more in my app!
On 25.03.2010 21:01, Peter Gromov (JetBrains) wrote: