Skip to content

Conversation

rahuliyer95
Copy link
Contributor

@rahuliyer95 rahuliyer95 commented May 6, 2022

Description

Generate scaladoc by providing arguments via param file.

Motivation

When we have a large set of dependencies or source files, scaladoc generation fails with the following error,

error=7, Argument list too long

Scaladoc supports reading arguments from an argfile which can help avoid the above problem,

$ scaladoc -help
...
  @<file>                              A text file containing compiler arguments (options and source files)

We can do this by using param file.

Copy link
Collaborator

@simuons simuons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rahuliyer95 thanks for PR. Please take a look at my comment.

@rahuliyer95 rahuliyer95 changed the title scala_doc: Use argfile to build scaladocs scala_doc: Use param file to build scaladocs May 6, 2022
@rahuliyer95 rahuliyer95 requested a review from simuons May 6, 2022 06:29
@liucijus liucijus merged commit 62d2af1 into bazel-contrib:master May 9, 2022
@liucijus
Copy link
Collaborator

liucijus commented May 9, 2022

Thanks, @rahuliyer95!

@rahuliyer95 rahuliyer95 deleted the feature/scaladoc-argfile branch May 9, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants