aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
Commit message (Collapse)AuthorAge
* Use Label.parseAbsolute() to determine whether command line options that can ↵Gravatar Lukacs Berki2015-09-25
| | | | | | | | | take absolute paths and labels are labels. This makes them work with labels not in the main repository (i.e. @repo//pkg:target). The alternative would have been to simply add .startsWith("@"), but why try to parse labels in a lame and limited way if we can do the right thing. -- MOS_MIGRATED_REVID=103934380
* Improved error reporting in RuleContext:Gravatar Florian Weikert2015-09-25
| | | | | | | | - Unified duplicate code from RuleContext and RuleContext.Builder in a new class, RuleContext.ErrorReporter - Added the BUILD file location to error/warning messages if the offending rule was created by a macro -- MOS_MIGRATED_REVID=103934375
* Do not hardcode the path to genrule-setup.sh in the implementation of genrule.Gravatar Lukacs Berki2015-09-25
| | | | | | | I don't know why it was implemented like that in the first place. -- MOS_MIGRATED_REVID=103934038
* Implemented copy constructor for Skylark dictionaries: new_dict = dict(old_dict)Gravatar Florian Weikert2015-09-25
| | | | | -- MOS_MIGRATED_REVID=103932279
* Skylark rules can no longer overwrite built-in attributes.Gravatar Florian Weikert2015-09-25
| | | | | -- MOS_MIGRATED_REVID=103931317
* Tweak the installation order of split APKs so that there is less logcat spam ↵Gravatar Lukacs Berki2015-09-25
| | | | | | | during "mobile install --split_apks". -- MOS_MIGRATED_REVID=103927507
* Removed new_file_suffix().Gravatar Florian Weikert2015-09-25
| | | | | -- MOS_MIGRATED_REVID=103926575
* Add a serialization proxy to RepositoryName instead of PackageIdentifier so ↵Gravatar Lukacs Berki2015-09-25
| | | | | | | | | that naked RepositoryName objects can also be serialized properly. Also store the initial offset a target pattern was parsed with. -- MOS_MIGRATED_REVID=103921930
* Clarify contract of EvaluationResult -- the same key can never be present in ↵Gravatar Janak Ramakrishnan2015-09-25
| | | | | | | both an "error" and "success" state. -- MOS_MIGRATED_REVID=103897656
* Prefetch and assert done on direct deps. Also print a more informative error ↵Gravatar Janak Ramakrishnan2015-09-25
| | | | | | | message if a previously known direct dep isn't done. -- MOS_MIGRATED_REVID=103880990
* Change Attribute.skipConstraintsCheck() (and similar methods)Gravatar Greg Estren2015-09-25
| | | | | | | | | | | | | to Attribute.skipPrereqValidatorCheck. This is to disambiguate the concept of "constraints" and keep the word consciously focused on Bazel's *new* constraint system. The changed methods refer to checks done by PrerequisiteValidator, which is basically an adhoc version of the "old" system (e.g. checking visibility) -- MOS_MIGRATED_REVID=103872412
* Make sure runtime shuts down on exception in uncaught exception handlerGravatar Michajlo Matijkiw2015-09-25
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=103869828
* Remove another use of errorEventHandler.Gravatar Ulf Adams2015-09-25
| | | | | -- MOS_MIGRATED_REVID=103850879
* Disable generateSubModules, since it causes issues with private headers.Gravatar Googler2015-09-25
| | | | | -- MOS_MIGRATED_REVID=103847305
* Use byte[] and Input/OutputStream directly for HTTP downloads.Gravatar Han-Wen Nienhuys2015-09-25
| | | | | | | | | | | | | nio.channels.ReadableByteChannel is unbuffered, so this causes HTTP downloads to read and write in 1 byte increments. To boot, InputStream#read and OutputStream#write are simpler. Fixes #478. -- Change-Id: Ic4854e03f5d48e47fb8cc58bbbdc459b831b16f3 Reviewed-on: https://bazel-review.googlesource.com/#/c/2040 MOS_MIGRATED_REVID=103844552
* Remove the experimental check-deps implementation.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103839895
* Remove more uses of errorEventHandler (previously of Reporter).Gravatar Ulf Adams2015-09-24
| | | | | | | Removes mutable global state. -- MOS_MIGRATED_REVID=103837106
* Rollback of commit 402d112bc25449f1e690bbbace600bbcda834d24.Gravatar Googler2015-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Rollforward with fix *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Breaks tests. *** Original change description *** Remove gen jar implicit output. This allows us to only create a jar for libraries that use annotation processing. It also increases our flexibility by reducing the visibility of these gen jars to an undocumented output group. -- MOS_MIGRATED_REVID=103833283
* Remove all direct uses of SkyframeExecutor.reporter.Gravatar Ulf Adams2015-09-24
| | | | | | | | | Instead, pass an appropriate EventHandler instance in. This is in preparation for creating a per-command EventHandler, in preparation for allowing multiple commands to run in parallel. This is removal of shared global state. -- MOS_MIGRATED_REVID=103828963
* Add a main_dex_proguard_specs attribute to android_binary that lets users ↵Gravatar Lukacs Berki2015-09-24
| | | | | | | | | | | specify which classes should go into the main dex. This mode uses Proguard to determine the dependencies of these classes, which means that no error-prone manual listing required like in multidex="manual" mode. RELNOTES: android_binary now has a main_dex_proguard_specs attribute to specify which classes should be in the main dex. -- MOS_MIGRATED_REVID=103824119
* Make intra-package wildcards work for remote repositories and clean up ↵Gravatar Lukacs Berki2015-09-24
| | | | | | | | | target pattern parsing just a tiny little bit. This wounds #389 dealing 4d6 fire damage (recursive wildcards, e.g. /... and friends still don't work) -- MOS_MIGRATED_REVID=103822319
* Rollback of commit 53330510c6ea5cd6257b9981b44e52d15a9e01aa.Gravatar Googler2015-09-24
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks tests. *** Original change description *** Remove gen jar implicit output. This allows us to only create a jar for libraries that use annotation processing. It also increases our flexibility by reducing the visibility of these gen jars to an undocumented output group. -- MOS_MIGRATED_REVID=103800137
* Make TargetFormatter available for tests.Gravatar Janak Ramakrishnan2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103798663
* Improve performance of Sky query.Gravatar Miguel Alcon Pinto2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103793399
* Propagates cc_library linkopts attribute to dependent objc_libraries.Gravatar Googler2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103792157
* Remove gen jar implicit output.Gravatar Googler2015-09-24
| | | | | | | | | This allows us to only create a jar for libraries that use annotation processing. It also increases our flexibility by reducing the visibility of these gen jars to an undocumented output group. -- MOS_MIGRATED_REVID=103789186
* Fix attribute capitalizationGravatar Kristina Chodorow2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103785076
* Merge BazelIosTest and ExperimentalIosTest, deleting the former.Gravatar Chris Parsons2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103781890
* Remove both of equals/hashCode from classes in lib/packages where either ↵Gravatar Nathan Harmata2015-09-24
| | | | | | | | | only one of them was implemented (potentially incorrectly) or the class really intends to have reference equality. RELNOTES: -- MOS_MIGRATED_REVID=103778746
* Better syncing of Google vs. external constraint enforcement.Gravatar Greg Estren2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103768073
* Allow Skylark import lookup values to be computed inline in order to avoid ↵Gravatar Janak Ramakrishnan2015-09-24
| | | | | | | reifying them in the Skyframe graph. -- MOS_MIGRATED_REVID=103758591
* Remove LoadedPackageProvider.getLoadedPackage, which is unused.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103755120
* Use a super-interface of PackageProvider where applicable.Gravatar Ulf Adams2015-09-24
| | | | | | | Also change some calls to getLoadedTarget to getTarget instead. -- MOS_MIGRATED_REVID=103755023
* Avoid LoadedPackageProvider in the PackageProviderForConfigs type hierarchy.Gravatar Ulf Adams2015-09-24
| | | | | | | | | | | | | | The PackageProviderForConfigurations is not a provider of loaded packages; it loads packages unconditionally, and is executed only within SkyFunction evaluation domains. I.e., the old type hierarchy made no sense. Also updated the documentation and renamed getLoadedTarget to getTarget. Note that getLoadedPackage was never called, so I removed it. This is in preparation for removing LoadedPackageProvider. -- MOS_MIGRATED_REVID=103754939
* Simplify LoadingPhaseRunner; avoid an unnecessary Set copy.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103754837
* Remove gen jar info from JavaRuleOutputJarsProvider.Gravatar Googler2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103754313
* Pass the SkyframePackageManager to the cycle reporters, not LoadedPackageP.Gravatar Ulf Adams2015-09-24
| | | | | | | This is in preparation for removing LoadedPackageProvider. -- MOS_MIGRATED_REVID=103752960
* Rewrite TargetProviderEnvironment to use a PackageProvider.Gravatar Ulf Adams2015-09-24
| | | | | | | This is one step towards eliminating LoadedPackageProvider. -- MOS_MIGRATED_REVID=103752861
* Disable --treat_srcjars_as_srcs_for_strict_deps flagGravatar Liam Miller-Cushon2015-09-24
| | | | | | | | The default behaviour is now to count srcjars as sources. The flag will be removed after the next release. -- MOS_MIGRATED_REVID=103747858
* Move callUninterruptibly to a helper class in lib.concurrent.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103747062
* Remove an unused method from LoadedPackageProvider.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103746974
* Fix ApplicationManifest#generatedManifest bug that would set the package as ↵Gravatar Andrew Pellegrini2015-09-24
| | | | | | | 'null' if the rule was not under either the java or javatests trees. Uses AndroidCommon#getJavaPackage to ensure consistent behavior. -- MOS_MIGRATED_REVID=103746264
* Make gen jars output group transitive.Gravatar Googler2015-09-24
| | | | | | | Also add gen jar provider, which we'll need for ide support. -- MOS_MIGRATED_REVID=103744649
* Simplify a method signature that isn't used elsewhere anymore.Gravatar Ulf Adams2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103744520
* Doc: Clarify when to use output_to_genfiles.Gravatar Laurent Le Brun2015-09-24
| | | | | -- MOS_MIGRATED_REVID=103741408
* Update doc for [new_]http_archive to mention tarballs.Gravatar Han-Wen Nienhuys2015-09-24
| | | | | | | -- Change-Id: Ib1270d1bbd549de96e7b82f8e674f6d67df8f450 Reviewed-on: https://bazel-review.googlesource.com/#/c/2020 MOS_MIGRATED_REVID=103740143
* Move ownership of SkyframeBuildView to SkyframeExecutor.Gravatar Ulf Adams2015-09-23
| | | | | | | | Also move ownership of ArtifactFactory to SkyframeBuildView; simplify the code. -- MOS_MIGRATED_REVID=103722228
* Allow custom Package serialization logic to be injected. Also fix incorrect ↵Gravatar Nathan Harmata2015-09-23
| | | | | | | comment in PackageSerializer. -- MOS_MIGRATED_REVID=103693274
* Don't shell escape parameters to a non-shell action (environment plist).Gravatar Peter Schmitt2015-09-23
| | | | | -- MOS_MIGRATED_REVID=103680953
* Make aspect resolver and dependencyFilter transient, as they are not ↵Gravatar Miguel Alcon Pinto2015-09-23
| | | | | | | serializable. -- MOS_MIGRATED_REVID=103678330