Thursday, August 08, 2002

Saving Java code produced by CFMX in source form

Did you know that you can ask CFMX to save in source form the Java code it creates when compiling CFMX templates?

You do so by setting the parameter "coldfusion.compiler.saveJava" to TRUE in <cfmx_home>/wwwroot/WEB-INF/web.xml. Then restart the server.

Files are then saved as .java files in <cfmx_home>\wwwroot\WEB-INF\cfclasses\ directory. Be warned, though, the file names may not be apparent:

Setsession.cfm becomes cfsetsession2ecfm1011928409.java

Also, there's no obvious distinction between classes from templates of the same name in different directories.

No comments: