gpt4 book ai didi

playframework - 在Play项目上运行“dist”时跳过scaladoc

转载 作者:行者123 更新时间:2023-12-04 05:58:50 25 4
gpt4 key购买 nike

在Play项目上执行“ dist”操作(当前使用Play 2.3.0)时,如何停止scaladoc的运行?举个例子:

$ git clone --branch play-2.3.0 git@github.com:guardian/gu-who.git
$ cd gu-who
$ sbt clean dist
[info] Loading project definition from /tmp/gu-who/project
[info] Set current project to gu-who (in build file:/tmp/gu-who/)
[success] Total time: 0 s, completed 20-Aug-2014 09:57:55
...
[info] Compiling 23 Scala sources and 1 Java source to /tmp/gu-who/target/scala-2.10/classes...
[info] Main Scala API documentation to /tmp/gu-who/target/scala-2.10/api...
[info] Packaging /tmp/gu-who/target/gu-who-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
model contains 54 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /tmp/gu-who/target/scala-2.10/gu-who_2.10-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging /tmp/gu-who/target/scala-2.10/gu-who_2.10-1.0-SNAPSHOT.jar ...
[info] Done packaging.
[info]
[info] Your package is ready in /tmp/gu-who/target/universal/gu-who-1.0-SNAPSHOT.zip
[info]
[success] Total time: 20 s, completed 20-Aug-2014 09:58:15


该过程的“ scaladoc”部分大约需要20秒中的12秒。我根本不想运行scaladoc(在此非图书馆项目中从事工作的任何人都将查看实际的源代码)。

最佳答案

在使用Play 2.1构建的项目中,我在sbt构建文件中添加了以下设置

...settings(sources in doc in Compile := List())


这完全删除了文档创建。

关于playframework - 在Play项目上运行“dist”时跳过scaladoc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25400820/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com