2

私のgrails1.3.7プロジェクトでは、あなたと同じように、すべてのクラスをcom.mycompany.myappに配置しました。したがって、これはサービス、コントローラー、ドメインクラスにも当てはまります。独自のパッケージに含まれるフィルターがあります。私のアプリは正常に動作します。

ただし、実行するgrails docと、grailsはクラスごとに2つのページを作成することにします。

  • 適切なGroovyDocをすべて含む適切なcomp.mycompany.myappパッケージの1つ
  • もう1つは、上記のすべてのクラスを取得し、それらもデフォルトのパッケージに存在するかのように見せかけます。

したがって、target / docsには、「DefaultPackage」と「com」の2つのディレクトリが含まれ、DefaultPackageはcom/の下にあるすべてのコピーを保持します。

その結果、クラスごとに2つのコピーがあるため、私のグルーヴィーなドキュメントは乱雑に見えます。

どうすればこれを解決できますか?

4

2 に答える 2

1

I too faced the same issue and so created a plugin "Grails Runtime Docs" ( http://grails.org/plugin/grails-runtime-docs ) that solves this issue and generates both Java and groovy docs properly only 1 copy per class. It's grails aware and categorizes the classes into Controllers, Commands, Domains, Services and Tag Libraries. The groovy documentation is actually generated from runtime so as to include the dynamic methods also, adding "Dynamic Method Summary" & "Dynamic Method Detail" in the generated html docs, that provide their source information. Hope you find it useful.

于 2012-02-23T11:45:57.330 に答える
1

これは、 GRAILS-6605でバグとして文書化されています。バグの回避策はリストされていません。

于 2011-09-30T20:09:34.823 に答える