When grails stats
is executed it gives statistics of sources as per grails default convention. How can I customize stats to add some of my custom classes under src
directory.
Asked
Active
Viewed 19 times
0

Moon
- 2,837
- 1
- 20
- 34
1 Answers
0
- grails create-script mystats, this will create file mystats.groovy under src/main/scripts folder
- look at https://github.com/grails/grails-profile-repository/blob/master/profiles/base/commands/stats.groovy - original stats script code
- put it into mystats.groovy and customize pathToInfo
- run grails mystats

Evgeny Smirnov
- 2,886
- 1
- 12
- 22
-
Is it possible to extend it rather than copying the whole stats file? – Moon Feb 20 '18 at 13:01
-
Looks like no. You can create pull request with improvenments) – Evgeny Smirnov Feb 20 '18 at 13:07
-
Thanks. For the time being script copy should be enough :) – Moon Feb 20 '18 at 14:39