Skip to content

Handle java sources from a file - #131

Closed
denizt wants to merge 1 commit into
facebook:masterfrom
denizt:gradle
Closed

Handle java sources from a file#131
denizt wants to merge 1 commit into
facebook:masterfrom
denizt:gradle

Conversation

@denizt

@denizt denizt commented Jul 8, 2015

Copy link
Copy Markdown

The current way gradle plugin works is by parsing the verbose output to figure out which files to compile. This becomes a problem when the number of files exceed allowed argument parameter
length. Use javac's @sources file instead.

This patch will leave the tempfiles behind (also noted by Jyrki during the review), however I would like to leave that to a follow up commit and first make sure the tool works for people experiencing this problem.

Fixes #22

@jvillard

jvillard commented Jul 8, 2015

Copy link
Copy Markdown
Contributor

This looks great, thanks!

You could put the temporary file inside the directory named by self.args.infer_out to solve the issue of having temporary files lying around. You can even give it a fixed name and get rid of tempfile.

@denizt

denizt commented Jul 8, 2015

Copy link
Copy Markdown
Author

self.args.infer_out sounds like it would solve the problem. The files are semantically temporary though, so I suggest leaving the tempfile

The current way gradle plugin works is by parsing the verbose
output to figure out which files to compile. This becomes a
problem when the number of files exceed allowed argument parameter
length. Use javac's @sources file instead.

Reviewed-by: Jyrki Pulliainen <jyrki@spotify.com>
@denizt

denizt commented Jul 11, 2015

Copy link
Copy Markdown
Author

@jvillard ptal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants