-
-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Javac compile option as an alternative to Zinc
- Loading branch information
Showing
11 changed files
with
334 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/python/pants/backend/jvm/subsystems/compile_subsystem.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# coding=utf-8 | ||
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, | ||
unicode_literals, with_statement) | ||
|
||
import logging | ||
|
||
from pants.subsystem.subsystem import Subsystem | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class JvmCompileSubsystem(Subsystem): | ||
"""Used to keep track of global jvm compiler option | ||
:API: public | ||
""" | ||
options_scope = 'compiler' | ||
|
||
@classmethod | ||
def register_options(cls, register): | ||
super(JvmCompileSubsystem, cls).register_options(register) | ||
register('--compiler', choices=['zinc', 'javac'], default='zinc', help='Java compiler implementation to use.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
14 changes: 14 additions & 0 deletions
14
src/python/pants/backend/jvm/tasks/jvm_compile/javac/javac_analysis.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# coding=utf-8 | ||
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, | ||
unicode_literals, with_statement) | ||
|
||
from pants.backend.jvm.tasks.jvm_compile.analysis import Analysis | ||
|
||
|
||
class JavacAnalysis(Analysis): | ||
|
||
def write(self, outfile): | ||
pass |
27 changes: 27 additions & 0 deletions
27
src/python/pants/backend/jvm/tasks/jvm_compile/javac/javac_analysis_parser.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# coding=utf-8 | ||
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, | ||
unicode_literals, with_statement) | ||
|
||
|
||
class JavacAnalysisParser(object): | ||
|
||
def parse(self, infile): | ||
pass | ||
|
||
def parse_products(self, infile, classes_dir): | ||
pass | ||
|
||
def parse_deps(self, infile): | ||
pass | ||
|
||
def rebase(self, infile, outfile, pants_home_from, pants_home_to, java_home=None): | ||
pass | ||
|
||
def rebase_from_path(self, infile_path, outfile_path, rebase_mappings, java_home=None): | ||
pass | ||
|
||
def parse_deps_from_path(self, infile_path): | ||
pass |
Oops, something went wrong.