This repository has been archived by the owner on Dec 10, 2020. It is now read-only.
forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added --compile-zinc-java-enabled to enable compilation of java targets with zinc. Eventually we want to refactor everything around to choose a java compiler globally and hopefully retire jmake. For now as a proof of the concept added just a flag to enable it so everyone can test before futher changes. Testing Done: ci.sh passes: https://travis-ci.org/fkorotkov/pants/builds/61095655 Reviewed at https://rbcommons.com/s/twitter/r/2156/
- Loading branch information
Showing
5 changed files
with
61 additions
and
10 deletions.
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
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
19 changes: 19 additions & 0 deletions
19
...ython/pants_test/backend/jvm/tasks/jvm_compile/java/test_java_zinc_compile_integration.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,19 @@ | ||
# coding=utf-8 | ||
# Copyright 2015 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_test.backend.jvm.tasks.jvm_compile.base_compile_integration_test import BaseCompileIT | ||
from pants_test.backend.jvm.tasks.jvm_compile.utils import provide_compile_strategies | ||
|
||
|
||
class JvmExamplesCompileIntegrationTest(BaseCompileIT): | ||
@provide_compile_strategies | ||
def test_java_src_zinc_compile(self, strategy): | ||
self.do_test_compile('examples/src/java/::', strategy, extra_args='--compile-zinc-java-enabled') | ||
|
||
@provide_compile_strategies | ||
def test_java_tests_zinc_compile(self, strategy): | ||
self.do_test_compile('examples/tests/java/::', strategy, extra_args='--compile-zinc-java-enabled') |