Interface JavaExecSpec

    • Method Detail

      • setMain

        JavaExecSpec setMain​(@Nullable
                             String main)
        Sets the fully qualified name of the main class to be executed.
        Parameters:
        main - the fully qualified name of the main class to be executed.
        Returns:
        this
      • args

        JavaExecSpec args​(Object... args)
        Adds args for the main class to be executed.
        Parameters:
        args - Args for the main class.
        Returns:
        this
      • args

        JavaExecSpec args​(Iterable<?> args)
        Adds args for the main class to be executed.
        Parameters:
        args - Args for the main class.
        Returns:
        this
      • setArgs

        JavaExecSpec setArgs​(@Nullable
                             List<String> args)
        Sets the args for the main class to be executed.
        Parameters:
        args - Args for the main class.
        Returns:
        this
        Since:
        4.0
      • setArgs

        JavaExecSpec setArgs​(@Nullable
                             Iterable<?> args)
        Sets the args for the main class to be executed.
        Parameters:
        args - Args for the main class.
        Returns:
        this
      • classpath

        JavaExecSpec classpath​(Object... paths)
        Adds elements to the classpath for executing the main class.
        Parameters:
        paths - classpath elements
        Returns:
        this
      • setClasspath

        JavaExecSpec setClasspath​(FileCollection classpath)
        Sets the classpath for executing the main class.
        Parameters:
        classpath - the classpath
        Returns:
        this