Groovy recipes for every day!
Today is the File Day !
List my imported packages
Today: I get a list of imported package into my old groovy scripts !
Clean old files
today: Oh jeez! I get on my SysAdmin's nerves, file System /data is full! .. I have to clean all these useless daily reports !
Saved! My SysAdmin loves me, it's sure
Recursively deleting files and directories.
Today is a recursive day ! We have a bunch of files and directories to delete, let's go!
the Ant way
Don't forget this old java swiss knife...
the Groovy Way
An Even Groovier Way
Using the Groovy JDK extensions to File