Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 833 for SetLogger (0.15 sec)

  1. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt

    import org.gradle.process.ExecOperations
    import org.slf4j.LoggerFactory
    import java.util.concurrent.ConcurrentHashMap
    import javax.inject.Inject
    
    
    private
    val logger = LoggerFactory.getLogger("daemonTracker")
    
    
    abstract class DaemonTracker : BuildService<DaemonTracker.Params>, AutoCloseable {
        interface Params : BuildServiceParameters {
            val rootProjectDir: DirectoryProperty
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/DefaultCommandLineToolInvocationWorker.java

            toolExec.setStandardOutput(stdOutput.getOutputStream());
    
            try {
                toolExec.execute();
                invocation.getLogger().operationSuccess(description.getDisplayName(), combineOutput(stdOutput, errOutput));
            } catch (ExecException e) {
                invocation.getLogger().operationFailed(description.getDisplayName(), combineOutput(stdOutput, errOutput));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tasks/commandLineOption-stringOption/kotlin/buildSrc/src/main/java/UrlVerify.java

        public void setUrl(String url) {
            this.url = url;
        }
    
        @Input
        public String getUrl() {
            return url;
        }
    
        @TaskAction
        public void verify() {
            getLogger().quiet("Verifying URL '{}'", url);
    
            // verify URL by making a HTTP call
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 665 bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/CompiledKotlinBuildScript.kt

         */
        open val initscript: ScriptHandler
            get() = host.scriptHandler
    
        private
        class InitScriptHost(val host: KotlinScriptHost<Gradle>) : Host {
            override fun getLogger(): Logger = Logging.getLogger(Gradle::class.java)
            override fun getLogging(): LoggingManager = host.target.serviceOf()
            override fun getFileOperations(): FileOperations = host.fileOperations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/plugins/publishing/groovy/src/main/java/com/example/goodbye/GoodbyePlugin.java

      public void apply(Project project) {
        Task goodbye = project.getTasks().create("goodbye");
        goodbye.doLast(new Action<Task>() {
          @Override
          public void execute(Task task) {
            task.getLogger().lifecycle("Goodbye!");
          }
        });
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 467 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/src/main/java/org/myorg/tasks/UrlVerify.java

                }
            } catch (HttpCallException e) {
                throw new GradleException(String.format("Failed to resolve url '%s'", url, e));
            }
    
            getLogger().quiet(String.format("Successfully resolved URL '%s'", url));
        }
    
        void setHttpCaller(HttpCaller httpCaller) {
            this.httpCaller = httpCaller;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/tooling/internal/provider/continuous/SingleFirePendingChangesListener.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    public class SingleFirePendingChangesListener implements PendingChangesListener {
        private static final Logger LOGGER = LoggerFactory.getLogger(SingleFirePendingChangesListener.class);
    
        private final PendingChangesListener delegate;
        private boolean seenChanges;
    
        public SingleFirePendingChangesListener(PendingChangesListener delegate) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/ValidatePlugins.java

            if (problems.isEmpty()) {
                getLogger().info("Plugin validation finished without warnings.");
            } else {
                if (getFailOnWarning().get() || problems.stream().anyMatch(problem -> problem.getDefinition().getSeverity() == ERROR)) {
                    if (getIgnoreFailures().get()) {
                        getLogger().warn("Plugin validation finished with errors. {} {}",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/LoggerCodec.kt

    object LoggerCodec : Codec<Logger> {
    
        override suspend fun WriteContext.encode(value: Logger) {
            writeString(value.name)
        }
    
        override suspend fun ReadContext.decode(): Logger? =
            LoggerFactory.getLogger(readString())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/integTest/resources/org/gradle/internal/logging/LoggingIntegrationTest/logging/custom-logger-init.gradle

    if (gradle.parent == null) {
        useLogger(new CustomLogger())
    }
    
    class CustomLogger extends BuildAdapter implements BuildListener, ProjectEvaluationListener, TaskExecutionListener, TaskActionListener {
        def logger = Logging.getLogger('init-script')
    
        public void buildFinished(BuildResult result) {
            logger.info("LOGGER: build finished")
            println 'init callback quiet out'
        }
    
        public void beforeEvaluate(Project project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top