aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools
Commit message (Collapse)AuthorAge
* Split off more BUILD files.Gravatar Han-Wen Nienhuys2015-10-30
| | | | | -- MOS_MIGRATED_REVID=106597904
* Split off more BUILD files.Gravatar Han-Wen Nienhuys2015-10-28
| | | | | -- MOS_MIGRATED_REVID=106493557
* Replace "Google Inc" with "The Bazel Authors" in every copyright notice.Gravatar Lukacs Berki2015-10-21
| | | | | -- MOS_MIGRATED_REVID=105949508
* Rename protobuf targets to xxx_proto.Gravatar Han-Wen Nienhuys2015-10-09
| | | | | -- MOS_MIGRATED_REVID=105054615
* Add IdlClass to the embedded default android tools repository and rearrangeGravatar Alex Humesky2015-10-05
| | | | | | | BuildJar's JarHelper so that it too can be embedded. -- MOS_MIGRATED_REVID=104539260
* Fix Java 7 test suiteGravatar Damien Martin-Guillerez2015-10-02
| | | | | | | | | | | | | - Prevent test from JavaBuilder to be run (mark them as JDK8 only). - Hack to replace the JavaBuilder target so that test that needs JavaBuilder will depends on the pre-built binary version. Tested: bash -c 'export JAVA_VERSION=1.7; source scripts/ci/build.sh; bazel_build' (and verified that there is no build failure). We might still have failing tests (worker and runfiles) but the failure seems like flakiness. -- MOS_MIGRATED_REVID=104504123
* Update to javac r2973Gravatar Liam Miller-Cushon2015-10-01
| | | | | -- MOS_MIGRATED_REVID=104410793
* Opt out of ClientCodeWrappingGravatar Liam Miller-Cushon2015-10-01
| | | | | -- MOS_MIGRATED_REVID=104407868
* Use an isolated classloader for JavaBuilder pluginsGravatar Liam Miller-Cushon2015-09-30
| | | | | -- MOS_MIGRATED_REVID=104131197
* Fix JavaBuilder bug when the source files are empty.Gravatar Eddie Aftandilian2015-09-30
| | | | | -- MOS_MIGRATED_REVID=104112686
* Add Android IDL jar outputs.Gravatar Googler2015-09-28
| | | | | | | | | | These outputs are a jar and source jar for the results of aidl processing. This is used to add aidl output to IDEs separate from the source code, similar to annotation output (gen jars). -- MOS_MIGRATED_REVID=104024453
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Increase size of test timeout flaky on ci.bazel.ioGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | See http://ci.bazel.io/job/Bazel/PLATFORM_NAME=darwin-x86_64/104/console process_wrapper_test is actually failing inside the timeout test so it is probably don't have enough time too. -- MOS_MIGRATED_REVID=102841728
* Make SingleJar remove the extended timestamp (0x5455) and InfoZip New Unix ↵Gravatar Lukacs Berki2015-09-01
| | | | | | | | | | | (0x7875) extra fields. This is important so that the output .zip files are actually hermetic. In particular, this caused problems with running the tests for singlejar on OS X Yosemite. Also add some defensive copying as a drive-by cleanup. -- MOS_MIGRATED_REVID=102026257
* Remove the callback that allowed excluding files from deletion.Gravatar Ulf Adams2015-08-26
| | | | | -- MOS_MIGRATED_REVID=101555261
* Fix -proc:only after e927532Gravatar Liam Miller-Cushon2015-08-24
| | | | | | | | | | Don't expect FLOW events if the compile policy is set to stop before FLOW (e.g. with -proc:only). Fixes google/bazel#379 -- MOS_MIGRATED_REVID=101242866
* Fall back to transitive classpath for no.such.pkg errors.Gravatar Liam Miller-Cushon2015-08-21
| | | | | | | | | | | | | | | | With -XDshouldStopPolicyIfError=INIT (the default) and -XDcompilePolicy=byfile (not the default), javac will stop compiling after emitting no.such.pkg and before any missing symbol errors are reported. The reduced classpath builder needs to fall back to the transitive classpath in this case. This currently works because with -XDcompilePolicy=todo (the default), javac attributes compilation units even if they have with syntax errors to avoid "surprising existing users". [1] [1] http://hg.openjdk.java.net/jdk9/dev/langtools/file/7fd155b7041c/test/tools/javac/policy/test3/Test.java -- MOS_MIGRATED_REVID=101175706
* Remove debugging output.Gravatar Andrew Pellegrini2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100928168
* Extend size of //src/java_tools/singlejar:zipTestsGravatar Damien Martin-Guillerez2015-08-18
| | | | | | | This test is taking more than 300s on the continous integration machine on GCE. -- MOS_MIGRATED_REVID=100909674
* Don't run plugins on compilations with errors.Gravatar Liam Miller-Cushon2015-08-04
| | | | | -- MOS_MIGRATED_REVID=99775681
* Adds gen jar and manifest proto outputs.Gravatar Alex Humesky2015-07-10
| | | | | | | Adds a jar output to Java and Android rules which contains the class files for source files generated from Java annotation processors. For a java_binary foo, the jar will be foo-gen.jar, and for a java_library foo the jar will be libfoo-gen.jar, and similarly for Android. Also adds a binary serialized proto manifest file output to Java and Android rules which describes the contents of the output class jar of those rules, which is used to create the -gen.jar. See src/main/protobuf/java_compilation.proto. -- MOS_MIGRATED_REVID=97793715
* Let JavaBuilder rethrow the real exception in case of a failed compilation ↵Gravatar Philipp Wollermann2015-07-03
| | | | | | | | | instead of just putting the message into an IOException. This allows us to more fine-grainly consider printing just the error message (which is the right thing to do in case of compilation errors due to Java syntax errors, wrong command-line arguments, ...) or a stack trace (which is interesting in case the JavaBuilder really hit an IOException or something worse). -- MOS_MIGRATED_REVID=97413024
* Allow warnings to be suppressed for generated code.Gravatar Liam Miller-Cushon2015-06-30
| | | | | | | | | | | Adds a -XepDisableWarningsInGeneratedCode flag, which if set suppressings warnings from being emitted inside code annotation with @Generated. Error are not affected. Fixes #329 -- MOS_MIGRATED_REVID=97185343
* Move the Error Prone plugin into BazelGravatar Liam Miller-Cushon2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96365813
* Emit a 'manifest' file containing information about the compiled sourcesGravatar Liam Miller-Cushon2015-06-17
| | | | | | | | | | | | For each compilation unit, JavaBuilder will record: -source path -package name -a list of top-level class names -whether the file was generated by an annotation processor -- MOS_MIGRATED_REVID=96158093
* Set-up travis OSX to compile using JDK 7Gravatar Damien Martin-Guillerez2015-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is introducing a few changes to use the Java compiler from errorprone: - add the --java_langtools flag to the shell tests so we do the tests with the same java compiler tooling than Bazel, and - added the langtools the bootclasspath of the JavaBuilder tests. - tagged some tests and deactivated them on travis OSX because they either requires Java 8 or a lot of disk space. To do the same change on a local install, one must: - change the source and target versions to 7 in the tools/jdk:toolchain target, - use the .travis/jdk7.WORKSPACE file instead of the default Bazel workspace (it contains a maven_jar refering to the errorprone's java compiler tools), and - set the JAVA_VERSION environent variable to "1.7". The .travis/build.sh script does just that when under OS X. -- Change-Id: Idb466cf47cf7df35a34fb0dd8d186628aae0cba7 Reviewed-on: https://bazel-review.googlesource.com/#/c/1520/ MOS_MIGRATED_REVID=96011123
* Fix permissions for zip filesGravatar Kristina Chodorow2015-06-12
| | | | | | | | | | | | | | | Now [new_]http_archive can be used for executables as well as "default permission" (644) files. This also gets rid of the Apache Commons Compress dependency entirely, which is nice. Fixing this also exposed some bugs in how archives were being decompressed (the same archive was being decompressed multiple times), which I also fixed by making the decompressors SkyFunctions. Fixes #238. -- MOS_MIGRATED_REVID=95747810
* Removed deprecated API features from ZipCombiner and improves slow read ↵Gravatar Andrew Pellegrini2015-06-10
| | | | | | | | | testing and support. RELNOTES: Elements of ZipCombiner's API previously marked deprecated are removed. -- MOS_MIGRATED_REVID=95543357
* Some small, random fixes for JavaBuilder that increase error reporting, fix ↵Gravatar Philipp Wollermann2015-06-10
| | | | | | | | | JavaDoc strings, ... I found having stack traces very helpful while I was debugging an issue where the JavaBuilder ran out of file handles and crashed, but only printed "Compilation failed: No more file handles" and didn't tell me which part of the code actually tried to open the file. -- MOS_MIGRATED_REVID=95529141
* JavaBuilder can run as a Blaze worker process now.Gravatar Philipp Wollermann2015-06-10
| | | | | -- MOS_MIGRATED_REVID=95527889
* Add --generated_class_output to JavaBuilder.Gravatar Liam Miller-Cushon2015-06-09
| | | | | | | | If enabled, JavaBuilder will write a jar containing classes generated by annotation processors to the given path. -- MOS_MIGRATED_REVID=95470914
* Bootstrapping tools using BazelGravatar Damien Martin-Guillerez2015-06-05
| | | | | | | | | | | | Added target to use java skylark rules to bootstrap JavaBuilder and SingleJar. Uses thoses target to bootstrap JavaBuilder and SingleJar and compiles all tools using Bazel. -- Change-Id: I5142917c8b31e04015fbab89382df36b4892d8c6 Reviewed-on: https://bazel-review.googlesource.com/#/c/1451/ MOS_MIGRATED_REVID=95281092
* Relax strict java deps for tiktok's component processorGravatar Liam Miller-Cushon2015-05-21
| | | | | -- MOS_MIGRATED_REVID=94040936
* Add a plugin to drop Error Prone-specific javacoptsGravatar Liam Miller-Cushon2015-05-18
| | | | | -- MOS_MIGRATED_REVID=93915666
* Set up a filemanager in BazelJavaBuilderGravatar Liam Miller-Cushon2015-05-18
| | | | | | | | | This unifies some compilation set-up with the bazel JavaBuilder, and fixes a bug that only manifested with javac 9 that prevents filemanager options (e.g. '-d') from being handled correctly. -- MOS_MIGRATED_REVID=93893036
* Add a --javac_extdir flag to enable configuring the javac -extdirs flagGravatar Liam Miller-Cushon2015-05-11
| | | | | | | | | | | | | | | The -extdirs flag sets a search path to the directory containing the JDK's extension classes, and should always be set explicitly when cross-compiling. If it is unset, the ext directory of the host JDK will be used instead. javac requires that -extdirs be a list of directories. The blaze --javac_extdir flag takes the label of a filegroup with the 'path' attribute set, and passes the directory path through to JavaBuilder. RELNOTES: N/A -- MOS_MIGRATED_REVID=93147656
* Rewrite of ZipCombiner to improve performance and maintainabilityGravatar Googler2015-05-08
| | | | | | | | | | | Poorly performing features of the API have been deprecated in favor of better alternatives: - use addZip(File) over addZip(InputStream) or addZip(String, InputStream) - use addFile(ZipFileEntry) over addFile(String, Date, InputStream, DirectoryEntryInfo) New zip package for high performance ZIP file manipulation. Can directly work with compressed ZIP entry data and has support for Zip64 (forces Zip32 by default). -- MOS_MIGRATED_REVID=93128639
* JavaBuilder: Remove old logic that tries to parse protos as textfiles.Gravatar Philipp Wollermann2015-04-28
| | | | | -- MOS_MIGRATED_REVID=92255081
* Make the indirect dependency message show the correct label for external depsGravatar Kristina Chodorow2015-04-15
| | | | | | | | | Previously it would show the relative path within the external dep (e.g., in the given test, "** Please add the following dependencies: x to //a:a"). Fixes https://github.com/google/bazel/issues/112. -- MOS_MIGRATED_REVID=91093258
* Enable external contribution on SingleJarGravatar Damien Martin-Guillerez2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90699667
* Automated [] rollback of [].Gravatar Googler2015-04-06
| | | | | | | | | | | | | | | *** Reason for rollback *** New ZipCombiner creates malformed output ZIP files when input ZIP files contain more than 65535 entries, the maximum amount for non-64-bit ZIP files. *** Original change description *** Rewrite of ZipCombiner to improve performance and maintainability. Added devtools/build/zip to allow reading and writing of ZIP files without requiring decompressing file data to manipulate them. ZipCombiner API has some changes. ZipCombiner#addZip takes a File instead of InputStream. ZipCombiner#addFile takes a ZipFileEntry instead of DirectoryEntryInfo -- MOS_MIGRATED_REVID=90279976
* Add test dependencyGravatar Kristina Chodorow2015-04-03
| | | | | | | This was making Bazel's bootstrap_test fail. -- MOS_MIGRATED_REVID=90270050
* Adds ZipCombiner#addZip(InputStream).Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90172709
* Description redacted.Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90162183
* Open-source Bazel integration testsGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | | | It is a first batch of integration tests for Bazel. They tests some basic behaviors and nominal cases of Bazel rules (especially they tests the behavior of the examples provided in //examples). -- MOS_MIGRATED_REVID=89440074
* Added Eclipse project configuration for BazelGravatar Damien Martin-Guillerez2015-03-11
| | | | | | | | | | | | This add the eclipse project configuration. To use it, first do a `./bootstrap_test.sh all` then import the Eclipse project in the Bazel directory. On my mac using Eclipse Luna configured with a JDK 8 it still displays errors on truth's isEmpty() method on collections. We Might need to tweak a bit the java configuration for it to work nicely. -- MOS_MIGRATED_REVID=88321458
* Open-source ijar's testsGravatar Damien Martin-Guillerez2015-03-10
| | | | | -- MOS_MIGRATED_REVID=88210083
* Description redacted.Gravatar Nathan Harmata2015-03-05
| | | | | -- MOS_MIGRATED_REVID=87698104
* Open-sourcing BazelJavaCompiler.Gravatar Damien Martin-Guillerez2015-03-05
| | | | | | | This is a mock for java compilation. It can be used to do tests using the same configuration as when Bazel invoke javac. -- MOS_MIGRATED_REVID=87608177
* Normalize Bazel's JavaBuilder javac Xlint options.Gravatar Damien Martin-Guillerez2015-03-04
| | | | | | | The default Xlint behaviors is not really practical: -Xlint:all -Xlint:none results in all warnings being enabled. This normalizer preprocesses javac options to achieve a command line that is sensitive to ordering (e.g., -Xlint:all -Xlint:none will results in no warning being enabled). -- MOS_MIGRATED_REVID=87339357