aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* 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
* AppleCrosstoolTransition is also applied to any incoming edge to a rule classGravatar Cal Peyser2017-01-13
| | | | | | | | | | | that may contain objc source. This only works with dynamic configurations turned on. This ensures that objc dependencies of non-objc targets use the apple crosstool. -- PiperOrigin-RevId: 144384483 MOS_MIGRATED_REVID=144384483
* Rollback of commit 117197000692fd7391962ef968228a31bf97399a.Gravatar Adam Michael2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Rollforward with fix for AarImportTest. The test failed previously due to a difference in the configuration because getConfiguredTarget("//a:bar") does not invoke the android split transition, so the artifact paths did not exactly match. *** Original change description *** Automated [] rollback of commit 7fc35ae6890f4130b4d99a6c5007dcee91c5a8cc. *** Reason for rollback *** Breaks //src/test/java/com/google/devtools/build/lib:bazel-rules-tests http://ci.bazel.io/view/Dashboard/job/bazel-tests/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/lastCompletedBuild/console *** Original change description *** aar_import provides JavaCompilationArgsProvider for DexArchiveAspect. -- PiperOrigin-RevId: 144370584 MOS_MIGRATED_REVID=144370584
* Move mocking logic for AndroidSdkRepositoryTest into the test itself.Gravatar Adam Michael2017-01-13
| | | | | | -- PiperOrigin-RevId: 144370558 MOS_MIGRATED_REVID=144370558
* Move the serialize and write functionality from UnwrittenMergedAndroidData ↵Gravatar Googler2017-01-13
| | | | | | | | to ParsedAndroidData. This improves reuse. -- PiperOrigin-RevId: 144369566 MOS_MIGRATED_REVID=144369566
* Log if dangling symlink is found. This is an odd choice of thing to log, but ↵Gravatar Janak Ramakrishnan2017-01-13
| | | | | | | | shouldn't come up very often, except in the linked bug. -- PiperOrigin-RevId: 144367142 MOS_MIGRATED_REVID=144367142
* 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
* Cleanup unthrown exceptions.Gravatar Googler2017-01-13
| | | | | | -- PiperOrigin-RevId: 144360540 MOS_MIGRATED_REVID=144360540
* Add some logging in case we fail an evaluation. This should be generally ↵Gravatar Janak Ramakrishnan2017-01-13
| | | | | | | | useful, but may also help identify Bazel as the culprit in the linked bug if we're lucky and the timestamps are clear. -- PiperOrigin-RevId: 144359628 MOS_MIGRATED_REVID=144359628
* Have the "version_min" build variable be available to Apple C/C++ ↵Gravatar Googler2017-01-13
| | | | | | | | compilation actions. -- PiperOrigin-RevId: 144356912 MOS_MIGRATED_REVID=144356912
* Refactor SkylarkNestedSet type checks and testsGravatar Jon Brandvein2017-01-13
| | | | | | | | Moved some tests, fixed formatting, changed to use assertThat(). -- PiperOrigin-RevId: 144356402 MOS_MIGRATED_REVID=144356402
* Fix ResourceUsageModel analysis of <style> resource bugs by overriding this ↵Gravatar Andrew Pellegrini2017-01-13
| | | | | | | | | | behavior in the extended class owned by ResourceUsageAnalyzer. This makes the fix available to both Blaze and Bazel, since Bazel uses the AOSP released version of the com.tools.android.lint library, which contains ResourceUsageModel, instead of the source version available in []. This change is based on the upstream patch [] and will be removed when the patch is included in the packaged version released with Bazel. -- PiperOrigin-RevId: 144355049 MOS_MIGRATED_REVID=144355049
* All headers in modules arising from an experimental_objc_library are compiledGravatar Cal Peyser2017-01-13
| | | | | | | | | (as they are for objc_library). This allows for swift/objc interop with experimental_objc_library, since swift imports require compiled headers. -- PiperOrigin-RevId: 144353367 MOS_MIGRATED_REVID=144353367
* Set --objc_use_dotd_pruning by default in the Bazel binary.Gravatar Cal Peyser2017-01-13
| | | | | | -- PiperOrigin-RevId: 144353268 MOS_MIGRATED_REVID=144353268
* Windows, JNI: use RAII pattern + clean up gotosGravatar Laszlo Csomor2017-01-13
| | | | | | | | | | | Introduce helper classes whose d'tor automatically release resources (close handles, release Java object handles, etc) and get rid of the "goto cleanup" pattern. -- PiperOrigin-RevId: 144349886 MOS_MIGRATED_REVID=144349886
* Adding Golang support to the remote_protocol proto library.Gravatar Ola Rozenfeld2017-01-13
| | | | | | -- PiperOrigin-RevId: 144348933 MOS_MIGRATED_REVID=144348933
* Handle the case where deploy_env causes partial extension information to be ↵Gravatar Googler2017-01-13
| | | | | | | | | | | | | | | | | | | | | available to the extension registry generator. With deploy_env, the message being extended may end up in the deploy_env binary's generated extension registry. However, the extension referencing that message is outside of deploy_env. For this case in the full runtime, we can synthesize the message as we don't need the loadPath (which is only used by lite runtime). Rollback of commit 34de5d7d4a0678b3a4097cb7531fedb3ddb45983. *** Reason for rollback *** Rolling forward *** Original change description *** Automated [] rollback of commit fa7e34979b1a10794321b1233e8d6f44a62431fa. -- PiperOrigin-RevId: 144346260 MOS_MIGRATED_REVID=144346260
* Rollback of commit 5163ec2c0db8fbdc7f367bb4aca5b6d7ae6d80b0.Gravatar Liam Miller-Cushon2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** See unknown commit *** Original change description *** Automated [] rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807. *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144344329 MOS_MIGRATED_REVID=144344329
* Add static factory methods to the AndroidResourceClassWriter for easier setup.Gravatar Googler2017-01-13
| | | | | | -- PiperOrigin-RevId: 144342246 MOS_MIGRATED_REVID=144342246
* Improve error when java_toolchain.header_compiler is unsetGravatar Liam Miller-Cushon2017-01-13
| | | | | | -- PiperOrigin-RevId: 144339611 MOS_MIGRATED_REVID=144339611
* Roll forward of commit 5c071429e83b5c6d872c755d3da21ad934638111Gravatar Kristina Chodorow2017-01-13
| | | | | | | | Fixes #1248. -- PiperOrigin-RevId: 144333530 MOS_MIGRATED_REVID=144333530
* Mandatory cfg parameter for labels if executable=1 is providedGravatar Vladimir Moskva2017-01-13
| | | | | | | | RELNOTES[INC]: All executable labels must also have a cfg parameter specified. -- PiperOrigin-RevId: 144332992 MOS_MIGRATED_REVID=144332992
* Refactor NestedSetBuilderGravatar Jon Brandvein2017-01-13
| | | | | | | | Add Order#isCompatible, clean javadoc. Also fix broken @Deprecated-based canary for detecting accidental flattening. -- PiperOrigin-RevId: 144331341 MOS_MIGRATED_REVID=144331341
* Update AndroidSdkRepositoryTest to account for changes to AndroidSdkRepository.Gravatar Adam Michael2017-01-12
| | | | | | | | This fixes //src/test/java/com/google/devtools/build/lib:bazel-rules-tests. -- PiperOrigin-RevId: 144328755 MOS_MIGRATED_REVID=144328755
* AppleCrosstoolTransition turns off any fission modes.Gravatar Cal Peyser2017-01-12
| | | | | | -- PiperOrigin-RevId: 144325333 MOS_MIGRATED_REVID=144325333
* Print a nicer error message when android tests can't be run Gravatar Kristina Chodorow2017-01-12
| | | | | | | | | | This was creating an invalid WORKSPACE file and then erroring out with a syntax error. -- Change-Id: I59389f565a0a4a893659df8a0c29d4a5d7377e62 Reviewed-on: https://cr.bazel.build/8171 PiperOrigin-RevId: 144324721 MOS_MIGRATED_REVID=144324721
* Reduce number of C++ modules explicitly specified on the command line.Gravatar Googler2017-01-12
| | | | | | -- PiperOrigin-RevId: 144323833 MOS_MIGRATED_REVID=144323833
* Bazel client, Windows: implement CanAccess methodsGravatar Laszlo Csomor2017-01-12
| | | | | | | | See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 144321891 MOS_MIGRATED_REVID=144321891
* Rollback of commit 7fc35ae6890f4130b4d99a6c5007dcee91c5a8cc.Gravatar Marcel Hlopko2017-01-12
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks //src/test/java/com/google/devtools/build/lib:bazel-rules-tests http://ci.bazel.io/view/Dashboard/job/bazel-tests/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/lastCompletedBuild/console *** Original change description *** aar_import provides JavaCompilationArgsProvider for DexArchiveAspect. -- PiperOrigin-RevId: 144316524 MOS_MIGRATED_REVID=144316524
* Bazel client, Windows: implement MakeDirectoriesGravatar Laszlo Csomor2017-01-12
| | | | | | | | | See https://github.com/bazelbuild/bazel/issues/2107 See https://github.com/bazelbuild/bazel/issues/1744 -- PiperOrigin-RevId: 144313301 MOS_MIGRATED_REVID=144313301
* Windows, JNI: use CreateFileW for std* redirectionGravatar Laszlo Csomor2017-01-12
| | | | | | | | | | | | | | Use CreateFileW to create the output files for redirected stdout/stderr in nativeCreateProcess. This way we can support long paths for these files. See https://github.com/bazelbuild/bazel/issues/2107 See https://github.com/bazelbuild/bazel/issues/2181 -- PiperOrigin-RevId: 144311729 MOS_MIGRATED_REVID=144311729
* Windows, JNI: arg for argv0 in nativeCreateProcessGravatar Laszlo Csomor2017-01-12
| | | | | | | | | | | | | | | | | | | Add a separate argument to nativeCreateProcess for argv[0] specifically, and another for the rest of the args. In a subsequent change I'll add code to compute the 8dot3 style short name of the argv[0] so we can use longer paths for executables in CreateProcessA than we normally could. This is the same approach as used in commit 44ecf9a0c7c25496a43f59f1c8f20df9527e12cb See https://github.com/bazelbuild/bazel/issues/2107 See https://github.com/bazelbuild/bazel/issues/2181 -- PiperOrigin-RevId: 144311562 MOS_MIGRATED_REVID=144311562
* Expose Worker protocol buffer to C++ so we can implement persistent actions ↵Gravatar Andreas Bergmeier2017-01-12
| | | | | | | | | | | | in C++. Protocol was already exposed for Python and Java, only make C++ a first class citizen. -- Change-Id: Ib2aa45bdb534f0f9181483b0161f2aa7c857dfb4 Reviewed-on: https://cr.bazel.build/7814 PiperOrigin-RevId: 144300665 MOS_MIGRATED_REVID=144300665
* Add a java_{library,binary}.resource_jars attribute that allows one to ↵Gravatar Lukacs Berki2017-01-12
| | | | | | | | specify jar files containing Java resources. -- PiperOrigin-RevId: 144299119 MOS_MIGRATED_REVID=144299119
* Disable turbine for bootstrap buildsGravatar Liam Miller-Cushon2017-01-12
| | | | | | -- PiperOrigin-RevId: 144296949 MOS_MIGRATED_REVID=144296949
* Gives 3 levels of sandbox error message under different flags.Gravatar Yue Gan2017-01-12
| | | | | | | | | | | | | | | | | 1. no flag: only the direct reason is given (command execution termination status), and also the instruction to use "--verbose_failures" 2. flag "--verbose_failures": gives failed execution command and the instruction to use "--sandbox_debug --strategy" 3. flag "--verbose_failures --sandbox_debug": gives failed execution command, debugging message from sandboxing, and the instruction to use "--strategy" Also removes "cd <sandbox_path>" in given failed command, since debugging is only necessary with flag "--verbose_failures --sandbox_debug" and the path is already given in sandboxing debugging message. Addresses #2174. Fixes bazel_sandboxing_test.sh and bazel_test_test.sh for the new error message. Fixes timeout. -- PiperOrigin-RevId: 144285435 MOS_MIGRATED_REVID=144285435
* Make android_sdk_repository create one android_sdk per api level in the SDK.Gravatar Adam Michael2017-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api_level is no longer required. It now sets the default android_sdk that is used if the --android_sdk flag is not passed. If it is not set, the highest api_level will be used as the default. The new behavior is demonstrated by the following example: $ ls $ANDROID_HOME/platforms android-21 android-22 android-23 $ cat WORKSPACE android_sdk_repository( name = "foo", ) $ bazel build //java/my/app # uses api level 23 $ bazel build --android_sdk=@foo//:sdk-22 //java/my/app # uses api level 22 $ cat > WORKSPACE <<EOF android_sdk_repository( name = "foo", api_level = 21, ) EOF $ bazel build //java/my/app # uses api level 21 $ bazel build --android_sdk=@foo//:sdk-23 //java/my/app # uses api level 23 See https://github.com/bazelbuild/bazel/issues/2284 for the master plan for android_sdk_repository. RELNOTES: android_sdk_repository no longer requires api_level. If one is not specified, the highest android platform installed will be used. Furthermore, android_sdk's are created for all android platforms installed and can be specified with the --android_sdk flag. -- PiperOrigin-RevId: 144258881 MOS_MIGRATED_REVID=144258881
* aar_import provides JavaCompilationArgsProvider for DexArchiveAspect.Gravatar Adam Michael2017-01-12
| | | | | | -- PiperOrigin-RevId: 144258810 MOS_MIGRATED_REVID=144258810
* Allows a rule class to specify a configuration transtion that will apply to allGravatar Cal Peyser2017-01-12
| | | | | | | | | | incoming edges if dynamic configurations are turned on. This CL does not cover top-level nodes. -- PiperOrigin-RevId: 144258789 MOS_MIGRATED_REVID=144258789
* Consolidate host javabase input lookupGravatar Liam Miller-Cushon2017-01-12
| | | | | | -- PiperOrigin-RevId: 144257691 MOS_MIGRATED_REVID=144257691
* Remove single-use AbstractPostProcessor abstractionGravatar Liam Miller-Cushon2017-01-12
| | | | | | -- PiperOrigin-RevId: 144256082 MOS_MIGRATED_REVID=144256082
* Add --swiftcopt support to swift_libraryGravatar Dmitry Shevchenko2017-01-12
| | | | | | -- PiperOrigin-RevId: 144231300 MOS_MIGRATED_REVID=144231300
* Windows: remove test-specific JNI loaderGravatar Laszlo Csomor2017-01-12
| | | | | | | | | | WindowsJniLoader.loadJniForTesting is just a special case of what WindowsJniLoader.loadJni already does, so we can just use the latter. -- PiperOrigin-RevId: 144224388 MOS_MIGRATED_REVID=144224388
* 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
* Bazel client, Windows: implement WriteFileGravatar Laszlo Csomor2017-01-12
| | | | | | | | See https://github.com/bazelbuild/bazel/issues/2107 -- PiperOrigin-RevId: 144218095 MOS_MIGRATED_REVID=144218095
* Deprecate the flags --experimental_skip_unused_modules andGravatar Googler2017-01-12
| | | | | | | | | | --experimental_prune_more_modules. Both flags have proven to be stable for a few weeks. Instead provide a (probably permanent) option to disable modules pruning completely. -- PiperOrigin-RevId: 144215146 MOS_MIGRATED_REVID=144215146
* Add SwiftConfigurationGravatar Dmitry Shevchenko2017-01-12
| | | | | | | | * This new configuration allows for passthrough of Swift-specific options into Skylark for further consumption by swift_library. It also keeps things nicely isolated until we get a way to create configurations in Skylark directly. -- PiperOrigin-RevId: 144210267 MOS_MIGRATED_REVID=144210267
* Rollback of commit 1da8ac3a8bb0780251976e0dbcfebd3a7ba6a066.Gravatar Pedro Liberal Fernandez2017-01-12
| | | | | | -- PiperOrigin-RevId: 144207746 MOS_MIGRATED_REVID=144207746
* Description redacted.Gravatar Googler2017-01-12
| | | | | | -- PiperOrigin-RevId: 144207428 MOS_MIGRATED_REVID=144207428