DefaultScriptTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove `StringScriptSource`, to be replaced with the existing `TextResourceScriptSource`.

  1. … 10 more files in changeset.
Remove `StringScriptSource`, to be replaced with the existing `TextResourceScriptSource`.

  1. … 10 more files in changeset.
Remove `StringScriptSource`, to be replaced with the existing `TextResourceScriptSource`.

  1. … 10 more files in changeset.
Remove `StringScriptSource`, to be replaced with the existing `TextResourceScriptSource`.

  1. … 10 more files in changeset.
Remove `StringScriptSource`, to be replaced with the existing `TextResourceScriptSource`.

  1. … 10 more files in changeset.
Force AbstractTestDirectoryProvider to use Class (#12431)

Closes https://github.com/gradle/gradle-private/issues/2988

This PR adds `className` to `AbstractTestDirectoryProvider` so there'll be no more `unknown-test-class`.

  1. … 407 more files in changeset.
Fix tests

  1. … 372 more files in changeset.
Got rid of the last of the `@RunWith(JMock)`

  1. … 15 more files in changeset.
Update JMock to 2.8.4

  1. … 2 more files in changeset.
Add support for URI-backed text resources

This can be used to point tasks like Checkstyle

to a remote, shared configuration file without

having to package it into an archive and using

dependency resolution.

The implementation reuses the same caching logic

we have for remote build scripts.

  1. … 20 more files in changeset.
Changed the process forking infrastructure so that it attempts to reuse threads rather than creating 3 or more threads per process that is forked.

There is now a global `ExecFactory` service that manages the infrastructure, including a pool of threads. It provides various factory methods to create instances of `ExecHandleBuilder`, `ExecAction`, `JavaExecHandleBuilder` and `JavaExecAction` backed by this infrastructure.

Replaced all direct instantiation of these types with usages of these factory methods.

  1. … 44 more files in changeset.
Use our own hashing architecture, take 2 (#2817)

This replaces Guava's hashing. We need this for two reasons:

- it allows the addition of custom hash functions, like BLAKE2b which would not be possible with Guava's closed design

- it fixes a few performance issues that Guava only fixes in version 20 (which we can't upgrade to right now, because we still need to support Java 5 in places)

  1. … 159 more files in changeset.
Fix merge issues

  1. … 22 more files in changeset.
Make zipTrees faster

zipTrees were unpacked every time they were visited,

which meant 2-4 times for every single build.

This changes the logic to snapshot the zip and only unpack

again if it has changed.

  1. … 12 more files in changeset.
Make ProviderFactory a global service

  1. … 6 more files in changeset.
Remove deprecated methods on TestUtil (#672)

In order to use project builder correctly without having

leaking files on windows it is necessary to initialize

the test fixture for NativeServices and clean up

the test directory after building.

AbstractProjectBuilderSpec provides a nice base class

for Groovy tests.

I removed the deprecated methods since using them leads

to files lying around. Migrating all the usages to the "new"

way ensures it is used correctly.

  1. … 97 more files in changeset.
Changed unit tests to use Project or ProjectInternal instead of the implementation classes.

  1. … 32 more files in changeset.
Moved internal logging classes from 'core' to 'logging' project.

  1. … 418 more files in changeset.
Use a factory to create `DirectoryFileTree` instances, to avoid exposing the dependencies of `DirectoryFileTree` to its consumers.

This is only partially done, there are quite a few other places where this is not used.

  1. … 23 more files in changeset.
Changed object decoration so that properties are not defined on assignment. This behaviour was deprecated.

  1. … 29 more files in changeset.
Some changes to remove direct usages of FileSystems.default.

- Introduced a service that provides various entry points to the File infrastructure, in particular via FileResolver.

- Use this in DefaultScript to create resolvers for the script.

- Inject this into a few other places.

  1. … 17 more files in changeset.
renamed HelperUtil to TestUtil (REVIEW-1626)

  1. … 145 more files in changeset.
Remove @author tags and names from source code.

- Added checkstyle check for @author

- Added not to CONTRIBUTING.md saying that we don't use names in the codebase

  1. … 1213 more files in changeset.
Fix case of DuplicationStrategy enum, relying on DSL type coercion to allow user to specify value as lower case string.

This implies exposing enhanced objects as part of the CopySpec DSL. At this point, this is not comprehensive. That is coming in a subsequent commits.

  1. … 32 more files in changeset.
Change the implementation of dynamic properties to be backed by a DynamicExtension, replacing MapBackedDynamicObject.

At this point there is no functional change. You can still add/write/read dynamic properties to the target object as before.

Some internal API has changed to remove exposing the dynamic storage for decorated objects as a Map which it no longer is.

  1. … 18 more files in changeset.
Moved Factory and ServiceRegistry back to where they were, and leave behind some deprecated subtypes for the old compiled tasks to find.

  1. … 142 more files in changeset.
- Moved ServiceFactory and Factory back to their old packages (for now) to avoid breaking tasks implemented in Groovy and compiled against older Gradle versions. - Added some int test coverage for this case.

  1. … 145 more files in changeset.
Shuffled some classes around to some new packages.

  1. … 243 more files in changeset.
Renamed subprojects/gradle-(.+) to subprojects/$1

    • -0
    • +84
    ./DefaultScriptTest.groovy
  1. … 6178 more files in changeset.