Created
November 5, 2025 21:05
-
-
Save carehart/6364abaf3e710b978883536824692e2c to your computer and use it in GitHub Desktop.
Show the various ColdFusion system environment variables found to be defined in the current CF instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- created by Charlie Arehart, as offered at https://gist.github.com/carehart ---> | |
| Following are the various ColdFusion system environment variables defined in this CF instance, | |
| which are typically set in the CF startup "java.args" in the CF Admin or jvm.config.<p> | |
| The focus here is on those which would be set that way as starting with "-DColdFusion.", which | |
| some CF updates offer. They're offered here in alpha order.<p> | |
| This code can be useful to confirm if ones you THINK are set HAVE been set (or vice-versa).<p> | |
| (An * precedes those typically preconfigured by CF to exist, setting system paths, etc. But note that some recent CF updates or installers may preconfigure new settings by default as well.)<p> | |
| <cfloop collection="#StructToSorted(server.system.properties,"text","asc")#" item="key"> | |
| <cfif key.startswith("coldfusion.") and not key is "coldfusion.classpath"> | |
| <cfif listfind("coldfusion.home,coldfusion.jsafe.defaultalgo,coldfusion.libPath,coldfusion.rootDir",key)>*</cfif> | |
| <cfoutput>#key# = #server.system.properties[key]#</cfoutput><br> | |
| </cfif> | |
| </cfloop> | |
| <!--- | |
| You could of course just dump the server.system.properties and find by hand those starting with coldfusion. | |
| This code automates that. | |
| And of course, this could be converted to script instead of tags. I've left it script to make sense to the widest audience | |
| ---> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment