Script - cleanup groovy temporary files (gant)
Cleanup temporary files produced by running groovy and gant scripts in Confluence.The Groovy and Gant macros produce temporary groovy class files in the script/temp/groovy directory in the Confluence home directory. These should be deleted occasionally. It also serves as an example of the gant macro .
How to use
Example scripts can be used in one of 3 different ways:
- Directly via url:Â https://bitbucket.org/bob_swift/examples/raw/tip/confluence/gant/cleanupTemp.gant
- Download to the script folder in your Confluence home directory and use script=#sqlQuery.groovy
- Copy the script into the macro body
View source
Requirements
- Scripting for Confluence 4.x or above
- Confluence 4.1 or above
Tested
This script (latest version in Bitbucket) is tested during release testing using GINT
{gant:script=#https://bitbucket.org/bob_swift/examples/raw/tip/confluence/gant/cleanupTemp.gant} {gant}