Skip to content

Commit

Permalink
fix: Fix to maven_format_core.py for Java > 1.8.
Browse files Browse the repository at this point in the history
Signed-off-by: jefft0 <jeff@thefirst.org>
  • Loading branch information
jefft0 committed Sep 6, 2022
1 parent 4342217 commit 1e16e72
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/utils/maven_format/maven_format_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,14 @@
)):
exit(1)
else:
# TODO: add Android javadoc generation using Java version > 1.8
raise Exception("Can't generate javadoc using Java version > 1.8")
if os.system("javadoc -Xdoclint:none -quiet -classpath '%s' "
"-sourcepath '%s' go core -d %s" %
(
target_sdk_path,
temp_dir,
os.path.join(temp_dir, "javadoc")
)):
exit(1)

# Create a jar containing the javadoc
if os.system("cd %s && jar -cf ../%s ." %
Expand Down

0 comments on commit 1e16e72

Please sign in to comment.