File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
core/runtime/src/main/java/io/quarkus/runtime Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
package io .quarkus .runtime ;
2
2
3
3
public enum LaunchMode {
4
-
5
4
/**
6
5
* A normal production build. At the moment this can be both native image or
7
6
* JVM mode, but eventually these will likely be split
8
7
*/
9
- NORMAL ("prod" , "quarkus.profile" ),
8
+ NORMAL (LaunchMode . PROD_PROFILE , "quarkus.profile" ),
10
9
/**
11
10
* quarkus:dev or an IDE launch (when we support IDE launch)
12
11
*/
13
- DEVELOPMENT ("dev" , "quarkus.profile" ),
12
+ DEVELOPMENT (LaunchMode . DEV_PROFILE , "quarkus.profile" ),
14
13
/**
15
14
* a test run
16
15
*/
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" ;
18
21
19
22
public boolean isDevOrTest () {
20
23
return this != NORMAL ;
You can’t perform that action at this time.
0 commit comments