Details

    • Type: Sub-task Sub-task
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.9.0.M2
    • Fix Version/s: 3.0.0.M1
    • Component/s: GRADLE
    • Labels:
      None
    • Environment:

      Linux, MacOS

      Description

      Selection of the gradle build file name (similar to the -b option in Gradle) is vital, a least for gradle tasks execution, but preferably also for import.

      Use case:

      When importing, I need only compile time direct dependencies. When executing, I need the full transitive and runtime (direct and transitive) dependencies. So, I use two different gradle build files, one for import and one for running.

      In the meantime, I use the generic external tool configuration, but it is much less practical.

        Activity

        Hide
        Kris De Volder (c) added a comment -

        Tooling API now has a method to set options like these on operations (including task execution).

        http://gradle.org/docs/current/groovydoc/org/gradle/tooling/LongRunningOperation.html#withArguments(java.lang.String)

        I should implement some UI in the launch configuration editor that allows one to set these options there.
        The options set in the launch config should override those set in the global preferences.

        Show
        Kris De Volder (c) added a comment - Tooling API now has a method to set options like these on operations (including task execution). http://gradle.org/docs/current/groovydoc/org/gradle/tooling/LongRunningOperation.html#withArguments(java.lang.String ) I should implement some UI in the launch configuration editor that allows one to set these options there. The options set in the launch config should override those set in the global preferences.
        Hide
        Kris De Volder (c) added a comment -

        It appears that the new API is not working at all.
        http://issues.gradle.org/browse/GRADLE-2226

        Progress on this issue is blocked until this bug is fixed in Gradle.

        Show
        Kris De Volder (c) added a comment - It appears that the new API is not working at all. http://issues.gradle.org/browse/GRADLE-2226 Progress on this issue is blocked until this bug is fixed in Gradle.
        Hide
        Kris De Volder (c) added a comment -

        I've implemented something that adds an "Arguments" tab to Gradle launch configuration editor.

        On this 'Tab / Page' there are two sections that allow you to set JVM and program arguments.
        The -b argument can be specified under program arguments.

        The options on the launch config are similar to those on the preference page "Gradle >> Launch".
        Arguments specified in the preferences page affect all Gradle operations (all task execution as well model builds). But the if the options are in the launch configuration those will override the global preferences).

        Show
        Kris De Volder (c) added a comment - I've implemented something that adds an "Arguments" tab to Gradle launch configuration editor. On this 'Tab / Page' there are two sections that allow you to set JVM and program arguments. The -b argument can be specified under program arguments. The options on the launch config are similar to those on the preference page "Gradle >> Launch". Arguments specified in the preferences page affect all Gradle operations (all task execution as well model builds). But the if the options are in the launch configuration those will override the global preferences).
        Hide
        Kris De Volder (c) added a comment -

        Note: If you use the "Gradle Tasks" view. You can find the configurations it created in the launch configuration editor. There you can then add arguments like "-b" and the arguments should take effect the next time you launch that particular task becayse "Gradle Tasks" view will attempt to find an existing configuration to run the selected task before creating a new one.

        Show
        Kris De Volder (c) added a comment - Note: If you use the "Gradle Tasks" view. You can find the configurations it created in the launch configuration editor. There you can then add arguments like "-b" and the arguments should take effect the next time you launch that particular task becayse "Gradle Tasks" view will attempt to find an existing configuration to run the selected task before creating a new one.
        Hide
        Kris De Volder (c) added a comment -

        Closing. Fix with regression test committed.

        Show
        Kris De Volder (c) added a comment - Closing. Fix with regression test committed.

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Pierre-Yves Saumont
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: