summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-10-11 15:49:04 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-10-11 16:06:35 +0200
commit57e07ebf6b2a78ea098f5e7807ca3f619459d2f3 (patch)
tree055b2a5fec519c4114619f8b82c9caf88a0cf5bf /build.xml
parent185ff4c929645a14fcfe77b6bcdea2bc28ece100 (diff)
downloadscala-57e07ebf6b2a78ea098f5e7807ca3f619459d2f3.tar.gz
scala-57e07ebf6b2a78ea098f5e7807ca3f619459d2f3.tar.bz2
scala-57e07ebf6b2a78ea098f5e7807ca3f619459d2f3.zip
An ant property to skip building docs
It can be situationally useful to run: ant -Dskip.docs=1 dist-maven When troubleshooting problems that require creation of a distribution, such as pr-integrate-partest. Scaladoc isn't incremental, so you burn a few minutes for a single file change to the compiler or library.
Diffstat (limited to 'build.xml')
-rwxr-xr-xbuild.xml78
1 files changed, 40 insertions, 38 deletions
diff --git a/build.xml b/build.xml
index b5e77832df..ed9d02c4ce 100755
--- a/build.xml
+++ b/build.xml
@@ -1186,44 +1186,46 @@ TODO:
<staged-uptodate stage="docs" project="@{project}">
<check><srcfiles dir="${src.dir}/@{dir}"/></check>
<do>
- <stopwatch name="docs.@{project}.timer"/>
- <mkdir dir="${build-docs.dir}/@{project}"/>
- <if><equals arg1="@{docroot}" arg2="NOT SET"/><then>
- <!-- TODO: introduce docs.@{project}.build.path for classpathref -->
- <scaladoc
- destdir="${build-docs.dir}/@{project}"
- doctitle="@{title}"
- docversion="${version.number}"
- sourcepath="${src.dir}"
- classpathref="docs.compiler.path"
- srcdir="${src.dir}/@{dir}"
- addparams="${scalac.args.all}"
- implicits="on"
- diagrams="on"
- groups="on"
- rawOutput="${scaladoc.raw.output}"
- noPrefixes="${scaladoc.no.prefixes}">
- <includes/>
- </scaladoc>
- </then><else>
- <scaladoc
- destdir="${build-docs.dir}/@{project}"
- doctitle="@{title}"
- docversion="${version.number}"
- sourcepath="${src.dir}"
- classpathref="docs.compiler.path"
- srcdir="${src.dir}/@{dir}"
- docRootContent="${src.dir}/@{project}/@{docroot}"
- addparams="${scalac.args.all}"
- implicits="on"
- diagrams="on"
- groups="on"
- rawOutput="${scaladoc.raw.output}"
- noPrefixes="${scaladoc.no.prefixes}">
- <includes/>
- </scaladoc>
- </else></if>
- <stopwatch name="docs.@{project}.timer" action="total"/>
+ <if><not><isset property="docs.skip"/></not><then>
+ <stopwatch name="docs.@{project}.timer"/>
+ <mkdir dir="${build-docs.dir}/@{project}"/>
+ <if><equals arg1="@{docroot}" arg2="NOT SET"/><then>
+ <!-- TODO: introduce docs.@{project}.build.path for classpathref -->
+ <scaladoc
+ destdir="${build-docs.dir}/@{project}"
+ doctitle="@{title}"
+ docversion="${version.number}"
+ sourcepath="${src.dir}"
+ classpathref="docs.compiler.path"
+ srcdir="${src.dir}/@{dir}"
+ addparams="${scalac.args.all}"
+ implicits="on"
+ diagrams="on"
+ groups="on"
+ rawOutput="${scaladoc.raw.output}"
+ noPrefixes="${scaladoc.no.prefixes}">
+ <includes/>
+ </scaladoc>
+ </then><else>
+ <scaladoc
+ destdir="${build-docs.dir}/@{project}"
+ doctitle="@{title}"
+ docversion="${version.number}"
+ sourcepath="${src.dir}"
+ classpathref="docs.compiler.path"
+ srcdir="${src.dir}/@{dir}"
+ docRootContent="${src.dir}/@{project}/@{docroot}"
+ addparams="${scalac.args.all}"
+ implicits="on"
+ diagrams="on"
+ groups="on"
+ rawOutput="${scaladoc.raw.output}"
+ noPrefixes="${scaladoc.no.prefixes}">
+ <includes/>
+ </scaladoc>
+ </else></if>
+ <stopwatch name="docs.@{project}.timer" action="total"/>
+ </then></if>
</do>
</staged-uptodate>
</sequential>