aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools
Commit message (Collapse)AuthorAge
* JUnit4 now correctly labels filtered tests as "filtered".Gravatar Googler2017-02-14
| | | | | | -- PiperOrigin-RevId: 147362001 MOS_MIGRATED_REVID=147362001
* Open source the integration tests for BazelTestRunner and delete the ↵Gravatar Kush Chakraborty2017-02-14
| | | | | | | | internal versions. -- PiperOrigin-RevId: 147355493 MOS_MIGRATED_REVID=147355493
* Windows-aware path-absoluteness checks.Gravatar Laszlo Csomor2017-02-13
| | | | | | | | | Fixes: https://github.com/bazelbuild/bazel/issues/2520 Fixes one of the bugs causing https://github.com/bazelbuild/bazel/issues/2473 -- PiperOrigin-RevId: 147335357 MOS_MIGRATED_REVID=147335357
* Create a 'vanilla' JavaBuilderGravatar Liam Miller-Cushon2017-02-13
| | | | | | | | | | | | that is portable across JDK versions, and doesn't depend on the javac distributed with Bazel. There is no support for Error Prone, strict Java deps, header compilation, Android desugaring, or any other features that depend on the Bazel javac. -- PiperOrigin-RevId: 147224490 MOS_MIGRATED_REVID=147224490
* Move the JUnit runner tests to the same location as the Internal Repo.Gravatar Kush Chakraborty2017-02-10
| | | | | | -- PiperOrigin-RevId: 147159416 MOS_MIGRATED_REVID=147159416
* Ignore warnings for successful javac-turbine invocationsGravatar Liam Miller-Cushon2017-02-06
| | | | | | | | | including e.g. deferred diagnostic notes and spurious strict deps diagnostics. -- PiperOrigin-RevId: 146542770 MOS_MIGRATED_REVID=146542770
* Create a tool for building resource jarsGravatar Liam Miller-Cushon2017-01-31
| | | | | | | | | Move the functionality for building resources jars out of JavaBuilder, in preparation for building resource jars as a separate action. -- PiperOrigin-RevId: 146086774 MOS_MIGRATED_REVID=146086774
* Don't add the output directory to the classpathGravatar Liam Miller-Cushon2017-01-31
| | | | | | | | | This was a work-around for a javac bug, and is unnecessary now that we're setting locations using the API. -- PiperOrigin-RevId: 146079935 MOS_MIGRATED_REVID=146079935
* Fix a bug in the StrictJavaDeps plugin when a rule in the targetMapping has ↵Gravatar Googler2017-01-27
| | | | | | | | | | a strict deps error. Currently, the plugin canonicalizes targets using the 'target.properties' resource, this allows strict deps on private visibility rules to be resolved. However, if a rule in the target mapping itself has a strict deps error the wrong recipient will be calculated. -- PiperOrigin-RevId: 145745493 MOS_MIGRATED_REVID=145745493
* Rollback of commit 32f033328abdd00cbec149edd87bde34095bccbc.Gravatar Yun Peng2017-01-25
| | | | | | | | | | | | | | | | | *** Reason for rollback *** This change is no longer needed because commit d9a7d3a789be559bd6972208af21adae871d7a44 is rollbacked *** Original change description *** Add --manifest_file option into BazelJavaBuilder Now Bazel JavaBuilder can specifiy a file as the manifest file, before this it just creates the manifest file on the fly. -- PiperOrigin-RevId: 145534408 MOS_MIGRATED_REVID=145534408
* Put line breaks between diagnosticsGravatar Liam Miller-Cushon2017-01-25
| | | | | | -- PiperOrigin-RevId: 145507177 MOS_MIGRATED_REVID=145507177
* Add --manifest_file option into BazelJavaBuilder Gravatar Yun Peng2017-01-25
| | | | | | | | | | | Now Bazel JavaBuilder can specifiy a file as the manifest file, before this it just creates the manifest file on the fly. -- Change-Id: I515d63a008e2c9e9113c56d3646b8bc78b76b3a7 Reviewed-on: https://cr.bazel.build/8352 PiperOrigin-RevId: 145428635 MOS_MIGRATED_REVID=145428635
* Add an experimental flag to Turbine to indicate to annotation processors ↵Gravatar Googler2017-01-24
| | | | | | | | that they are running in hjar compilation -- PiperOrigin-RevId: 145413255 MOS_MIGRATED_REVID=145413255
* Handle another transitive classpath fallback caseGravatar Liam Miller-Cushon2017-01-24
| | | | | | | | | | Completion failures are usually caught and printed at the top-level, but if they occur inside an Error Prone check they get wrapped and reported as error diagnostics. -- PiperOrigin-RevId: 145322258 MOS_MIGRATED_REVID=145322258
* Description redacted.Gravatar Googler2017-01-23
| | | | | | -- PiperOrigin-RevId: 145156880 MOS_MIGRATED_REVID=145156880
* Description redacted.Gravatar Googler2017-01-23
| | | | | | -- PiperOrigin-RevId: 145152574 MOS_MIGRATED_REVID=145152574
* Remove use of javac internal Result enumGravatar Liam Miller-Cushon2017-01-23
| | | | | | | | | we only care about success or failure, and this avoids an internal API use. -- PiperOrigin-RevId: 145151690 MOS_MIGRATED_REVID=145151690
* Remove unused PluginExceptionGravatar Liam Miller-Cushon2017-01-23
| | | | | | -- PiperOrigin-RevId: 145145109 MOS_MIGRATED_REVID=145145109
* Make reduced classpath fallback locale-independentGravatar Liam Miller-Cushon2017-01-23
| | | | | | | | Fixes bazelbuild/bazel#1342 -- PiperOrigin-RevId: 145144856 MOS_MIGRATED_REVID=145144856
* Fix bootstrapping in Docker images.Gravatar Lukacs Berki2017-01-20
| | | | | | | | | | | | | | | | | | Turns out, we couldn't run jarjar because the Java launcher script looks for the .jars in the runfiles and build-runfiles is stubbed out during bootstrapping. The only reason why this worked at all is that sandboxing *also* doesn't work during bootstrapping but it causes the creation of symlinks that happened to be just in the right place for the Java launcher to find the .jars . The fix is: - Explicitly disable sandboxing during bootstrapping so that coincidences like this don't happen again - Pass a --javabase and --host_javabase option during the bootstrap build so that we don't need any symlinks to access to JVM - Invoke jarjar using its deploy jar instead of the launcher script. That was fun. -- PiperOrigin-RevId: 145083357 MOS_MIGRATED_REVID=145083357
* Temporarily disable jacoco on FreeBSD Gravatar Klaus Aehlig2017-01-20
| | | | | | | | | | ...while we have the problem with the hard-coded path to /bin/bash. -- Change-Id: Icba0030458da42d1847fa68d6bf312195ff083f9 Reviewed-on: https://cr.bazel.build/8393 PiperOrigin-RevId: 145062669 MOS_MIGRATED_REVID=145062669
* Fall back to the transitive classpath for top-level completion failuresGravatar Liam Miller-Cushon2017-01-20
| | | | | | | | | | These exceptions are typically handled in javac and result in a diagnostic, but it's possible for them to be thrown to the top-level by plugins or annotation processors. If that happens they will be printed to the error output stream. -- PiperOrigin-RevId: 145032097 MOS_MIGRATED_REVID=145032097
* Filter out javac deferred diagnostic notes in JavaBuilderGravatar Liam Miller-Cushon2017-01-20
| | | | | | | | Fixes bazelbuild/bazel#1405 -- PiperOrigin-RevId: 145015113 MOS_MIGRATED_REVID=145015113
* Rollback of commit 8436354b93e0b611931dfc965d3e718980143dee.Gravatar Vladimir Moskva2017-01-19
| | | | | | | | | | | | | | *** Reason for rollback *** Didn't fix the problem. *** Original change description *** Tag targets as jdk8 to avoid building them for jdk7 -- PiperOrigin-RevId: 144974286 MOS_MIGRATED_REVID=144974286
* Refactor BlazeJavacMain to emit structured diagnosticsGravatar Liam Miller-Cushon2017-01-19
| | | | | | | | | instead of producing text output containing formatted diagnostics. This is necessary to support robust, locale-independent diagnostic post-processing. -- PiperOrigin-RevId: 144907133 MOS_MIGRATED_REVID=144907133
* Make the Path to FileSystem cache non-static for persistent workersGravatar Liam Miller-Cushon2017-01-19
| | | | | | -- PiperOrigin-RevId: 144858495 MOS_MIGRATED_REVID=144858495
* Fix javabuilder top-level exception handling with workers enabledGravatar Liam Miller-Cushon2017-01-19
| | | | | | -- PiperOrigin-RevId: 144857011 MOS_MIGRATED_REVID=144857011
* Remove end position hackGravatar Liam Miller-Cushon2017-01-19
| | | | | | | | javac enabled end positions by default when invoke using the API. -- PiperOrigin-RevId: 144850857 MOS_MIGRATED_REVID=144850857
* Tag targets as jdk8 to avoid building them for jdk7Gravatar Vladimir Moskva2017-01-18
| | | | | | -- PiperOrigin-RevId: 144849308 MOS_MIGRATED_REVID=144849308
* Jarjar the third-party dependencies of the Jacoco test runner, except on ↵Gravatar Lukacs Berki2017-01-18
| | | | | | | | | | | | | | Windows. This way, we don't need a new release to make coverage collection happen. This is the fifth try on commit 823091f7516abf7d854021edc765daf1467f1647 . This time, it's disabled on Windows because two bugs (#2306 and #2342) collude to make it impossible to run Java binaries during the build on Windows and jarjar is a Java binary. Tested by building //src:bazel on a Windows machine with --output_base=<something with a $ sign in it>. I also verified that the genrule gets run by adding an "exit 1" at its beginning. Fifth time is the charm! Hopefully we don't get to seven. -- PiperOrigin-RevId: 144818587 MOS_MIGRATED_REVID=144818587
* Rollback of commit c0be64464b97ea011b4b4ad901515aac1dc97b4c.Gravatar Lukacs Berki2017-01-17
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** Still doesn't work :( Even though the stub template was changed at HEAD, it comes from released Blaze, which is 0.4.3 and thus contains the quoting bug. *** Original change description *** Jarjar the third-party dependencies of the Jacoco test runner. This is the second encore of commit 823091f7516abf7d854021edc765daf1467f1647. The first one failed because jarjar tried to write to C:\WINDOWS , the second one failed because cygpath does not always return a proper temp directory, the third one failed because the bash quoting doesn't handle $ signs in directories (fixed in commit 35a37e0429add201342dd1d005bc9286c53c02c3). Fourth time is the charm! -- PiperOrigin-RevId: 144695898 MOS_MIGRATED_REVID=144695898
* Jarjar the third-party dependencies of the Jacoco test runner.Gravatar Lukacs Berki2017-01-17
| | | | | | | | | | This is the second encore of commit 823091f7516abf7d854021edc765daf1467f1647. The first one failed because jarjar tried to write to C:\WINDOWS , the second one failed because cygpath does not always return a proper temp directory, the third one failed because the bash quoting doesn't handle $ signs in directories (fixed in commit 35a37e0429add201342dd1d005bc9286c53c02c3). Fourth time is the charm! -- PiperOrigin-RevId: 144689400 MOS_MIGRATED_REVID=144689400
* Rollback of commit 56328986232dfe4d92f738ab3bbd26d89236a428.Gravatar Vladimir Moskva2017-01-16
| | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks Bazel build for Windows using Java 1.8 http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=windows-x86_64/1188/ *** Original change description *** Jarjar the third-party dependencies of the Jacoco test runner. This is the second encore of commit 823091f7516abf7d854021edc765daf1467f1647. The first one failed because jarjar tried to write to C:\WINDOWS , the second one failed because cygpath doesn't work for some reason on our CI machines and I hope that the "jarjar_bin cannot found" error message was only a fluke. Otherwise, this'll be fixed online. -- PiperOrigin-RevId: 144630946 MOS_MIGRATED_REVID=144630946
* Jarjar the third-party dependencies of the Jacoco test runner.Gravatar Lukacs Berki2017-01-16
| | | | | | | | | | This is the second encore of commit 823091f7516abf7d854021edc765daf1467f1647. The first one failed because jarjar tried to write to C:\WINDOWS , the second one failed because cygpath doesn't work for some reason on our CI machines and I hope that the "jarjar_bin cannot found" error message was only a fluke. Otherwise, this'll be fixed online. -- PiperOrigin-RevId: 144625508 MOS_MIGRATED_REVID=144625508
* Rollback of commit 2300f8a3e88d720f7eae90a80456142363850c5c.Gravatar Liam Miller-Cushon2017-01-16
| | | | | | | | | | | | | | | | | *** Reason for rollback *** bazelbuild/bazel#2123 is fixed *** Original change description *** Fix JavaLibraryBuildRequest for java 7 Bazel still supports java 7. This cl fixes a java 8-only construct introduced by commit 3c5e55ff8e058b624ce26e803ff00434c70d4b91. Liam, feel free to fix it to your liking afterwards. -- PiperOrigin-RevId: 144511670 MOS_MIGRATED_REVID=144511670
* Handle top-level exceptions in javacGravatar Liam Miller-Cushon2017-01-16
| | | | | | | | | | javac's main catches all exceptions and returns an exit code, the API does not. This restores error handling that was lost when we migrated to the API in commit 3c5e55ff8e058b624ce26e803ff00434c70d4b91. -- PiperOrigin-RevId: 144457176 MOS_MIGRATED_REVID=144457176
* Read srcjars using zipfs, instead of extracting themGravatar Liam Miller-Cushon2017-01-16
| | | | | | | | | | | | This allows JavaBuilder to support srcjars containing entries that differ only in case, even if the platform filesystem is case insensitive. Also, simplify srcjar handling and remove the SourceJarEntryListener abstraction since it wasn't pulling its weight. -- PiperOrigin-RevId: 144456040 MOS_MIGRATED_REVID=144456040
* Rollback of commit aad9b44898cf1562765755d475463145466ea7ae.Gravatar Liam Miller-Cushon2017-01-16
| | | | | | | | | | | | | | | | *** Reason for rollback *** bazelbuild/bazel#2123 is fixed *** Original change description *** Add explicit type annotations in BlazeJavacArguments.java Fixes bazel-tests for java 7 after commit 3c5e55ff8e058b624ce26e803ff00434c70d4b91 -- PiperOrigin-RevId: 144453400 MOS_MIGRATED_REVID=144453400
* Improve recursive deletion in JavaBuilderGravatar Liam Miller-Cushon2017-01-13
| | | | | | | | to use nio, and remove unused features. -- PiperOrigin-RevId: 144396133 MOS_MIGRATED_REVID=144396133
* Support Paths in JarCreater and JarHelperGravatar Liam Miller-Cushon2017-01-13
| | | | | | | | | Instead of passing strings representing paths in the default filesystem. -- PiperOrigin-RevId: 144395118 MOS_MIGRATED_REVID=144395118
* Coalesce JavaBuilder class hierarchyGravatar Liam Miller-Cushon2017-01-13
| | | | | | | | Some of these abstract classes used to have more than one subtype. -- PiperOrigin-RevId: 144366452 MOS_MIGRATED_REVID=144366452
* Remove single-use AbstractPostProcessor abstractionGravatar Liam Miller-Cushon2017-01-12
| | | | | | -- PiperOrigin-RevId: 144256082 MOS_MIGRATED_REVID=144256082
* Fix JavaLibraryBuildRequest for java 7Gravatar Marcel Hlopko2017-01-11
| | | | | | | | | Bazel still supports java 7. This cl fixes a java 8-only construct introduced by commit 3c5e55ff8e058b624ce26e803ff00434c70d4b91. Liam, feel free to fix it to your liking afterwards. -- PiperOrigin-RevId: 144206418 MOS_MIGRATED_REVID=144206418
* Eliminate the $jacoco_runtime implicit attribute and link in the Jacoco ↵Gravatar Lukacs Berki2017-01-11
| | | | | | | | | | agent through the $jacocorunner dependency. They are either both linked in or neither of them is, so there isn't much point in separating them. -- PiperOrigin-RevId: 144191570 MOS_MIGRATED_REVID=144191570
* Add explicit type annotations in BlazeJavacArguments.javaGravatar Marcel Hlopko2017-01-11
| | | | | | | | Fixes bazel-tests for java 7 after commit 3c5e55ff8e058b624ce26e803ff00434c70d4b91 -- PiperOrigin-RevId: 144180125 MOS_MIGRATED_REVID=144180125
* Invoke javac using the API, instead of main()Gravatar Liam Miller-Cushon2017-01-10
| | | | | | | | | | | | | | This unifies the test and production javac invocations. Location arguments (e.g. classpath, sources) are now set programatically from Paths, instead of going through string args. The classloader masking plugin is now just a custom filemanager, since javac uses the same context for the entire compilation and we don't need a plugin to carry it across annotation processing rounds. -- PiperOrigin-RevId: 144110025 MOS_MIGRATED_REVID=144110025
* Rollback changes to the BazelTestRunner which add a dependency on proto3 as ↵Gravatar Kush Chakraborty2017-01-10
| | | | | | | | it conflicts with IntelliJ dependencies, till we find a better way to separate the dependencies of the Test Runner from the dependencies of the Test Target. -- PiperOrigin-RevId: 144100298 MOS_MIGRATED_REVID=144100298
* Rollback of commit 08426525c517599a76b4f69814baf28731e840c7.Gravatar Lukacs Berki2017-01-10
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** *still* does not work with Windows: http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=windows-x86_64/lastBuild/console *** Original change description *** Jarjar the third-party dependencies of the Jacoco test runner. This is an encore of commit 823091f7516abf7d854021edc765daf1467f1647, which failed because Java temp directory handling in actions is broken at the moment. Fixes #2343. -- PiperOrigin-RevId: 144076235 MOS_MIGRATED_REVID=144076235
* Fix Bazel so that it actually works after commit ↵Gravatar Lukacs Berki2017-01-10
| | | | | | | | 08426525c517599a76b4f69814baf28731e840c7 . -- PiperOrigin-RevId: 144071698 MOS_MIGRATED_REVID=144071698
* google-java-format buildjarGravatar Liam Miller-Cushon2017-01-10
| | | | | | -- PiperOrigin-RevId: 144039394 MOS_MIGRATED_REVID=144039394