-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow running CLI in dev mode, without overwriting quarkus version (#…
…1232) * Allow running CLI in dev mode, without overwriting quarkus version
- Loading branch information
Showing
4 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...quarkus/test/services/quarkus/CliDevModeVersionLessQuarkusApplicationManagedResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.quarkus.test.services.quarkus; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import io.quarkus.test.bootstrap.QuarkusCliClient; | ||
import io.quarkus.test.bootstrap.ServiceContext; | ||
|
||
public class CliDevModeVersionLessQuarkusApplicationManagedResource | ||
extends CliDevModeLocalhostQuarkusApplicationManagedResource { | ||
public CliDevModeVersionLessQuarkusApplicationManagedResource(ServiceContext serviceContext, QuarkusCliClient client) { | ||
super(serviceContext, client); | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getPropertiesForCommand() { | ||
Map<String, String> runtimeProperties = new HashMap<>(serviceContext.getOwner().getProperties()); | ||
runtimeProperties.putIfAbsent(QUARKUS_HTTP_PORT_PROPERTY, "" + assignedHttpPort); | ||
return runtimeProperties; | ||
} | ||
} |