| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Change-Id: I3fce66ec2e63d152aafc0cf9ea067d6dbf1245f7
PiperOrigin-RevId: 167484075
|
|
|
|
| |
PiperOrigin-RevId: 166849610
|
|
|
|
|
|
|
|
| |
indirectly depend on it by using the $(JAVABASE) or $(JAVA) Make variables.
It was tested by running "bazel build --nobuild" on the affected targest to make sure that they still work.
PiperOrigin-RevId: 166695324
|
|
|
|
|
|
|
|
|
| |
This and further changes may contain minor modifications to BUILD files that
don't serve any apparent purpose. The reason for these changes is that we're
switching from checked-in BUILD files to generated BUILD files, and there may
be small differences between these files.
PiperOrigin-RevId: 166684362
|
|
|
|
| |
PiperOrigin-RevId: 165439218
|
|
|
|
|
|
|
| |
new blaze Java implementation sends the runtime jars encapsulated in a metadata
txt file, instead of listing them in the environment variable. The previous approach led to blaze crashing with an "Argument list too long" error.
PiperOrigin-RevId: 165155269
|
|
|
|
| |
PiperOrigin-RevId: 165003777
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use $(location) to get the unittest.bash script, which allows this test to also
run with a different label prefix. This involves removing the intermediate
testenv.sh script, which doesn't seem to add much value.
We might want to consider a sh_unit_test rule or macro that has an implicit
dependency on the unittest.bash script and doesn't require every test to do
this manually.
PiperOrigin-RevId: 164846477
|
|
|
|
|
| |
RELNOTES: none
PiperOrigin-RevId: 164667144
|
|
|
|
| |
PiperOrigin-RevId: 164446300
|
|
|
|
| |
PiperOrigin-RevId: 164252615
|
|
|
|
| |
PiperOrigin-RevId: 163840258
|
|
|
|
|
|
|
|
|
|
| |
Adds back a compiler test empty .cc file. Seems to be an omission in https://github.com/bazelbuild/bazel/commit/65cda4f219e564ccb190b2992151658dfae9904
The _is_gold_supported check in unix_cc_configure.bzl always fails without this change, since the file it's checking with isn't created. Looks like there may be other effects through _add_option_if_supported, although I only noticed because apparently I have written linker-specific code.
Closes #3484.
PiperOrigin-RevId: 163832465
|
|
|
|
|
|
|
|
|
| |
This and further changes may contain minor modifications to BUILD files that
don't serve any apparent purpose. The reason for these changes is that we're
switching from checked-in BUILD files to generated BUILD files, and there may
be small differences between these files.
PiperOrigin-RevId: 163525889
|
|
|
|
|
|
|
|
|
|
| |
After running the new coverage implementation on some real targets I found the following.
1. Inner classes with the same name could be added from different jars. Addressed this by analyzing classes with the same name exactly once.
2. Auto-generated files were added to the coverage report. This is resolved first on the blaze/bazel side by adding to the files with the exec paths of the instrumented files only those that are source files and on the coverage runner side by discarding all the files that are not in that file.
PiperOrigin-RevId: 162478894
|
|
|
|
| |
PiperOrigin-RevId: 162263240
|
|
|
|
|
|
|
|
|
|
| |
The new implementation doesn't use one metadata jar for the whole build anymore, but wraps all the uninstrumented classes in each of the build jars, among with a txt file that contains the paths of the files to be instrumented. The paths will be used to output the entire relative filepath to the partial coverage report.
Instead of one metadata jar containing all uninstrumented classes on the runtime classpath, the coverage runner will retrieve all the build jars on the runtime classpath.
Because the build jars contain now both classes and uninstrumented classes, the coverage runner will not analyze the entire given jar, but only the classes in the given jars that have the right suffix.
PiperOrigin-RevId: 161951370
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes a minor regression introduced by bazelbuild/bazel@2c3c87fab48646167e4233f539540df6b5ed3d04.
mktemp's interface changed in OS X 10.11 to allow the prefix to be
unspecified, but not specifying the prefix will cause the command to
error out on OS X 10.10 and earlier.
Closes #3281.
PiperOrigin-RevId: 161805877
|
|
|
|
|
|
|
|
| |
And instead rely on the flags being set in java_toolchain.jvm_opts.
This change is being made in preparation for JDK 9, which replaces
-Xbootclasspath/p with --patch-module.
PiperOrigin-RevId: 161620182
|
|
|
|
|
|
| |
The new implementation doesn't use the metadata jar anymore, but wraps all the uninstrumented classes in the build jar among with a txt file that contains the paths of the files to be instrumented.
PiperOrigin-RevId: 161499019
|
|
|
|
|
|
|
|
|
|
| |
it has been replaced by -XepDisableAllChecks, which disables all Error Prone
checks instead of disabling the plugin. Disabling the plugin entirely breaks
handling of other -Xep flags.
RELNOTES[INC]: -extra_checks:off is no longer supported; use -XepDisableAllChecks instead
PiperOrigin-RevId: 161127522
|
|
|
|
| |
PiperOrigin-RevId: 161127284
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
See bazelbuild/bazel#3172
*** Original change description ***
Add an experimental flag to Turbine to indicate to annotation processors that they are running in hjar compilation
PiperOrigin-RevId: 159585343
|
|
|
|
|
|
|
|
|
|
|
| |
We're currently maintaining two sets of BUILD files; one at Google, and one
in the Git repository. We'd like to not do that. This change makes some of
the Bazel BUILD files more closely match their counterparts, in preparation
for removing the internal ones.
Closes #3094.
PiperOrigin-RevId: 158820490
|
|
|
|
|
|
|
|
|
| |
Additional changes:
- Introduce a Skylark macro java_library_srcs that provides the source jars of a java_*_library rule.
- Remove bazel's own java_proto_library implementation.
Change-Id: I18f2259bc75ca0fb32dcd8a6a857c609bd2c7773
PiperOrigin-RevId: 158146210
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 157576492
|
|
|
|
| |
PiperOrigin-RevId: 157494773
|
|
|
|
|
|
| |
RELNOTES: None.
PiperOrigin-RevId: 157446717
|
|
|
|
|
|
|
| |
singlejar is now used to add resources to library jars, so this code
is unnecessary.
PiperOrigin-RevId: 156473371
|
|
|
|
|
|
|
| |
from JavaBuilder's command line flags, instead of retrieving them
using a non-standard filemanager API.
PiperOrigin-RevId: 156226725
|
|
|
|
|
|
|
|
|
|
| |
Allow classpath command line options to be whitespace-separated, and store
as lists instead of joined strings. This avoids some unnecessary
string operations, and keeps command lines below the per-arg limit.
A future change will update Bazel to pass unjoined classpaths.
PiperOrigin-RevId: 156085128
|
|
|
|
|
|
|
| |
This is needed until java_common.compile will be strong enough to replace
java_library, exposing all its features.
PiperOrigin-RevId: 155773169
|
|
|
|
|
|
| |
See #2977
PiperOrigin-RevId: 155711073
|
|
|
|
|
| |
Change-Id: Iad1e07ad55d5304d7c3dbb8bdab856728a91432d
PiperOrigin-RevId: 155375893
|
|
|
|
|
|
|
| |
The bugs that broke this on Windows ( https://github.com/bazelbuild/bazel/issues/2306 and https://github.com/bazelbuild/bazel/issues/2342 ) have been fixed and FreeBSD has been bootstrapped so we can do this there, too.
RELNOTES: None.
PiperOrigin-RevId: 155371373
|
|
|
|
|
|
|
|
|
| |
deploy jar.
I thought that didn't work for some reason, but I apparently made a mistake while writing the command line.
RELNOTES: None.
PiperOrigin-RevId: 155368830
|
|
|
|
|
|
|
|
| |
https://github.com/bazelbuild/bazel/commit/610bf143dd02020e6cd5c94db38ff54c5a504b12 forgot to add them in the tools selection
so we were still building C++ singlejar on Windows MSVC
where we cannot bootstrap it.
PiperOrigin-RevId: 155219067
|
|
|
|
|
|
| |
With MSYS-less version of Bazel for Windows, we have several config settings that correspond to windows, list them all in the select (right now it is breaking our CI: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=windows-msvc-x86_64/1477/)
PiperOrigin-RevId: 155211130
|
|
|
|
|
|
|
|
|
| |
through `singlejar --normalize`.
Fixes #2912.
RELNOTES: None.
PiperOrigin-RevId: 155193074
|
|
|
|
| |
PiperOrigin-RevId: 155131707
|
|
|
|
|
|
|
|
|
|
| |
to ensure outputs from any previous local builds are discarded.
To cherry-pick for #2692.
Fixes #2941
PiperOrigin-RevId: 155089391
|
|
|
|
|
|
|
| |
test code. Error Prone will use these to distinguish between test and
production code, e.g. for enforcing @VisibleForTesting.
PiperOrigin-RevId: 154370318
|
|
|
|
| |
PiperOrigin-RevId: 154098929
|
|
|
|
| |
PiperOrigin-RevId: 154078281
|
|
|
|
|
|
|
| |
Fixes #2848.
RELNOTES: None.
PiperOrigin-RevId: 153692641
|
|
|
|
|
|
|
|
|
| |
It has been disabled in https://github.com/bazelbuild/bazel/commit/bce889840f91f14c05418d960984bcf1a5f59411 and in https://github.com/bazelbuild/bazel/commit/21fb8cac60c36cb527d6131ab0092bcdf138d99a and then was not re-enabled.
Also update src/java_tools/junitrunner/java/com/google/testing/coverage/BUILD to which I accidentally submitted a change directly to our OSS repository.
RELNOTES: None.
PiperOrigin-RevId: 153460778
|
|
|
|
| |
PiperOrigin-RevId: 153444516
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It appears that jarjar is not actually used except for renaming classes
in the coverage collecting Java test runner as verified by
`find . -name BUILD | xargs grep jarjar`
Yak shaving for #2820.
This is necessary because the current version of jarjar does not work
with Java 8 classes because it embeds a version of ASM that doesn't
support that yet.
Change-Id: I6ac59b84bbbc1e85fe8e7f4f4876b98fc6129df0
|
|
|
|
|
|
|
|
| |
https://github.com/bazelbuild/bazel/commit/4a303e2cd840810b95cbc793e38bdca48e6d9556
Only unescape @@-quoted args once
PiperOrigin-RevId: 153189611
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
kokoro failures were not flakes :(
*** Original change description ***
Fix escaping of '@' in javabuilder command lines
"@" is used to denote params files, so when it appears in labels it is
escaped as "@@". The second "@" should be removed during flag parsing
to avoid e.g. having it show up in strict deps errors.
See bazelbuild/buildtools#83
PiperOrigin-RevId: 153127997
|