aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java_tools/singlejar
Commit message (Collapse)AuthorAge
* Bazel server, tools: ensure Writers are closedGravatar laszlocsomor2018-07-10
| | | | | | | | | | | | | | | | | | | | Follow-up to commit 09d20311d982606093ed881d779bb05a5ee70ed3. Use try-with-resources to ensure Writer objects are closed eagerly. Eagerly closing Writers avoids hanging on to file handles until the garbage collector finalizes the object, meaning Bazel on Windows (and other processes) can delete or mutate these files. Hopefully this avoids intermittent file deletion errors that sometimes occur on Windows. See https://github.com/bazelbuild/bazel/issues/5512 RELNOTES: none PiperOrigin-RevId: 203934471
* Bazel server, tools: ensure Readers are closedGravatar laszlocsomor2018-07-09
| | | | | | | | | | | | | | | | | | | | Follow-up to commit 59f17d6e0550bf63a0b6ef182e2d63474e058ede. Use try-with-resources to ensure Reader objects are closed eagerly. Eagerly closing Readers avoids hanging on to file handles until the garbage collector finalizes the object, meaning Bazel on Windows (and other processes) can delete or mutate these files. Hopefully this avoids intermittent file deletion errors that sometimes occur on Windows. See https://github.com/bazelbuild/bazel/issues/5512 RELNOTES: none PiperOrigin-RevId: 203771262
* Clean up code that directly imports nested classes like Builder, Entry, etc.Gravatar jcater2018-05-01
| | | | PiperOrigin-RevId: 195040539
* Rewrite visibility handling for all java_toolsGravatar ulfjack2018-02-16
| | | | PiperOrigin-RevId: 185959149
* Concatenate reference config files in singlejarGravatar Tony Liang2018-01-11
| | | | | | | | | | | Merge reference.conf files in single jar since [akka will break](https://doc.akka.io/docs/akka/current/general/configuration.html#when-using-jarjar-onejar-assembly-or-any-jar-bundler) if reference.conf files are overwritten. The feature is added to both java and cpp implementations of singlejar to concatenate reference.conf files to keep behaviors consistent. For the cpp implementation, using `OutputJar.ExtraCombiner` in singlejar_main.cc feels less intrusive than adding a new `Concatenator` in the output_jar code. Bazel-dev discussion on the issue is [here](https://groups.google.com/forum/#!topic/bazel-dev/C30dwAPL708). Closes #4413. PiperOrigin-RevId: 181622277
* Split "shell", "graph" into their own packages.Gravatar philwo2017-08-29
| | | | PiperOrigin-RevId: 166849610
* Auto-generate BUILD files for src/java_tools/singlejarGravatar ulfjack2017-07-31
| | | | | | | | | This and further changes may contain minor modifications to BUILD files that don't serve any apparent purpose. The reason for these changes is that we're switching from checked-in BUILD files to generated BUILD files, and there may be small differences between these files. PiperOrigin-RevId: 163525889
* Update BUILD filesGravatar Ulf Adams2017-06-13
| | | | | | | | | | | We're currently maintaining two sets of BUILD files; one at Google, and one in the Git repository. We'd like to not do that. This change makes some of the Bazel BUILD files more closely match their counterparts, in preparation for removing the internal ones. Closes #3094. PiperOrigin-RevId: 158820490
* Migrate all tests to Truth (except the ones in the examples).Gravatar lberki2017-05-31
| | | | | RELNOTES: None. PiperOrigin-RevId: 157576492
* Migrate Java tests to Truth.Gravatar lberki2017-05-30
| | | | | | RELNOTES: None. PiperOrigin-RevId: 157446717
* Create parent directories for resource entries in singlejarGravatar cushon2017-04-05
| | | | | | | This mirrors the change to the c++ implementation made in https://github.com/bazelbuild/bazel/commit/874852ec52f9e03242fb4eccb41c2ea3f3036ac3. PiperOrigin-RevId: 152173345
* Description redacted.Gravatar Kristina Chodorow2016-12-07
| | | | | | -- PiperOrigin-RevId: 141325412 MOS_MIGRATED_REVID=141325412
* Rollback of commit e6191f7209ebf3f67480bc7aa9db5ac58beb2156.Gravatar Damien Martin-Guillerez2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fix. Tested with `bazel build src:srcs //src/test/...` using a bootstrapped bazel. Fixes #1923. RELNOTES[INC]: Non test-only targets can no longer depends on test-only targets. *** Original change description *** Automated [] rollback of commit a9f20b0d6459d395444c45cf5e94a899f3443633. *** Reason for rollback *** Broke Bazel CI: ERROR: /home/ci/workspace/Bazel/JAVA_VERSION/1.8/PLATFORM_NAME/linux-x86_64/src/BUILD:284:1: in filegroup rule //src:srcs: non-test target '//src:srcs' depends on testonly target '//src/java_tools/junitrunner/java/com/google/testing/junit/junit4:srcs' and doesn't have testonly attribute set. ERROR: Analysis of target '//scripts/packages:packages' failed; build aborted. http://ci.bazel.io/view/Bazel%20b... *** -- MOS_MIGRATED_REVID=136589937
* Add worker support to []SingleJar.Gravatar Googler2016-08-24
| | | | | | | | RELNOTES: Add worker support to []SingleJar. -- MOS_MIGRATED_REVID=131133478
* Add worker support to single jar.Gravatar Googler2016-08-23
| | | | | | | | RELNOTES: Add worker support to single jar. -- MOS_MIGRATED_REVID=131043398
* 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
* Turn //tools/build_rules into a package.Gravatar Julio Merino2016-02-17
| | | | | | | | | This is in preparation for another change that will add a new helper script to the tools/build_rules directory, and such script requires a BUILD rule of its own. -- MOS_MIGRATED_REVID=114898083
* Java readability review.Gravatar Andrew Pellegrini2016-02-03
| | | | | -- MOS_MIGRATED_REVID=113651164
* Use labels in load statementsGravatar Damien Martin-Guillerez2016-02-02
| | | | | | | | | | | | This will fix some issue with loading skylark rules from @bazel_tools. Tested with ./compile.sh all and also a project that use pkg_tar from @bazel_tools (which is broken at HEAD). -- Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0 Reviewed-on: https://bazel-review.googlesource.com/2800 MOS_MIGRATED_REVID=113508661
* Change constructor of ConcatenateStrategy to public for better extensibilityGravatar Googler2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113105947
* 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
* Adds ApkBuilder from the Android SDK to bazel's third_party with someGravatar Alex Humesky2016-01-11
| | | | | | | | | modifications to remove deprecation warnings, to create deterministic apks (removes timestamps), and to make calling ApkBuilder more convenient. RELNOTES: Timestamps within Android apks are removed to make apks deterministic. -- MOS_MIGRATED_REVID=111890659
* Add a separate BUILD file for singlejar zip library.Gravatar Han-Wen Nienhuys2015-11-25
| | | | | -- MOS_MIGRATED_REVID=108622328
* Split off more BUILD files.Gravatar Han-Wen Nienhuys2015-10-30
| | | | | -- MOS_MIGRATED_REVID=106597904
* Split off more BUILD files.Gravatar Han-Wen Nienhuys2015-10-28
| | | | | -- MOS_MIGRATED_REVID=106493557
* 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 size of test timeout flaky on ci.bazel.ioGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | See http://ci.bazel.io/job/Bazel/PLATFORM_NAME=darwin-x86_64/104/console process_wrapper_test is actually failing inside the timeout test so it is probably don't have enough time too. -- MOS_MIGRATED_REVID=102841728
* Make SingleJar remove the extended timestamp (0x5455) and InfoZip New Unix ↵Gravatar Lukacs Berki2015-09-01
| | | | | | | | | | | (0x7875) extra fields. This is important so that the output .zip files are actually hermetic. In particular, this caused problems with running the tests for singlejar on OS X Yosemite. Also add some defensive copying as a drive-by cleanup. -- MOS_MIGRATED_REVID=102026257
* Remove debugging output.Gravatar Andrew Pellegrini2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100928168
* Extend size of //src/java_tools/singlejar:zipTestsGravatar Damien Martin-Guillerez2015-08-18
| | | | | | | This test is taking more than 300s on the continous integration machine on GCE. -- MOS_MIGRATED_REVID=100909674
* Set-up travis OSX to compile using JDK 7Gravatar Damien Martin-Guillerez2015-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is introducing a few changes to use the Java compiler from errorprone: - add the --java_langtools flag to the shell tests so we do the tests with the same java compiler tooling than Bazel, and - added the langtools the bootclasspath of the JavaBuilder tests. - tagged some tests and deactivated them on travis OSX because they either requires Java 8 or a lot of disk space. To do the same change on a local install, one must: - change the source and target versions to 7 in the tools/jdk:toolchain target, - use the .travis/jdk7.WORKSPACE file instead of the default Bazel workspace (it contains a maven_jar refering to the errorprone's java compiler tools), and - set the JAVA_VERSION environent variable to "1.7". The .travis/build.sh script does just that when under OS X. -- Change-Id: Idb466cf47cf7df35a34fb0dd8d186628aae0cba7 Reviewed-on: https://bazel-review.googlesource.com/#/c/1520/ MOS_MIGRATED_REVID=96011123
* Fix permissions for zip filesGravatar Kristina Chodorow2015-06-12
| | | | | | | | | | | | | | | Now [new_]http_archive can be used for executables as well as "default permission" (644) files. This also gets rid of the Apache Commons Compress dependency entirely, which is nice. Fixing this also exposed some bugs in how archives were being decompressed (the same archive was being decompressed multiple times), which I also fixed by making the decompressors SkyFunctions. Fixes #238. -- MOS_MIGRATED_REVID=95747810
* Removed deprecated API features from ZipCombiner and improves slow read ↵Gravatar Andrew Pellegrini2015-06-10
| | | | | | | | | testing and support. RELNOTES: Elements of ZipCombiner's API previously marked deprecated are removed. -- MOS_MIGRATED_REVID=95543357
* Bootstrapping tools using BazelGravatar Damien Martin-Guillerez2015-06-05
| | | | | | | | | | | | Added target to use java skylark rules to bootstrap JavaBuilder and SingleJar. Uses thoses target to bootstrap JavaBuilder and SingleJar and compiles all tools using Bazel. -- Change-Id: I5142917c8b31e04015fbab89382df36b4892d8c6 Reviewed-on: https://bazel-review.googlesource.com/#/c/1451/ MOS_MIGRATED_REVID=95281092
* Rewrite of ZipCombiner to improve performance and maintainabilityGravatar Googler2015-05-08
| | | | | | | | | | | Poorly performing features of the API have been deprecated in favor of better alternatives: - use addZip(File) over addZip(InputStream) or addZip(String, InputStream) - use addFile(ZipFileEntry) over addFile(String, Date, InputStream, DirectoryEntryInfo) New zip package for high performance ZIP file manipulation. Can directly work with compressed ZIP entry data and has support for Zip64 (forces Zip32 by default). -- MOS_MIGRATED_REVID=93128639
* Enable external contribution on SingleJarGravatar Damien Martin-Guillerez2015-04-09
| | | | | -- MOS_MIGRATED_REVID=90699667
* Automated [] rollback of [].Gravatar Googler2015-04-06
| | | | | | | | | | | | | | | *** Reason for rollback *** New ZipCombiner creates malformed output ZIP files when input ZIP files contain more than 65535 entries, the maximum amount for non-64-bit ZIP files. *** Original change description *** Rewrite of ZipCombiner to improve performance and maintainability. Added devtools/build/zip to allow reading and writing of ZIP files without requiring decompressing file data to manipulate them. ZipCombiner API has some changes. ZipCombiner#addZip takes a File instead of InputStream. ZipCombiner#addFile takes a ZipFileEntry instead of DirectoryEntryInfo -- MOS_MIGRATED_REVID=90279976
* Add test dependencyGravatar Kristina Chodorow2015-04-03
| | | | | | | This was making Bazel's bootstrap_test fail. -- MOS_MIGRATED_REVID=90270050
* Adds ZipCombiner#addZip(InputStream).Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90172709
* Description redacted.Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90162183
* Open-source Bazel integration testsGravatar Damien Martin-Guillerez2015-03-25
| | | | | | | | | It is a first batch of integration tests for Bazel. They tests some basic behaviors and nominal cases of Bazel rules (especially they tests the behavior of the examples provided in //examples). -- MOS_MIGRATED_REVID=89440074
* Fix SingleJar's tests.Gravatar Damien Martin-Guillerez2015-02-09
| | | | | -- MOS_MIGRATED_REVID=85882741
* Update from Google.Gravatar Han-Wen Nienhuys2015-02-25
-- MOE_MIGRATED_REVID=85702957