Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/8af5fdccf9207b7164962de0ae33c1de to your computer and use it in GitHub Desktop.
Save trycf/8af5fdccf9207b7164962de0ae33c1de to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
engine = getPageContext().getCFMLFactory().getEngine();
bundleContext = engine.getBundleContext();
bundles = bundleContext.getBundles();
for (b in bundles) {
writeOutput(b.getSymbolicName() & ":" & b.getVersion() & "<br>");
}
//via: https://www.petefreitag.com/item/922.cfm
//inspired by: https://github.com/lucee/Lucee/blob/20660279ea7385c12cab4bef9742a8dab482c183/core/src/main/java/lucee/runtime/tag/Admin.java#L3392-L3404
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment