aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/singlejar/output_jar_simple_test.cc
Commit message (Collapse)AuthorAge
* Add dependency on googletest, so we can use gmock along with gtest.Gravatar ccalvarin2018-03-23
| | | | | | | third_party/gtest can go away after this. RELNOTES: None. PiperOrigin-RevId: 190221581
* Adjust the singlejar binary to accept an optional comma-separated "label" withGravatar Googler2017-10-27
| | | | | | | each entry in the --outputs flag. RELNOTES: n/a PiperOrigin-RevId: 173547248
* Support directories in --resourcesGravatar cushon2017-04-24
| | | | PiperOrigin-RevId: 153787279
* Create parent directories for resourcesGravatar cushon2017-04-04
| | | | | | | | | This makes singlejar's handling of resources consistent with JavaBuilder, and allows the JavaBuilder resource handling to be replaced by a singlejar action that adds resources to library jars separately from compilation (see unknown commit). PiperOrigin-RevId: 152082884
* Bazel client: simplify {Read,Write}File semanticsGravatar Laszlo Csomor2017-03-01
| | | | | | | | | | | | | | | | Introduce a platform-specific file handle type (HANDLE on Windows, int on Linux/Darwin/FreeBSD) so we can get rid of the read_func and write_func functions, since they are always the same everywhere. Also include file_platform.h in file.h, since they are logically the same file (file_platform.h is just the platform-specific part of file.h). -- PiperOrigin-RevId: 148892736 MOS_MIGRATED_REVID=148892736
* 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
* 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
* Implement --nocompress_suffixes option.Gravatar Sasha Smundak2016-09-26
| | | | | | | The planned replacement of the ApkBuilder with singlejar uses it. -- MOS_MIGRATED_REVID=134290339
* Add '0xCAFE' extra field to the first entry of the output jar (which is ↵Gravatar Sasha Smundak2016-09-26
| | | | | | | META-INF/). Unix 'file' utility uses it to distinguish jar file from zip file. -- MOS_MIGRATED_REVID=134102453
* Allow OutputJar subclass to customize entry handling behavior.Gravatar Sasha Smundak2016-08-31
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=131805817
* Remove entries' Unix timestamp extra fields when --normalize is present.Gravatar Sasha Smundak2016-08-30
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=131607358
* When --exclude_build_data option is present, build-data.properties file ↵Gravatar Sasha Smundak2016-08-26
| | | | | | | | | should be copied from the first source archive containing it. RELNOTES: -- MOS_MIGRATED_REVID=131383175
* The value of the --resources flag is <PATH>:<NAME>, not <NAME>:<PATH>Gravatar Sasha Smundak2016-08-19
| | | | | -- MOS_MIGRATED_REVID=130725849
* Implement --compression and --dont_change_compression.Gravatar Sasha Smundak2016-08-18
| | | | | -- MOS_MIGRATED_REVID=130541462
* Test for META-INF/services/* and META-INF/spring.handlers and ↵Gravatar Sasha Smundak2016-08-17
| | | | | | | META-INF/spring.schemas. -- MOS_MIGRATED_REVID=130414929
* Implement --normalize option. Refactor file writing code in OutputJar. ↵Gravatar Sasha Smundak2016-08-16
| | | | | | | Refactor test file preparation code in OutputJarSimpleTest. -- MOS_MIGRATED_REVID=130148073
* Implement --include_prefixes.Gravatar Sasha Smundak2016-08-16
| | | | | -- MOS_MIGRATED_REVID=130083166
* Provide ExtraCombiner method.Gravatar Sasha Smundak2016-08-11
| | | | | -- MOS_MIGRATED_REVID=129870872
* Refactor tests by moving common utilities to test_utils.{h,cc} andGravatar Sasha Smundak2016-08-09
| | | | | | | | | | | | removing unused test case classes. Also includes the following changes: Fixes images for design doc "Beautiful Error Messages". -- MOS_MIGRATED_REVID=129725896
* Initial checkin of the OutputJar and main.Gravatar Sasha Smundak2016-08-08
-- MOS_MIGRATED_REVID=129473820