I am trying to create a javadoc based on the javadoc.bzl
I have added in my BUILD file under the root of my project to load the rule:
load("//rules:javadoc.bzl", "javadoc")
javadoc(
name = "api-docs",
srcs = glob(["**/*.java"])
)
But when I run it it fails and from what I see using the --sandbox_debug
it does not seem to be calling javadoc with any source files
Specifically running: bazel build --sandbox_debug :api-docs
I get:
BUILD:3:8: error executing shell command: '/bin/bash -c mkdir api-docs
external/local_jdk/bin/javadoc -quiet -d api-docs zip -q -r
bazel-out/darwin-fastbuild/bin/api-docs.zip api-docs/*' failed (Exit
12): sandbox-exec failed: error executing command
and later on javadoc: error - No packages or classes specified.
If I understand correctly the error reported, I see external/local_jdk/bin/javadoc -quiet -d api-docs
called but no files as input.
What am I doing wrong here?