Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for maybeSetProcessDir (0.31 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/EstablishBuildEnvironment.java

                    + System.getProperty("line.separator") + "  "
                    + "relies on environment variables, you may experience unexpected behavior.");
            }
            processEnvironment.maybeSetProcessDir(build.getParameters().getCurrentDir());
    
            // Capture and restore this in case the build code calls Locale.setDefault()
            Locale locale = Locale.getDefault();
    
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/processenvironment/AbstractProcessEnvironment.java

            System.setProperty("user.dir", processDir.getAbsolutePath());
        }
    
        protected abstract void setNativeProcessDir(File processDir);
    
        @Override
        public boolean maybeSetProcessDir(File processDir) {
            setProcessDir(processDir);
            return true;
        }
    
        @Override
        public Long maybeGetPid() {
            return getPid();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jna/UnsupportedEnvironment.java

            throw notSupported();
        }
    
        @Override
        public void setProcessDir(File processDir) throws NativeIntegrationException {
            throw notSupported();
        }
    
        @Override
        public boolean maybeSetProcessDir(File processDir) {
            return false;
        }
    
        @Override
        public Long getPid() throws NativeIntegrationException {
            if (pid != null) {
                return pid;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/ProcessEnvironment.java

        /**
         * Sets the process working directory, if possible
         *
         * @param processDir The directory.
         * @return true if the directory can be set, false if not possible.
         */
        boolean maybeSetProcessDir(File processDir);
    
        /**
         * Returns the OS level PID for the current process.
         *
         * @throws NativeIntegrationException If the pid is not available.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerPluginClasspathInjectionIntegrationTest.groovy

            def orig = new File("").getAbsoluteFile()
            def result = null
            try {
                if (!processEnvironment.maybeSetProcessDir(file("changed"))) {
                    return
                }
                result = runner.build()
            } finally {
                processEnvironment.maybeSetProcessDir(orig)
            }
    
            then:
            result.task(":helloWorld1").outcome == SUCCESS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 03:45:31 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

            } finally {
                // Restore the environment
                System.setProperties(originalSysProperties);
                processEnvironment.maybeSetProcessDir(originalUserDir);
                for (String envVar : changedEnvVars) {
                    String oldValue = originalEnv.get(envVar);
                    if (oldValue != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top