Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put all arguments to javac in safe_args not just the source paths #7651

Merged
merged 1 commit into from May 7, 2019

Conversation

cheister
Copy link
Contributor

@cheister cheister commented May 2, 2019

Problem

We had some builds where the classpath for javac was too long for the command line to interpret

Solution

Batch all arguments to javac, not just the source paths, in the safe_args @ file

Result

Everything except for the -J args to javac can be put into an argument file and the length of the classpath or the number of files won't be limited by the command line length.

@cheister cheister requested a review from stuhood May 2, 2019 20:52
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Thanks!

@cheister cheister force-pushed the safe-args-javac-classpath branch from b1ebea6 to 80ee8cc Compare May 3, 2019 19:31
@cheister cheister force-pushed the safe-args-javac-classpath branch from 80ee8cc to aaeb976 Compare May 6, 2019 23:53
@cheister cheister merged commit 050b4a3 into pantsbuild:master May 7, 2019
@cheister cheister deleted the safe-args-javac-classpath branch May 7, 2019 02:09
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.

None yet

2 participants