What does the “grails clean” script actually do?

后端 未结 2 1538
春和景丽
春和景丽 2021-02-07 00:35

I\'m curious about the grails clean command. Once I imported a wrong package into a domain class, It was java.util.regex. I used it to do a regex repla

2条回答
  •  长发绾君心
    2021-02-07 01:07

    grails clean
    

    The clean command deletes all compiled resources from the application. but not temporary files.

    grails clean-all
    

    The clean-all command deletes all compiled resources as well as work directory, which contains project-specific temporary files.

    Since Groovy is a compiled language, as with Java, this is sometimes useful to clear old instances of classes and ensure correct compilation. It's also a good idea to run these scripts before running tests or creating a WAR file to ensure a full compilation occurs.

提交回复
热议问题