Skip to content

Commit e1d81f5

Browse files
mellowaregsmet
authored andcommitted
LaunchMode profile constants
1 parent 994a646 commit e1d81f5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

core/runtime/src/main/java/io/quarkus/runtime/LaunchMode.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
package io.quarkus.runtime;
22

33
public enum LaunchMode {
4-
54
/**
65
* A normal production build. At the moment this can be both native image or
76
* JVM mode, but eventually these will likely be split
87
*/
9-
NORMAL("prod", "quarkus.profile"),
8+
NORMAL(LaunchMode.PROD_PROFILE, "quarkus.profile"),
109
/**
1110
* quarkus:dev or an IDE launch (when we support IDE launch)
1211
*/
13-
DEVELOPMENT("dev", "quarkus.profile"),
12+
DEVELOPMENT(LaunchMode.DEV_PROFILE, "quarkus.profile"),
1413
/**
1514
* a test run
1615
*/
17-
TEST("test", "quarkus.test.profile");
16+
TEST(LaunchMode.TEST_PROFILE, "quarkus.test.profile");
17+
18+
public static final String DEV_PROFILE = "dev";
19+
public static final String PROD_PROFILE = "prod";
20+
public static final String TEST_PROFILE = "test";
1821

1922
public boolean isDevOrTest() {
2023
return this != NORMAL;

0 commit comments

Comments
 (0)