Wednesday, August 28, 2002

Unix Variation to the precompile script

Matt Liotta responded to my request for a unix variant of the precompile script. Here it is:

#!/usr/bin/sh

MX_INSTALL=/opt/coldfusionmx
JAVA=$MX_INSTALL/jre/bin/java

$JAVA -classpath $MX_INSTALL/lib/cfusion.jar \
   coldfusion.tools.Compiler -webroot $1 \
   -webinf $MX_INSTALL/wwwroot/WEB-INF $1

As with the windows version, be sure to change lines 1 and 2 if your location for the CFMX install directory and/or desired java JVM location are different from these provided.

No comments: