Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 283 for toKill (0.1 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/classpath/FileUtils.java

            }
        }
    
        /**
         * Returns the result of {@link Path#toFile()} if that will not throw an exception, null otherwise.
         */
        @Nullable
        private static File toFileIfAvailable(Path path) {
            if (path.getFileSystem() == FileSystems.getDefault()) {
                return path.toFile();
            }
            return null;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 01:37:44 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            if (value instanceof ConfigurableFileTree) {
                return ((ConfigurableFileTree) value).getDir();
            }
            return toFile(context, value);
        }
    
        private static File toFile(PropertyValidationContext context, Object value) {
            return context.getFileResolver().resolve(value);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy

            given:
            def downloader = new SecureFileDownloader(transportFactory)
            def destinationFile = new File(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "target")
    
            when:
            URI uri = URI.create("https://foo")
            downloader.download(uri, destinationFile, downloader.getResourceFor(uri, Collections.emptyList()))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/main/java/org/gradle/api/tasks/scala/internal/GenerateScaladoc.java

                throw new RuntimeException("Could not generate scaladoc", e);
            } finally {
                // Try to clean-up generated options file
                if (optionsFile != null) {
                    optionsFile.toFile().delete();
                }
            }
        }
    
        private List<String> generateArgList(ScaladocParameters parameters, Path optionsFile) {
            List<String> args = new ArrayList<>();
            args.add("-d");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/validate-external-gradle-plugin.gradle.kts

        (project as ProjectInternal).services.get<ArchiveOperations>(ArchiveOperations::class.java)
    
    fun findPluginJar(pluginClass: Class<*>) =
        toFile(pluginClass.protectionDomain.codeSource.location)
    
    fun isExternal(pluginClass: Class<*>) =
        !pluginClass.name.startsWith("org.gradle")
    
    fun toFile(url: URL): File? {
        return try {
            File(url.toURI())
        } catch (e: URISyntaxException) {
            null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/VersionCatalogGenerator.java

            Path gradleDirectory = target.getAsFile().toPath().resolve("gradle");
            GFileUtils.mkdirs(gradleDirectory.toFile());
            try (PrintWriter writer = new PrintWriter(new FileWriter(gradleDirectory.resolve("libs.versions.toml").toFile()))) {
                if (withComments) {
                    writer.println("# This file was generated by the Gradle 'init' task.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/segv_linux.go

    }
    
    func TgkillSegv() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for i := 0; ; i++ {
    			// Sum defined in segv.go.
    			Sum += i
    		}
    	}()
    
    	<-c
    
    	syscall.Tgkill(syscall.Getpid(), syscall.Gettid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	select {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 517 bytes
    - Viewed (0)
  8. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

            NativeServices.initializeOnDaemon(tempRootDir.toFile(), NativeServicesMode.fromSystemProperties());
            this.fileSystem = FileSystems.getDefault();
        }
    
        @TearDown(Level.Trial)
        public void tearDownTrial() throws IOException {
            FileUtils.forceDelete(tempRootDir.toFile());
        }
    
        @Setup(Level.Iteration)
        public void setupIteration() throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/locking/LockFileReaderWriter.java

        @Nullable
        public List<String> readLockFile(String lockId) {
            checkValidRoot();
    
            Path lockFile = lockFilesRoot.resolve(decorate(lockId) + FILE_SUFFIX);
            listener.fileObserved(lockFile.toFile());
            if (Files.exists(lockFile)) {
                List<String> result;
                try {
                    result = Files.readAllLines(lockFile, CHARSET);
                } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/segv_linux.go

    func init() {
    	register("TgkillSegvInCgo", TgkillSegvInCgo)
    }
    
    func TgkillSegvInCgo() {
    	c := make(chan bool)
    	go func() {
    		close(c)
    		for {
    			C.nop()
    		}
    	}()
    
    	<-c
    
    	syscall.Tgkill(syscall.Getpid(), syscall.Gettid(), syscall.SIGSEGV)
    
    	// Wait for the OS to deliver the signal.
    	C.pause()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 15:24:08 UTC 2023
    - 546 bytes
    - Viewed (0)
Back to top