3
我使用STS開發Grails應用程序,並且需要使用wsimport實用程序生成的一堆類。爲了不與自動生成的源混合我的消息來源,我想添加單獨的目錄,並把那裏生成的類,像這樣:如何將源文件夾添加到Grails應用程序
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做什麼?我需要在某個配置文件中指定它嗎?
你可以在這裏購買這本書http://shop.oreilly.com/product/0636920024750.do;) – 2013-02-18 18:33:59
@BurtBeckwith是一個更好的選擇。 :-) – 2013-02-18 18:54:24
謝謝!但我必須說,** _ Events.groovy **應該被放置到** scripts/**文件夾中,而不是** events/** – Alex 2013-02-20 11:29:33