Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for ExecAction (0.18 sec)

  1. platforms/jvm/language-java/src/main/java/org/gradle/external/javadoc/internal/JavadocExecHandleBuilder.java

            return this;
        }
    
        public ExecAction getExecHandle() {
            try {
                options.write(optionsFile);
            } catch (IOException e) {
                throw new GradleException("Failed to store javadoc options.", e);
            }
    
            ExecAction execAction = execActionFactory.newExecAction();
            execAction.workingDir(execDirectory);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/xcode/AbstractLocator.java

                    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                    ExecAction execAction = execActionFactory.newExecAction();
                    execAction.executable("xcrun");
                    execAction.workingDir(System.getProperty("user.dir"));
                    execAction.args(getXcrunFlags());
    
                    String developerDir = System.getenv("DEVELOPER_DIR");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/internal/JavadocGenerator.java

            ExecAction execAction = javadocExecHandleBuilder.getExecHandle();
            if (spec.isIgnoreFailures()) {
                execAction.setIgnoreExitValue(true);
            }
    
            try {
                execAction.execute();
            } catch (ExecException e) {
                LOG.info("Problems generating Javadoc."
                        + "\n  Command line issued: " + execAction.getCommandLine()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/DefaultCommandLineToolInvocationWorkerTest.groovy

    import org.gradle.process.internal.ExecAction
    import org.gradle.process.internal.ExecActionFactory
    import org.gradle.process.internal.ExecException
    import spock.lang.Specification
    
    class DefaultCommandLineToolInvocationWorkerTest extends Specification {
        def "throws exception when exec fails"() {
            given:
            def execAction = Mock(ExecAction)
            def execActionFactory = Stub(ExecActionFactory) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/metadata/CompilerMetaDataProviderFactoryTest.groovy

    import org.gradle.process.ExecResult
    import org.gradle.process.internal.ExecAction
    import org.gradle.process.internal.ExecActionFactory
    import spock.lang.Specification
    
    class CompilerMetaDataProviderFactoryTest extends Specification {
    
        def execActionFactory = Mock(ExecActionFactory)
        def execAction = Mock(ExecAction)
        def execResult = Mock(ExecResult)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecActionFactory.java

            JavaExecAction execAction = newDecoratedJavaExecAction();
            action.execute(execAction);
            return execAction.execute();
        }
    
        @Override
        public ExecResult exec(Action<? super ExecSpec> action) {
            ExecAction execAction = newDecoratedExecAction();
            action.execute(execAction);
            return execAction.execute();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 10 06:16:11 UTC 2023
    - 24K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/version/CommandLineToolVersionLocatorTest.groovy

        void vswhereResults(String jsonResult) {
            OutputStream outputStream
    
            1 * execActionFactory.newExecAction() >> execAction
            1 * execAction.setStandardOutput(_ as OutputStream) >> { args ->
                outputStream = args[0]
                return null
            }
            1 * execAction.execute() >> {
                outputStream.write(jsonResult.bytes)
                return Stub(ExecResult)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/JavadocExecHandleBuilderTest.groovy

            def action = Mock(ExecAction)
    
            when:
            javadocExecHandleBuilder.execHandle
    
            then:
            1 * execActionFactory.newExecAction() >> action
            1 * action.executable(Jvm.current().javadocExecutable)
        }
    
        def testCheckCustomExecutable() {
            String executable = "somepath"
            def action = Mock(ExecAction)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/metadata/GccMetadataProvider.java

            ExecAction execAction = getExecActionFactory().newExecAction();
            execAction.setWorkingDir(new File(".").getAbsolutePath());
            execAction.commandLine(cygpathExe.getAbsolutePath(), "-w", cygwinPath);
            StreamByteBuffer buffer = new StreamByteBuffer();
            StreamByteBuffer errorBuffer = new StreamByteBuffer();
            execAction.setStandardOutput(buffer.getOutputStream());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 06:39:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/tasks/AbstractExecTask.java

            throw new UnsupportedOperationException();
        }
    
        @TaskAction
        protected void exec() {
            ExecAction execAction = getExecActionFactory().newExecAction();
            execSpec.copyTo(execAction);
            execResult.set(execAction.execute());
        }
    
        /**
         * {@inheritDoc}
         */
        @Override
        public T commandLine(Object... arguments) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 08 18:31:36 UTC 2022
    - 8.3K bytes
    - Viewed (0)
Back to top