All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gradle.process.JavaDebugOptions Maven / Gradle / Ivy

There is a newer version: 8.11.1
Show newest version
/*
 * Copyright 2019 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.process;

import org.gradle.api.Incubating;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.Optional;

/**
 * Contains a subset of the Java Debug Wire Protocol properties.
 *
 * @since 5.6
 */
public interface JavaDebugOptions {

    /**
     * Should the debug agent start in the forked process? By default, this is false.
     */
    @Input
    Property getEnabled();

    /**
     * Host address to listen on or connect to when debug is enabled. By default, no host is set.
     *
     * 

* When run in {@link #getServer() server} mode, the process listens on the loopback address on Java 9+ and all interfaces on Java 8 and below by default. * Setting host to {@code *} will make the process listen on all network interfaces. This is not supported on Java 8 and below. * Setting host to anything else will make the process listen on that address. *

*

* When run in {@link #getServer() client} mode, the process attempts to connect to the given host and {@link #getPort()}. *

* * @since 7.6 */ @Incubating @Optional @Input Property getHost(); /** * The debug port to listen on or connect to. */ @Input Property getPort(); /** * Should the process listen for a debugger to attach (server) or immediately connect to an already running debugger (client)? *

* In server mode ({@code server = true}), the process listens for a debugger to connect after the JVM starts up. *

*

* In client mode ({@code server = false}), the process attempts to connect to an already running debugger. *

*/ @Input Property getServer(); /** * Should the process suspend until the connection to the debugger is established? */ @Input Property getSuspend(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy