Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for GetCommandLine (0.56 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

         * The list also contains an absolute path to the script (which may contain spaces).
         *
         * @return the list of command line elements to start this script.
         */
        abstract List<String> getCommandLine();
    
        /**
         * Returns a command line elements that can be used to start this script.
         * The resulting list can be used as an argument for the {@link ProcessBuilder} or Groovy's {@code execute} method.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/DelegatingBaseExecSpec.java

            return this;
        }
    
        @Override
        default OutputStream getErrorOutput() {
            return getDelegate().getErrorOutput();
        }
    
        @Override
        default List<String> getCommandLine() {
            return getDelegate().getCommandLine();
        }
    
        @Override
        default String getExecutable() {
            return getDelegate().getExecutable();
        }
    
        @Override
        default void setExecutable(String executable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/ProcessOutputValueSource.java

             * executable name. This is a mandatory property.
             *
             * @return the command line property
             */
            ListProperty<String> getCommandLine();
    
            // The ExecSpec's environment can be configured in two ways. First is to append some
            // variables to the current environment. We don't want to freeze the whole environment as an
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpec.java

            return DelegatingBaseExecSpec.super.copyTo(options);
        }
    
        public void copyToParameters(ProcessOutputValueSource.Parameters parameters) {
            parameters.getCommandLine().set(getCommandLine());
            parameters.getFullEnvironment().set(fullEnvironment);
            parameters.getAdditionalEnvironmentVariables().set(additionalEnvVars.isEmpty() ? null : additionalEnvVars);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/internal/JavadocGenerator.java

            }
    
            try {
                execAction.execute();
            } catch (ExecException e) {
                LOG.info("Problems generating Javadoc."
                        + "\n  Command line issued: " + execAction.getCommandLine()
                        + "\n  Generated Javadoc options file has following contents:\n------\n{}------", GFileUtils.readFileQuietly(spec.getOptionsFile()));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/ExecSpecFactory.java

    import org.gradle.process.JavaExecSpec;
    
    /**
     * The factory to build appropriate ExecSpec and JavaExecSpec instances. The returned
     * instances, especially JavaExecSpec, must conform to the {@link BaseExecSpec#getCommandLine()} contract.
     *
     * These instances will not be exposed to the user code directly, so there is no need of decoration.
     */
    @ServiceScope(Scope.Build.class)
    public interface ExecSpecFactory {
        ExecSpec newExecSpec();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProcessOutputValueSourceTest.groovy

                    withDefaultEnvironment(it)
                }
            }.get()
    
            then:
            1 * execOperations.exec(_) >> { Action<? super ExecSpec> action -> action.execute(spec) }
            spec.getCommandLine() == ["echo", "hello"]
            spec.environment == System.getenv()
        }
    
        def "full environment is propagated to execOperations"() {
            given:
            def spec = specFactory.newExecAction()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/process-services/src/main/java/org/gradle/process/BaseExecSpec.java

        /**
         * Returns the full command line, including the executable plus its arguments.
         *
         * @return The full command line, including the executable plus its arguments
         */
        List<String> getCommandLine();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertThat(request.getUserProperties().getProperty("valTopDirectory"), is("myTopDirectory/pom.xml"));
            assertThat(request.getCommandLine().getOptionValue('f'), is("myRootDirectory/my-child"));
            assertThat(request.getCommandLine().getArgs(), equalTo(new String[] {"prefix:3.0.0:bar", "validate"}));
        }
    
        @ParameterizedTest
        @MethodSource("activateBatchModeArguments")
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  10. src/os/exec_windows.go

    	if e != nil {
    		return nil, NewSyscallError("OpenProcess", e)
    	}
    	return newHandleProcess(pid, uintptr(h)), nil
    }
    
    func init() {
    	cmd := windows.UTF16PtrToString(syscall.GetCommandLine())
    	if len(cmd) == 0 {
    		arg0, _ := Executable()
    		Args = []string{arg0}
    	} else {
    		Args = commandLineToArgv(cmd)
    	}
    }
    
    // appendBSBytes appends n '\\' bytes to b and returns the resulting slice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top