aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
Commit message (Collapse)AuthorAge
* Cleanup android rules and android tools so that my IDE stops complaining to me.Gravatar Adam Michael2017-01-25
| | | | | | -- PiperOrigin-RevId: 145569440 MOS_MIGRATED_REVID=145569440
* Fixes visibility. Fixes #2419.Gravatar Yue Gan2017-01-25
| | | | | | -- PiperOrigin-RevId: 145538761 MOS_MIGRATED_REVID=145538761
* Benchmark part 1: generate java code for buildGravatar Yue Gan2017-01-25
| | | | | | -- PiperOrigin-RevId: 145524911 MOS_MIGRATED_REVID=145524911
* Fix ClassCastException for non-http pom urls Gravatar Dmitry Komanov2017-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example for this library: ``` bazel run //src/tools/generate_workspace -- --artifact=com.wix:wix-embedded-mysql:2.1.3 ``` I get this exception: ``` Exception in thread "main" java.lang.ClassCastException: sun.net.www.protocol.ftp.FtpURLConnection cannot be cast to java.net.HttpURLConnection at com.google.devtools.build.workspace.maven.DefaultModelResolver.pomFileExists(DefaultModelResolver.java:143) at com.google.devtools.build.workspace.maven.DefaultModelResolver.getModelSource(DefaultModelResolver.java:124) at com.google.devtools.build.workspace.maven.DefaultModelResolver.resolveModel(DefaultModelResolver.java:96) at com.google.devtools.build.workspace.maven.Resolver.resolveEffectiveModel(Resolver.java:172) at com.google.devtools.build.workspace.maven.Resolver.resolveArtifact(Resolver.java:137) at com.google.devtools.build.workspace.GenerateWorkspace.generateFromArtifacts(GenerateWorkspace.java:123) at com.google.devtools.build.workspace.GenerateWorkspace.main(GenerateWorkspace.java:64) ``` The cause is the dependency's pom is resolved as `file://${basedir}/src/test/lib/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.pom`, which can't be tested with HTTP HEAD request, obviously. This patch is workaround, until there will be some better handling of such cases. Closes #2348. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2348 PiperOrigin-RevId: 145523022 MOS_MIGRATED_REVID=145523022
* Description redacted.Gravatar Carmi Grushko2017-01-20
| | | | | | -- PiperOrigin-RevId: 145030082 MOS_MIGRATED_REVID=145030082
* Description redacted.Gravatar Vladimir Moskva2017-01-19
| | | | | | -- PiperOrigin-RevId: 144965845 MOS_MIGRATED_REVID=144965845
* If --strict_proto_deps=default and a proto_library didn't specify ↵Gravatar Carmi Grushko2017-01-18
| | | | | | | | strict_proto_deps, then strictness is enforced. -- PiperOrigin-RevId: 144836042 MOS_MIGRATED_REVID=144836042
* Rename symbolsTxt to symbols reflecting it's actual usage.Gravatar Googler2017-01-18
| | | | | | -- PiperOrigin-RevId: 144741831 MOS_MIGRATED_REVID=144741831
* Create LibraryRClassGeneratorAction for generating R classes outside of theGravatar Googler2017-01-17
| | | | | | | | AndroidResourceMergingAction. -- PiperOrigin-RevId: 144726723 MOS_MIGRATED_REVID=144726723
* Move the serialize and write functionality from UnwrittenMergedAndroidData ↵Gravatar Googler2017-01-13
| | | | | | | | to ParsedAndroidData. This improves reuse. -- PiperOrigin-RevId: 144369566 MOS_MIGRATED_REVID=144369566
* Cleanup unthrown exceptions.Gravatar Googler2017-01-13
| | | | | | -- PiperOrigin-RevId: 144360540 MOS_MIGRATED_REVID=144360540
* Add static factory methods to the AndroidResourceClassWriter for easier setup.Gravatar Googler2017-01-13
| | | | | | -- PiperOrigin-RevId: 144342246 MOS_MIGRATED_REVID=144342246
* Expose the ability to define a binary output to the merge call.Gravatar Googler2017-01-12
| | | | | | | | | | | New method to deserialize parsed resources. Remove unthrown exceptions. RELNOTES:None -- PiperOrigin-RevId: 144221111 MOS_MIGRATED_REVID=144221111
* Make sure the classloader is closed after use.Gravatar Googler2017-01-12
| | | | | | | | RELNOTES:None -- PiperOrigin-RevId: 144218174 MOS_MIGRATED_REVID=144218174
* Speed up bundling by constructing an uncompressed ZIP from the filesGravatar Googler2017-01-11
| | | | | | | | | being bundled instead of copying them into the directory structure first. -- PiperOrigin-RevId: 144133387 MOS_MIGRATED_REVID=144133387
* Delete some dead android rules and tools code.Gravatar Adam Michael2017-01-09
| | | | | | -- PiperOrigin-RevId: 143823562 MOS_MIGRATED_REVID=143823562
* Handle huge (>4GB) output jars.Gravatar Sasha Smundak2017-01-04
| | | | | | | | RELNOTES: singlejar can now create jar files larger than 4GB. -- PiperOrigin-RevId: 143588105 MOS_MIGRATED_REVID=143588105
* Delete Bazel local version ResourceShrinker.java.Gravatar Andrew Pellegrini2016-12-21
| | | | | | -- PiperOrigin-RevId: 142573704 MOS_MIGRATED_REVID=142573704
* Power supportGravatar Nishidha Panpaliya2016-12-21
| | | | | | | | | Closes #2139. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2139 PiperOrigin-RevId: 142570236 MOS_MIGRATED_REVID=142570236
* Allow ResourceShrinkerAction to support splits.Gravatar Michael Staib2016-12-20
| | | | | | | | | | This is needed to support both shrinking and splitting at the same time, which will become the default for any android_binary which has splits defined on it once shrinking becomes default (if it hasn't already). -- PiperOrigin-RevId: 142497302 MOS_MIGRATED_REVID=142497302
* Switch Bazel to use ResourceUsageAnalyzer.java instead of ResourceShrinker.java.Gravatar Andrew Pellegrini2016-12-19
| | | | | | -- PiperOrigin-RevId: 142484589 MOS_MIGRATED_REVID=142484589
* Rollback of commit 27cd7f6bb4a02f56f9ad73e57e71e69a1c00d5ea.Gravatar Adam Michael2016-12-15
| | | | | | | | | | | | *** Reason for rollback *** Rolling forward, intentionally breaking loading phase (and therefore `bazel fetch`) for android_binary in Bazel if no android_sdk_repository is set up. Will not submit until Tensorflow's use case is cleaned up in https://github.com/tensorflow/tensorflow/pull/6225. -- PiperOrigin-RevId: 142068703 MOS_MIGRATED_REVID=142068703
* Better error messaging in xcrunwrapper and environment_plist when the ↵Gravatar Chris Parsons2016-12-09
| | | | | | | | xcode/SDK pair is unavailble. -- PiperOrigin-RevId: 141554441 MOS_MIGRATED_REVID=141554441
* move MakeDirectories() into file_platform.hGravatar Thiago Farina2016-12-07
| | | | | | | | | | | | | | This way we can remove the dependency on blaze_util (which is Bazel's client specific) from singlejar. This work was made possible by commit 49970e0136d0: ("Bazel client: platform-specific {Read,Write}File"). -- Change-Id: I6e95fb9119a271e4d48cbe2eefc1d5354ee188aa Reviewed-on: https://cr.bazel.build/7650 PiperOrigin-RevId: 141294165 MOS_MIGRATED_REVID=141294165
* Make token_stream a cc_libraryGravatar Liam Miller-Cushon2016-12-06
| | | | | | -- PiperOrigin-RevId: 141145286 MOS_MIGRATED_REVID=141145286
* Fix typos in usage exampleGravatar Liam Miller-Cushon2016-12-06
| | | | | | -- PiperOrigin-RevId: 141116980 MOS_MIGRATED_REVID=141116980
* Fix NPE in RClassGenerator when dev has code in unnamed packageGravatar Googler2016-12-05
| | | | | | | | | | | | | | | | | | | | Just put the R class in the unnamed package. If we disable the RClassGenerator and use the old code path, we would have constructed a cmdline flag set to "null" for aapt, and aapt would write "package null;" which also wouldn't work... This may allow you to build an android_library but it may be hard to build an android_binary because ultimately AAPT will reject an empty "package" attribute in the AndroidManifest.xml when you try to build the APK, so you'd need to stamp that differently. -- PiperOrigin-RevId: 140945125 MOS_MIGRATED_REVID=140945125
* unknown commit of 5: Fixing the merge warning messages in transitive library ↵Gravatar Googler2016-12-01
| | | | | | | | | overwrites. Record the sources are overwritten during merging. -- MOS_MIGRATED_REVID=140654137
* Added tests for exportGravatar Kristina Chodorow2016-11-29
| | | | | -- MOS_MIGRATED_REVID=140380336
* Bazel client: platform-specific {Read,Write}FileGravatar Laszlo Csomor2016-11-28
| | | | | | | | | | | | | | | | Move blaze::ReadFile and blaze::WriteFile to file.h and file_platform.h (thus into the blaze_util namespace), and update references. This allows us to implement these methods in a platform-specific way. Also move UnlinkPath. See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=140328273
* Attempt #2 to submit commit e860316559eac366d47923a8eb4b5489a661aa35: Using ↵Gravatar Ola Rozenfeld2016-11-24
| | | | | | | | | | an ActionFileInputCache for SHA1 digests used with remote execution. I missed an important test failure -- turned out we have a remote execution test that does not live under lib/remote. -- MOS_MIGRATED_REVID=140135277
* Add logging for creation of stub IDs for public.xml entries.Gravatar Andrew Pellegrini2016-11-24
| | | | | -- MOS_MIGRATED_REVID=140064545
* Mark resources with no declarations as deleted if they are also unused, ↵Gravatar Andrew Pellegrini2016-11-24
| | | | | | | allowing them to be removed from the public.xml file as well. This handles inline resources which have no explicit declaration and are deleted as part of their parent resource. -- MOS_MIGRATED_REVID=140056329
* Remove limitation of only analyzing files with known extensions as resources.Gravatar Andrew Pellegrini2016-11-23
| | | | | -- MOS_MIGRATED_REVID=140044141
* Bazel client: reduce dependency on POSIX APIGravatar Laszlo Csomor2016-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can now compile blaze_util_windows.cc with MSVC, yay! (when building //src:bazel --cpu=x64_windows_msvc -k). There are a lot of #ifdef's and TODOs so this is a modest victory for now. In this change: - change blaze::MakeDirectories to return bool instead of int, since that's how it was used anyway, and to expect the permission mask as unsigned int instead of mode_t, since the former is good enough and compatible with mode_t on POSIX while mode_t is not defined on Windows - move blaze::MakeDirectories into blaze_util_<platform> - implement envvar-handling in blaze_util_<platform> and use it everywhere See https://github.com/bazelbuild/bazel/issues/2107 -- MOS_MIGRATED_REVID=139887503
* Cut the dependency of singlejar on Bazel (the test still depend on it, but ↵Gravatar Lukacs Berki2016-11-21
| | | | | | | that's OK) -- MOS_MIGRATED_REVID=139774407
* Rollback of commit e860316559eac366d47923a8eb4b5489a661aa35.Gravatar Alex Humesky2016-11-21
| | | | | | | *** Reason for rollback *** -- MOS_MIGRATED_REVID=139640949
* Using an ActionFileInputCache for SHA1 digests used with remote execution.Gravatar Ola Rozenfeld2016-11-21
| | | | | -- MOS_MIGRATED_REVID=139613925
* Fix resource shrinker failing to fully remove unused style, plurals, and ↵Gravatar Andrew Pellegrini2016-11-17
| | | | | | | array resource types. -- MOS_MIGRATED_REVID=139357164
* Fix target info in conflict error message, to avoid toString on objectsGravatar Googler2016-11-04
| | | | | | | that don't implement it. -- MOS_MIGRATED_REVID=138126904
* Merge BlazeModule.getEnvironmentExtensions into serverInit / ServerBuilder.Gravatar Ulf Adams2016-11-02
| | | | | -- MOS_MIGRATED_REVID=137955061
* Wrap the source Path in a DataSource object.Gravatar Googler2016-10-25
| | | | | | | | The DataSource object will then be used to track which values have been overwritten and avoid incorrect merge warnings. -- MOS_MIGRATED_REVID=137159260
* Remove obsolete code from Bazel tools.Gravatar Dmitry Shevchenko2016-10-18
| | | | | -- MOS_MIGRATED_REVID=136400800
* Support input srcjar in filtered gen jar.Gravatar Googler2016-10-14
| | | | | | | | | | | This supports genrules that output srcjars that are then inputs to java_libraries. Also add support to produce a source jar with the contents of the gen jar. -- MOS_MIGRATED_REVID=136099457
* Rollback of commit f21d35ead25167ca7191229c7a365ccdf1a2550e.Gravatar Googler2016-10-07
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** With this approach, the R.class winds up in the filtered jar because its origin isn't among the "normal" Java sources. I'll have to be a little smarter, but start with rolling this back. *** Original change description *** Support srcjar files in filtered gen jar. If a java_library has any srcjar files in its sources attribute, the output of these would be discarded. To make it more robust, invert the jar filter to keep everything *except* source artifact java files. Previously, we would build a manifest containing all the generated java files and use that to filter. This should also be ever so slightly faster since we can skip an action. -- MOS_MIGRATED_REVID=135406849
* Update android_ide_common to 25.0.0 and clean up FolderConfigsGravatar Googler2016-10-07
| | | | | | | | | | | Older android_ide_common does not handle BCP 47, so we update the code to handle that and remove most of the workarounds. This also pulls in a fix for 3-letter locales, unblocks resource shrinking whitelisting, etc. -- MOS_MIGRATED_REVID=135396457
* Support srcjar files in filtered gen jar.Gravatar Googler2016-10-07
| | | | | | | | | | | | | | | | If a java_library has any srcjar files in its sources attribute, the output of these would be discarded. To make it more robust, invert the jar filter to keep everything *except* source artifact java files. Previously, we would build a manifest containing all the generated java files and use that to filter. This should also be ever so slightly faster since we can skip an action. -- MOS_MIGRATED_REVID=135351129
* Description redacted.Gravatar Damien Martin-Guillerez2016-10-06
| | | | | -- MOS_MIGRATED_REVID=135331287
* Description redacted.Gravatar Googler2016-10-06
| | | | | -- MOS_MIGRATED_REVID=135310637
* Roll forward of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-05
| | | | | | | | | | | | | | | | | | | | | | * Fixed breakage in shell tools with an old bazel binary. Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32. *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135238820