CFMX batch compiler

Want to compile an entire CFMX app in one shot?

Well here is how!
Stick this in a batch file, save as compiler.bat, and pass it a directory to compile:

@setlocal
set NEO_INSTALL=c:cfusionmx
set PATH=%NEO_INSTALL%untimein;%PATH%
java -classpath %NEO_INSTALL%libcfusion.jar
coldfusion.tools.Compiler -webroot %NEO_INSTALL%wwwroot %*
@endlocal

called like so:
compiler.bat c:cfusionmxwwwrootmyapp
Compiles all files below that directory.

(You can thank Spike for that one!)

Advertisements