eclipse-buildship / buildship

The Eclipse Plug-ins for Gradle project.
535 stars 171 forks source link

Launch Group that runs gradle task with the post launch action set to wait for termination waits infinitely #1272

Open coehlrich opened 1 year ago

coehlrich commented 1 year ago

Expected Behavior

The launch group either executes next launch configuration or finishes.

Current Behavior

The launch group waits for the gradle task to finish infinitely.

Launch groups when set to wait for termination checks ILaunch.isTerminated and IProgressMonitor.isCanceled to see if the task has been terminated where the default implementation of ILaunch.isTerminated checks to see if atleast one process or debug target has been registered of which buildship currently registers neither.

Context

I am trying to create a launch group which runs a gradle task and waits for it to terminate.

Steps to Reproduce

  1. Create a launch group run configuration.
  2. Set the launch group to execute any gradle run configuration.
  3. Set the launch group to wait for the gradle run configuration to terminate.
  4. Run the launch group.

Your Environment

Eclipse: 2023-09, Buildship version: 3.1.7.v20230428-1602.