6a5d77c31e772cec5fedbf149f3d41108c5aae8c,tests/python/pants_test/engine/test_isolated_process.py,,javac_compile_process_result,#Any#,181
Before Change
raise ProcessExecutionFailure(
exit_code, stdout, stderr, "javac compilation")
yield JavacCompileResult()
def create_javac_compile_rules():
return [
After Change
@rule(JavacCompileResult, [Select(JavacCompileRequest)])
def javac_compile_process_result(javac_compile_req):
java_files = javac_compile_req.javac_sources.java_files
for java_file in java_files:
if not java_file.endswith(".java"):
raise ValueError("Can only compile .java files but got {}".format(java_file))
sources_snapshot = yield Get(Snapshot, PathGlobs, PathGlobs(java_files, ()))
process_request = ExecuteProcessRequest.create_from_snapshot(
argv=javac_compile_req.argv_from_source_snapshot(sources_snapshot),
env=dict(),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pantsbuild/pants
Commit Name: 6a5d77c31e772cec5fedbf149f3d41108c5aae8c
Time: 2018-05-16
Author: dawagner@gmail.com
File Name: tests/python/pants_test/engine/test_isolated_process.py
Class Name:
Method Name: javac_compile_process_result
Project Name: coala/coala-bears
Commit Name: 834acd07601b6a53a59884f1fcf3ffcc802f9e18
Time: 2016-03-20
Author: jarifibrahim@gmail.com
File Name: bears/vcs/git/GitCommitBear.py
Class Name: GitCommitBear
Method Name: check_shortlog
Project Name: Pinafore/qb
Commit Name: 2677b6d77f6f06c05a980b86e86e0bf4dd495f62
Time: 2016-09-27
Author: ski.rodriguez@gmail.com
File Name: qanta/extractors/classifier.py
Class Name: Classifier
Method Name: score_guesses