-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When revamping docs, we accidentally removed the javadoc jar from release builds. Now it's back. Also, tweak make-docs.py script so it just copies javadoc from target/ to docs/. Trying to control its location via `reportOutputDirectory` and `destDir` wasn't always working how we expected.
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
import shutil | ||
import subprocess | ||
|
||
if os.system("mvn clean package") != 0: | ||
exit("maven clean package not built.") | ||
subprocess.run(['mvn', 'clean', 'javadoc:javadoc'], check=True) | ||
|
||
if os.system("mvn javadoc:javadoc") != 0: | ||
exit("Maven javadoc plugin did not run correctly.") | ||
if os.path.exists('docs'): | ||
shutil.rmtree('docs') | ||
shutil.copytree('sdk/target/site/apidocs', 'docs') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters