You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam X <vb...@gmail.com> on 2015/03/18 15:38:29 UTC

Live Class Reloading

Howdy,

I'm returning to Tapestry after several years of inactivity and I'm
attempting a new project with T5.3.7.

Ran a standard tut and found out that Live Class Reloading (following the
tutorial) does not work unless Eclipse RJR Run Config is amended with a JVM
param: -Dtapestry.execution-mode=development

But,

DevelopmentModule.java

contains:

// The factory default is true but during the early stages of an
// application
// overriding to false is a good idea. In addition, this is often
// overridden
// on the command line as -Dtapestry.production-mode=false
configuration.add(SymbolConstants.PRODUCTION_MODE, false);

The Class Reloading page @ http://tapestry.apache.org/class-reloading.html

Says the following:

If Live Class Reloading doesn't workProduction Mode

Starting with Tapestry 5.3, Live Class Reloading only works when not in
"Production Mode". Check your application module (usually AppModule.java)
to be sure you have:
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");

and that this isn't being overridden to "true" on your application's
startup command line.

All other issues such as automatic IDE build etc have been confirmed to be
setup properly.

So this suggests that simply adding configuration with PRODUCTION_MODE
false should enable development mode and therefore live class reloading.
But that's not the case. A raw startup project setup according to
http://tapestry.apache.org/creating-the-skeleton-application.html , which
does have PRODUCTION_MODE false in DevelopmentMode.java and the run
configuration JVM parameter *empty* appears to run as if production mode =
true.

Adam