Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 122 for jarFiles (0.12 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/process/internal/worker/child/WorkerProcessClassPathProviderTest.groovy

            _ * cache.getBaseDir() >> cacheDir
            1 * cache.close()
            0 * cache._
            classpath.asFiles == [jarFile]
            jarFile.file
        }
    
        def reusesTheCachedClasspath() {
            def cacheDir = tmpDir.testDirectory
            def jarFile = cacheDir.file('gradle-worker.jar')
            CacheBuilder cacheBuilder = Mock()
            PersistentCache cache = Mock()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/JarTestFixture.groovy

                assert firstEntryName.equalsIgnoreCase(JarFile.MANIFEST_NAME)
            } finally {
                zipFile.close()
            }
        }
    
        @Override
        def hasDescendants(String... relativePaths) {
            String[] allDescendants = relativePaths + JarFile.MANIFEST_NAME
            return super.hasDescendants(allDescendants)
        }
    
        JavaVersion getJavaVersion() {
            JarFile jarFile = new JarFile(file)
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 14:13:17 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java

                IoActions.closeQuietly(jarFile);
            }
    
            private JarFile getJarFileLocked() throws IOException {
                ensureOpened();
                if (jarFile == null) {
                    jarFile = JarCompat.open(transformedJarPath);
                    if (jarFile.isMultiRelease() && !isTransformed(jarFile.getJarFile())) {
                        throw new GradleException(String.format(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        File jarFile = File.createTempFile("with_circular_class_path", ".jar");
        try {
          writeSelfReferencingJarFile(jarFile, "test.txt");
          assertThat(
                  new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader())
                      .scanResources())
              .hasSize(1);
        } finally {
          jarFile.delete();
        }
      }
    
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 26 14:02:27 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyChangingModuleRemoteResolveIntegrationTest.groovy

            when:
            module.ivy.expectGet()
            module.jar.expectGet()
    
            run 'retrieve'
    
            then:
            def jarFile = file('build/projectA-1.1.jar')
            jarFile.assertIsCopyOf(module.jarFile)
            def snapshot = jarFile.snapshot()
    
            when:
            module.publishWithChangedContent()
    
            server.resetExpectations()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ivy/IvyFileRepoResolveIntegrationTest.groovy

            file('libs/projectA-1.1.jar').assertIsCopyOf(projectA1.jarFile)
            file('libs/projectB-1.0.jar').assertIsCopyOf(projectB1.jarFile)
            def jarC = file('libs/projectC-1.0.jar')
            jarC.assertIsCopyOf(projectC1.jarFile)
            def jarCsnapshot = jarC.snapshot()
    
            when:
            def projectA2 = repo.module("group", "projectA", "1.2")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultGeneratedGradleJarCache.java

            final File jarFile = jarFile(identifier);
            cache.useCache(new Runnable() {
                @Override
                public void run() {
                    if (!jarFile.exists()) {
                        creator.execute(jarFile);
                    }
                }
            });
            return jarFile;
        }
    
        @Override
        public void close() {
            cache.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-relocate/kotlin/build.gradle.kts

            JarRelocator(primaryInput.get().asFile, output, relocations).run()
        }
    // end::artifact-transform-relocate[]
    
        private fun File.readPackages(): Set<String> {
            return JarFile(this).use { jarFile ->
                return jarFile.stream()
                    .filter { !it.isDirectory }
                    .filter { it.name.endsWith(".class") }
                    .map { entry ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/internal/classpath/DefaultClasspathBuilder.java

            }
        }
    
        private void buildJar(File jarFile, Action action) throws IOException {
            File parentDir = jarFile.getParentFile();
            File tmpFile = temporaryFileProvider.createTemporaryFile(jarFile.getName(), ".tmp");
            try {
                Files.createDirectories(parentDir.toPath());
                inPlaceBuilder.jar(tmpFile, action);
                Files.move(tmpFile.toPath(), jarFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntries.kt

    import java.io.IOException
    import java.util.Properties
    import java.util.jar.JarEntry
    import java.util.jar.JarFile
    
    
    data class PluginEntry(val pluginId: String, val implementationClass: String)
    
    
    fun pluginEntriesFrom(jar: File): List<PluginEntry> = try {
        JarFile(jar, false).use { jarFile ->
            jarFile.entries().asSequence().filter {
                isGradlePluginPropertiesFile(it)
            }.map { pluginEntry ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:27 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top