File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5555import org .gradle .jvm .toolchain .JavaLauncher ;
5656import org .gradle .jvm .toolchain .JavaToolchainService ;
5757import org .gradle .jvm .toolchain .JavaToolchainSpec ;
58+ import org .gradle .process .ExecOperations ;
5859import org .gradle .util .GradleVersion ;
5960
6061import io .quarkus .analytics .AnalyticsService ;
@@ -324,6 +325,9 @@ public void setTests(List<String> tests) {
324325 getTests ().set (tests );
325326 }
326327
328+ @ Inject
329+ public abstract ExecOperations getExecOperations ();
330+
327331 @ TaskAction
328332 public void startDev () {
329333 if (!sourcesExist ()) {
@@ -358,7 +362,7 @@ public void close() throws IOException {
358362 final DevModeCommandLine runner = newLauncher (analyticsService );
359363 String outputFile = System .getProperty (IO_QUARKUS_DEVMODE_ARGS );
360364 if (outputFile == null ) {
361- getProject ().exec (action -> {
365+ getExecOperations ().exec (action -> {
362366 action .commandLine (runner .getArguments ()).workingDir (getWorkingDirectory ().get ());
363367 action .environment (getEnvVars ());
364368 action .setStandardInput (System .in )
You can’t perform that action at this time.
0 commit comments