aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar
Commit message (Collapse)AuthorAge
* 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
* Fixes ijar tests on OSXGravatar Damien Martin-Guillerez2015-09-15
| | | | | | | | | Two things were broken: - Paths to zip/unzip when in the PATH by latest change - md5sum was broken by FreeBSD change -- MOS_MIGRATED_REVID=103077733
* Remove a line accidentally left in from debugging.Gravatar Lukacs Berki2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103076612
* Make ijar appropriately prune InnerClasses, at the cost of a lot of unholy ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | hacks. -- MOS_MIGRATED_REVID=103068956
* Fix ijar compressionGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | | Ijar was compressing with the zlib wrapper, which is incompatible with the ZIP format. Unfortunately, the zlib wrapper is totally undocumented. Fixes #436. -- MOS_MIGRATED_REVID=102846162
* Add CRC-32 computation to third_party/ijar:zipperGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | This can be a problem for some usage of the produced ZIP file to not compute the CRC-32 correctly. We still skip it for ijar for speed. -- MOS_MIGRATED_REVID=102844157
* Add more source filegroups for the installerGravatar Damien Martin-Guillerez2015-09-03
| | | | | | | | | | | | | | | | | | | | | | With those filegroup the tutorial is able to compile iOS and App Engine stuff. Here how to test: git clone https://github.com/bazelbuild/bazel git clone https://github.com/bazelbuild/examples export BAZEL_WORKSPACE=$PWD/bazel export EXAMPLES_WORKSPACE=$PWD/examples cd $BAZEL_WORKSPACE ./compile.sh ./output/bazel --bazelrc=/dev/null --nomaster_bazelrc \ build //scripts/packages:install.sh export BAZEL_INSTALLER=$(readlink bazel-bin)/scripts/packages/install.sh cd $EXAMPLES_WORKSPACE ./tutorial/ci/build.sh -- Change-Id: I553ab8821f5a5cdcc7a8b4614e23ca4c79581e4f Reviewed-on: https://bazel-review.googlesource.com/1878 MOS_MIGRATED_REVID=102239866
* Fix a signed vs unsigned comparison warning in the ijar zipper.Gravatar Erik Kuefler2015-09-03
| | | | | | | | | | | | | This is more than just a cosmetic issue. Since groovy and appengine rules depend directly on this target, the zipper gets built in the user's workspace whenever a groovy/appengine target is built. If the workspace is set to upgrade warnings to errors, this can cause builds to fail. -- Change-Id: I6c8b347df14098945c788411fc3e38f9c128596f Reviewed-on: https://bazel-review.googlesource.com/1951 MOS_MIGRATED_REVID=102223767
* Add support for compression in //third_party/ijar:zipperGravatar Damien Martin-Guillerez2015-08-31
| | | | | | | | | | | Add the 'C' flag to //third_party/ijar:zipper to try to compress files using the DEFLATE algorithm. To avoid regression, creation of uncompressed ZIP files is still the default. -- Change-Id: I8ad7182d8f6f152abd56ae472a406cbb8d39fb64 Reviewed-on: https://bazel-review.googlesource.com/#/c/1821/ MOS_MIGRATED_REVID=101925953
* Port to FreeBSD.Gravatar Doug Rabson2015-08-26
| | | | | | | -- Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840 MOS_MIGRATED_REVID=101462155
* Correctly process "ScalaInlineInfo" attribute. This is new in Scala 2.11.7 ↵Gravatar Googler2015-08-24
| | | | | | | (and 2.12). -- MOS_MIGRATED_REVID=101358929
* Fix some C++ compiler warnings to comply with -Wall.Gravatar Ulf Adams2015-07-27
| | | | | | | | | Some progress towards #311. -- Change-Id: I9276519d4a97d358b7c4f4e34a861522d75dd495 Reviewed-on: https://bazel-review.googlesource.com/#/c/1710 MOS_MIGRATED_REVID=99019961
* Fix zipper for empty filesGravatar Kristina Chodorow2015-07-02
| | | | | | | It was erroring out because it could not mmap an empty file. -- MOS_MIGRATED_REVID=97338974