aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
Commit message (Collapse)AuthorAge
...
* Rollback of commit fb65f9382f34c2641b5069c30a57a08445b920a3.Gravatar Laszlo Csomor2016-10-04
| | | | | | | | | | | | | | | *** Reason for rollback *** Other projects may depend on Ijar without wanting to depend on Bazel. *** Original change description *** Ijar: use more utilities from Bazel's source Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=135086722
* Ijar: use more utilities from Bazel's sourceGravatar Laszlo Csomor2016-10-04
| | | | | | | Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=134797116
* Ijar: use utilities from Bazel's sourceGravatar Laszlo Csomor2016-09-30
| | | | | | | Remove a duplicate implementation of JoinPath. -- MOS_MIGRATED_REVID=134778185
* Ijar: make some targets compilable with MSVCGravatar Laszlo Csomor2016-09-30
| | | | | | | | Particulary third_party/ijar:{zip,zlib_client} now compile with --cpu=x64_windows_msvc. -- MOS_MIGRATED_REVID=134771232
* Windows, native: add windows_msvc config_settingGravatar Laszlo Csomor2016-09-28
| | | | | | | | | | | | | | | Update `select` statements in BUILD files with the new config_setting. This is a first step on a long path that leads to us being able to compile bazel on Windows with --cpu=x64_windows_msvc. Needless to say, we're not there yet. Tested: on Linux, Darwin, Windows/MSYS -- MOS_MIGRATED_REVID=134534613
* Fix Bazel compilation on Windows.Gravatar Laszlo Csomor2016-09-26
| | | | | | | Fixes https://github.com/bazelbuild/bazel/issues/1826 -- MOS_MIGRATED_REVID=134261731
* Clean up ijar tests that use Java 8 featuresGravatar Liam Miller-Cushon2016-09-23
| | | | | -- MOS_MIGRATED_REVID=134040102
* Move zlib-interfacing code from third_party/ijar/zip.cc into a separate ↵Gravatar Rumou Duan2016-09-22
| | | | | | | class. And add a dummy zlib client. -- MOS_MIGRATED_REVID=133879880
* Fixed some documentation in zip_main.ccGravatar Yun Peng2016-08-05
| | | | | -- MOS_MIGRATED_REVID=129429378
* zipper now can specify actual path a file is added toGravatar Yun Peng2016-08-04
| | | | | | | | | | | Examples for how to use <zip_path>=<file> syntax: zipper c x.zip a/b/__init__.py= # Add an empty file at a/b/__init__.py zipper c x.zip a/b/main.py=foo/bar/bin.py # Add file foo/bar/bin.py at a/b/main.py -- Change-Id: I3c09dfb31d082f3ca8036e87affc8d99f7e75fe0 Reviewed-on: https://bazel-review.googlesource.com/#/c/4243 MOS_MIGRATED_REVID=129325719
* Fix owner permissions bug in unzip codeGravatar Justine Tunney2016-08-02
| | | | | | | | This situation arises when a zip file does not contain entries for the directories themselves, but only the files themselves. -- MOS_MIGRATED_REVID=129072925
* Make ijar_test nuke $TEST_TMPDIR on exit.Gravatar Lukacs Berki2016-07-21
| | | | | | | $TEST_TMPDIR is not deleted automatically and this can result in the accumulation of a bunch of large files on the CI machines of Bazel because this tests writes 2GB files for testing. -- MOS_MIGRATED_REVID=128037053
* Update ijar testGravatar Kristina Chodorow2016-06-22
| | | | | | | Another part of rolling forward #1262. -- MOS_MIGRATED_REVID=125481356
* Rollback of commit bdfd58a8ca2ed5735d6aaa5b238fb0f689515724.Gravatar Laurent Le Brun2016-06-20
| | | | | -- MOS_MIGRATED_REVID=125160288
* Make the execution root match the runfiles tree structure for external ↵Gravatar Kristina Chodorow2016-06-17
| | | | | | | | | | | | | | | | | | | | | repositories One interesting side effect of how this is implemented is that for external repositories, bin/ and genfiles/ are combined. External repo output is under bazel-out/local-fastbuild/repo_name for each repo. Fixes #1262. RELNOTES[INC]: Previously, an external repository would be symlinked into the execution root at execroot/local_repo/external/remote_repo. This changes it to be at execroot/remote_repo. This may break genrules/Skylark actions that hardcode execution root paths. If this causes breakages for you, ensure that genrules are using $(location :target) to access files and Skylark rules are using http://bazel.io/docs/skylark/lib/File.html's path, dirname, etc. functions. -- MOS_MIGRATED_REVID=125095799
* Improvements to zipper extraction support (x option):Gravatar Rumou Duan2016-05-12
| | | | | | | | | | 1. Add ability to specify relative output directory through -d option. 2. Add ability to specify a list of archive entries to extract from the zip file. Fixes #630. -- MOS_MIGRATED_REVID=122159723
* Switch to using ../repo-name syntax for runfilesGravatar Kristina Chodorow2016-05-04
| | | | | -- MOS_MIGRATED_REVID=121475668
* Initialize an uninitialized field in ijarGravatar Shinichiro Hamaji2016-05-02
| | | | | | | | This was reported in -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1197 MOS_MIGRATED_REVID=121257152
* Set Bazel's workspace nameGravatar Kristina Chodorow2016-04-27
| | | | | | | | | | RELNOTES: Bazel's workspace name is now io_bazel. If you are using Bazel's source as an external repository, then you may want to update the name you're referring to it as or you'll begin seeing warnings about name mismatches in your code. -- MOS_MIGRATED_REVID=120926179
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Prune anonymous classes in ijarGravatar Liam Miller-Cushon2016-04-12
| | | | | -- MOS_MIGRATED_REVID=119581073
* Add prefix to file path in ijar to allow file path longer than 260 on WindowsGravatar Yun Peng2016-04-11
| | | | | | | -- Change-Id: Ia176408e9b59caa85da7eb63fd3d9251a1d3fb40 Reviewed-on: https://bazel-review.googlesource.com/#/c/3328/ MOS_MIGRATED_REVID=119522458
* Use the zlib version in third_party instead of whatever is installed.Gravatar Lukacs Berki2016-04-07
| | | | | | | This was the last dependency of Bazel that is pulled in from the host system, so now (at least as dependencies go) the source tree of Bazel is now self-contained. -- MOS_MIGRATED_REVID=119243670
* Description redacted.Gravatar Googler2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119053259
* ijar: check the return value of getcwd() functionGravatar Thiago Farina2016-04-05
| | | | | | | | | | | | | | | | | Check the return value of getcwd() and if it fails print a message to the user and return -1. This should fix the following warning: third_party/ijar/zip_main.cc:175:32: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] getcwd(output_root, PATH_MAX); -- Change-Id: I8857e484f5baf60289d7c19a128f5a4616ae50e4 Reviewed-on: https://bazel-review.googlesource.com/#/c/3230/ MOS_MIGRATED_REVID=119029402
* ijar: cast to size_t instead of int to avoid sign-compare warning.Gravatar Damien Martin-Guillerez2016-04-01
| | | | | -- MOS_MIGRATED_REVID=118761993
* ijar: fix mismatched-tags warningsGravatar Thiago Farina2016-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the following warnings: third_party/ijar/mapped_file_unix.cc:31:1: warning: 'MappedInputFileImpl' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct MappedInputFileImpl { ^ ./third_party/ijar/mapped_file.h:22:1: note: did you mean struct here? class MappedInputFileImpl; third_party/ijar/mapped_file_unix.cc:88:1: warning: 'MappedOutputFileImpl' defined as a struct here but previously declared as a class [-Wmismatched-tags] struct MappedOutputFileImpl { ^ ./third_party/ijar/mapped_file.h:23:1: note: did you mean struct here? class MappedOutputFileImpl; -- Change-Id: Ie8269c0cfec41b4a1ddcdc9a9cd155ecac4b01d8 Reviewed-on: https://bazel-review.googlesource.com/#/c/3101 MOS_MIGRATED_REVID=118761176
* Fix comparison warning in ijarGravatar Damien Martin-Guillerez2016-03-30
| | | | | | | It's too much annoyance to see that error message in Bazel bootstrap. -- MOS_MIGRATED_REVID=118572214
* Fix asan error introduced by commit 257337638463d01bcf627c60de42861d775fefec.Gravatar Googler2016-03-23
| | | | | | | One cannot call realloc() on the result of operator new. -- MOS_MIGRATED_REVID=117906367
* Global cleanup change.Gravatar Googler2016-03-01
| | | | | -- MOS_MIGRATED_REVID=115896463
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Use a custom ToString instead of std::to_string that is not available on mingw.Gravatar Dmitry Lomov2016-02-17
| | | | | | | Needed for #276. -- MOS_MIGRATED_REVID=114867808
* Stop bundling ijar's sources in bazel_toolsGravatar Damien Martin-Guillerez2016-02-17
| | | | | | | | | | Instead bundle ijar's zipper binary so the skylark rules that depends on it can use it from @bazel_tools. A commit introducing windows config settings broke our appengine tutorial. -- MOS_MIGRATED_REVID=114857080
* Implement memory-mapped zip files in ijar for Windows.Gravatar Lukacs Berki2016-02-17
| | | | | | | Progress towards #276. -- MOS_MIGRATED_REVID=114829911
* Encapsulate file mapping in preparation for providing a Windows implementation.Gravatar Lukacs Berki2016-02-16
| | | | | | | Progress on #276. -- MOS_MIGRATED_REVID=114740700
* RELNOTES[INC]: Remove JAVAC "Make" variableGravatar Liam Miller-Cushon2016-02-01
| | | | | | | | | | | | | | The JAVAC "Make" variable is the javac packaged with the host JDK, which is not necessarily the same version used to compile java_library rules. Users should typically use java_library directly. If a manual javac invocation is required, BazelJavac uses the same javac version and flags as java_library. In the rare cases where the host JDK's compiler is actually desired, prefer `$(JAVABASE)/bin/javac` to `$(JAVAC)` for clarity. -- MOS_MIGRATED_REVID=113386241
* Support @ syntax for specifying the list of files to zipperGravatar Damien Martin-Guillerez2016-01-21
| | | | | | | | | | | | | | | When creating an archive with //third_party/ijar:zipper, all files to add should be specified as an argument. When adding a lot of files, this leads to reaching the maximum size of the command line. This change add a @filename argument that permit to specify a file containing the list of files to zip. -- Change-Id: I02843588896969ef2d6add26c1c67ff44a27f7de Reviewed-on: https://bazel-review.googlesource.com/#/c/2695/ MOS_MIGRATED_REVID=112678600
* Set test_class for java_test test target where it is neededGravatar Damien Martin-Guillerez2016-01-19
| | | | | | | | | This make those test target compatible with --nolegacy_bazel_java_test. -- Change-Id: I2316c9aa53327b417ecce5fd5dab95ec726da11d Reviewed-on: https://bazel-review.googlesource.com/#/c/2690 MOS_MIGRATED_REVID=112446514
* Fix ijar_test when errexit is onGravatar Damien Martin-Guillerez2015-12-16
| | | | | | | | $(...) is incorrect when doing a test to test the return value, (...) should be used instead. -- MOS_MIGRATED_REVID=110248027
* unittest.bash: Correctly handle failures due to "errexit" in tests. This ↵Gravatar Philipp Wollermann2015-12-15
| | | | | | | will get rid of all the "ghost flakes" where tests crashed with no apparant reason printed into our logs. Now a stack trace is printed and an easy to understand failure reason, too. -- MOS_MIGRATED_REVID=110142957
* Add zip64 support to ijarGravatar Liam Miller-Cushon2015-12-03
| | | | | | | This allows ijar to process jars with >65535 entries. -- MOS_MIGRATED_REVID=109321374
* Normalize ijar's header to 'The Bazel Authors'.Gravatar Damien Martin-Guillerez2015-11-19
| | | | | | | | As per discussion with Alan, just use the same copyright than for the rest of Bazel and adds Alan as an author. -- MOS_MIGRATED_REVID=108250408
* Set the ijar MAX_BUFFER_SIZE to 256 MBGravatar Damien Martin-Guillerez2015-11-16
| | | | | | | | | | Some users have reported that the Bazel server was growing to more than 128 MB. Fixes #609 -- MOS_MIGRATED_REVID=107920664
* Fix compile warningsGravatar Kristina Chodorow2015-10-20
| | | | | -- MOS_MIGRATED_REVID=105862956
* Recognize SourceDebugExtension attributes in ijarGravatar Liam Miller-Cushon2015-10-20
| | | | | | | | This doesn't change behaviour (they continue to get dropped from the interface jar), but it avoids some spurious "skipping unknown attribute" warnings. -- MOS_MIGRATED_REVID=105767979
* Fix bazel's ijar test afterGravatar Liam Miller-Cushon2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105439722
* Support Java 8 MethodParameters attribute in ijarGravatar Liam Miller-Cushon2015-10-14
| | | | | -- MOS_MIGRATED_REVID=105417011
* 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 the size of ijar_testGravatar Damien Martin-Guillerez2015-09-16
| | | | | | | It is timingout on our Darwin CI machine, see http://ci.bazel.io/job/Bazel/PLATFORM_NAME=darwin-x86_64/110/console -- MOS_MIGRATED_REVID=103130707