antbuilder

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Apply `Anonymous type can be replaced with lambda` inspection the whole project

    • -30
    • +20
    ./DefaultIsolatedAntBuilder.java
  1. … 666 more files in changeset.
Apply `Explicit type can be replaced with <>` inspection the whole project

  1. … 909 more files in changeset.
Organize imports

  1. … 339 more files in changeset.
Replace anonymous classes with lambdas

    • -30
    • +20
    ./DefaultIsolatedAntBuilder.java
  1. … 711 more files in changeset.
Replace anonymous classes with lambdas

    • -28
    • +20
    ./DefaultIsolatedAntBuilder.java
  1. … 695 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 890 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 897 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Remove synthetic accessors for internal private symbol references

  1. … 902 more files in changeset.
Add missing @Override to public api types

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 338 more files in changeset.
Use SLF4J Logger in more places

Use only an SLF4J Logger instead of the Gradle Logger in places where it is enough. This is going to make this code more easy to reuse as it doesn't depend on `:logging` anymore.

  1. … 28 more files in changeset.
Moved a bunch of dynamic object related types baseServicesGroovy to live in modelCore.

  1. … 65 more files in changeset.
Replace deprectated `IOUtils.closeQuietly` uses with `IoActions.closeQuietly`

  1. … 20 more files in changeset.
Named classloaders (#6834)

This should help give some more context while debugging classloading issues.

  1. … 40 more files in changeset.
Revert unnecessary changes

Since we reverted to using groovy-all.jar, there is no need for these changes anymore.

  1. … 11 more files in changeset.
Fix DefaultIsolatedAntBuilder

  1. … 1 more file in changeset.
Fix handling of InterruptedExceptions

These exceptions were handled incorrectly throughout the whole

codebase, usually rethrown without restoring the interrupt status

or discarded entirely. This means that the system would not stop

executing even though the user wanted it to. In some cases this

also left the system in an inconsistent state, leading to deadlocks.

The most notable changes include:

- UncheckedException.rethrow automatically restores the interrupt status

- AsyncDispatch is guaranteed to deliver its messages, even when interrupted

- ExecHandle cancels the started process if it is interrupted while waiting

- ExecHandle disconnects from the process' output before killing it

- The worker API cancels the started work items if it is interrupted

- ManagedExecutors shut down immediately if they are interrupted while stopping

- We no longer log exceptions caused by interruption to the console

- Interrupting our caches no longer leaks file locks

  1. … 38 more files in changeset.
Remove deprecated Class.newInstance() (#6496)

`Class.newInstance()` was deprecated in Java 9.

  1. … 34 more files in changeset.
Move file collection APIs out of core (#6525)

This change breaks out code that directly relates to handling `FileCollection`s and their build dependencies (called `TaskDependency` at this time) into a separate subproject (`:files`). This is so that other modules can build on just this module instead of having to depend on the oversized `:core`.

As part of the change `Provider`s have been moved to `:base-services`. In a possible followup step `:base-services` could be split into a module that captures the very basic concepts of Gradle's data model: it's all about `DomainObjectCollection`s that can be configured via `Action`s, transformed via `Transformer`s, lazyness can be provided via `Provider`s and rich mutable data types can be created via `Property` objects.

Another addition to `:base-serivces` is the directed graph traversal algorithms used in many parts of Gradle.

  1. … 443 more files in changeset.
Use umodifiable list in DefaultClassPath

This makes accidental mutation impossible and reduces some

of the repeated wrapping.

  1. … 37 more files in changeset.
Extract :core-api project (#2719)

  1. … 785 more files in changeset.
Favour `ClassPath.EMPTY` over `new DefaultClassPath()`

As it is more intent revealing, shorter and avoids an allocation.

  1. … 11 more files in changeset.
Do not use Guava's `Throwables.propagate()`

It is going to be deprecated in Guava 20. Explanation: https://github.com/google/guava/wiki/ThrowablesExplained#uses-for-throwablespropagate

  1. … 3 more files in changeset.
Close IsolatedAntBuilder related classloaders at shutdown

+review REVIEW-6231

Revert classloading changes in IsolatedAntBuilder implementation

This reverts commit 830b1c48 and parts of commit 09ef4754 .

    • -13
    • +23
    ./DefaultIsolatedAntBuilder.java
Revert "Close the project classloader at end of build."

This reverts commit af366ca162d0a60857d02d099c83cd0dbcf14021.

  1. … 17 more files in changeset.
Close the project classloader at end of build.

Also restore all six cases of Lari's test as the jarfile lock

is released at the end of build rather than beginning of the next now.

  1. … 17 more files in changeset.
Remove ClassPathRegistry member, it's not necessary to carry these references for the lifetime of the builder.