Skip to content

Commit 392d1dd

Browse files
committed
Merge pull request scala#3031 from retronym/topic/skip-doc
An ant property to skip building docs
2 parents c4850da + 57e07eb commit 392d1dd

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

build.xml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,44 +1186,46 @@ TODO:
11861186
<staged-uptodate stage="docs" project="@{project}">
11871187
<check><srcfiles dir="${src.dir}/@{dir}"/></check>
11881188
<do>
1189-
<stopwatch name="docs.@{project}.timer"/>
1190-
<mkdir dir="${build-docs.dir}/@{project}"/>
1191-
<if><equals arg1="@{docroot}" arg2="NOT SET"/><then>
1192-
<!-- TODO: introduce docs.@{project}.build.path for classpathref -->
1193-
<scaladoc
1194-
destdir="${build-docs.dir}/@{project}"
1195-
doctitle="@{title}"
1196-
docversion="${version.number}"
1197-
sourcepath="${src.dir}"
1198-
classpathref="docs.compiler.path"
1199-
srcdir="${src.dir}/@{dir}"
1200-
addparams="${scalac.args.all}"
1201-
implicits="on"
1202-
diagrams="on"
1203-
groups="on"
1204-
rawOutput="${scaladoc.raw.output}"
1205-
noPrefixes="${scaladoc.no.prefixes}">
1206-
<includes/>
1207-
</scaladoc>
1208-
</then><else>
1209-
<scaladoc
1210-
destdir="${build-docs.dir}/@{project}"
1211-
doctitle="@{title}"
1212-
docversion="${version.number}"
1213-
sourcepath="${src.dir}"
1214-
classpathref="docs.compiler.path"
1215-
srcdir="${src.dir}/@{dir}"
1216-
docRootContent="${src.dir}/@{project}/@{docroot}"
1217-
addparams="${scalac.args.all}"
1218-
implicits="on"
1219-
diagrams="on"
1220-
groups="on"
1221-
rawOutput="${scaladoc.raw.output}"
1222-
noPrefixes="${scaladoc.no.prefixes}">
1223-
<includes/>
1224-
</scaladoc>
1225-
</else></if>
1226-
<stopwatch name="docs.@{project}.timer" action="total"/>
1189+
<if><not><isset property="docs.skip"/></not><then>
1190+
<stopwatch name="docs.@{project}.timer"/>
1191+
<mkdir dir="${build-docs.dir}/@{project}"/>
1192+
<if><equals arg1="@{docroot}" arg2="NOT SET"/><then>
1193+
<!-- TODO: introduce docs.@{project}.build.path for classpathref -->
1194+
<scaladoc
1195+
destdir="${build-docs.dir}/@{project}"
1196+
doctitle="@{title}"
1197+
docversion="${version.number}"
1198+
sourcepath="${src.dir}"
1199+
classpathref="docs.compiler.path"
1200+
srcdir="${src.dir}/@{dir}"
1201+
addparams="${scalac.args.all}"
1202+
implicits="on"
1203+
diagrams="on"
1204+
groups="on"
1205+
rawOutput="${scaladoc.raw.output}"
1206+
noPrefixes="${scaladoc.no.prefixes}">
1207+
<includes/>
1208+
</scaladoc>
1209+
</then><else>
1210+
<scaladoc
1211+
destdir="${build-docs.dir}/@{project}"
1212+
doctitle="@{title}"
1213+
docversion="${version.number}"
1214+
sourcepath="${src.dir}"
1215+
classpathref="docs.compiler.path"
1216+
srcdir="${src.dir}/@{dir}"
1217+
docRootContent="${src.dir}/@{project}/@{docroot}"
1218+
addparams="${scalac.args.all}"
1219+
implicits="on"
1220+
diagrams="on"
1221+
groups="on"
1222+
rawOutput="${scaladoc.raw.output}"
1223+
noPrefixes="${scaladoc.no.prefixes}">
1224+
<includes/>
1225+
</scaladoc>
1226+
</else></if>
1227+
<stopwatch name="docs.@{project}.timer" action="total"/>
1228+
</then></if>
12271229
</do>
12281230
</staged-uptodate>
12291231
</sequential>

0 commit comments

Comments
 (0)