Maven 生成groovydoc并包含子目录

Maven 生成groovydoc并包含子目录,maven,groovy,groovydoc,Maven,Groovy,Groovydoc,我在父目录下的不同位置有groovy脚本。目录结构有点像这样: magento └── magento.groovy └── models ├── cart.groovy ├── catalog.groovy ├── customer.groovy ├── directory.groovy ├── filter.groovy ├── inventory.groovy ├── products.groovy └── salesorde

我在父目录下的不同位置有groovy脚本。目录结构有点像这样:

magento
└── magento.groovy
└── models
    ├── cart.groovy
    ├── catalog.groovy
    ├── customer.groovy
    ├── directory.groovy
    ├── filter.groovy
    ├── inventory.groovy
    ├── products.groovy
    └── salesorder.groovy
我想生成groovy文档并将每个groovy脚本包含在父目录下

我尝试在父目录上运行该命令,但它只获取其中的内容,显然,子文件夹中的内容不包括在内:

groovydoc \
-classpath /opt/groovy-2.4.4/lib/ \
-d /opt/groovy-test/test/magento \
-windowtitle "Magento Groovydoc Example" \
-header "Test Groovy doc for Magento" \
-doctitle "Magento Test Groovydoc"  *.groovy
除了命令行,是否还有更好的方法?我也尝试了这个插件,但没有运气


谢谢

这个bash脚本适合我

source_files=`find {path-to-your-dir}/magento/ -type f \( \
    \( \
    -name "*.java" \
    -or -name "*.groovy" \
    \) \
    ! \
    \( \
     -name "PastingSomeFileNamesHereYouCanExludeSomething.java" \
     -or -name "SomeAdditionalFile.groovy" \
    \) \
    \)`

groovydoc -verbose --debug -public\
 -d {path-to-your-magento-dir-docs}\
 -doctitle "Title"\
 -header "Header"\
 -footer "Footer"\
 -windowtitle "WindowTitle"\
 $source_files

这个bash脚本适合我

source_files=`find {path-to-your-dir}/magento/ -type f \( \
    \( \
    -name "*.java" \
    -or -name "*.groovy" \
    \) \
    ! \
    \( \
     -name "PastingSomeFileNamesHereYouCanExludeSomething.java" \
     -or -name "SomeAdditionalFile.groovy" \
    \) \
    \)`

groovydoc -verbose --debug -public\
 -d {path-to-your-magento-dir-docs}\
 -doctitle "Title"\
 -header "Header"\
 -footer "Footer"\
 -windowtitle "WindowTitle"\
 $source_files