我使用 STS 开发 Grails 应用程序,我需要在那里使用 wsimport 实用程序生成的一堆类。为了不将我的源代码与自动生成的源代码混合,我想添加单独的目录并将生成的类放在那里,如下所示:
grails-project
|
|-- .classpath
|-- .groovy
|-- .project
|-- .settings
|-- application.properties
|-- grails-app
|-- lib
|-- scripts
|-- src
| |-- groovy
| |-- java
| `-- wsimport <- where I want to make additional source folder
|-- target
|-- target-eclipse
|-- test
`-- web-app
我可以向 .classpath 文件添加新的类路径条目,STS 将识别源,但我对 Grails 该怎么办?我需要在某个配置文件中指定它吗?