forked from helidon-io/helidon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/helidon-2.x' into helidon-2.x
- Loading branch information
Showing
7 changed files
with
101 additions
and
2 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
29 changes: 29 additions & 0 deletions
29
archetypes/bare-mp/src/main/resources/src/main/java/__pkg__/Main.java.mustache
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,29 @@ | ||
|
||
package {{package}}; | ||
|
||
/** | ||
* Main entry point of the application. | ||
* <p> | ||
* Note that this class is required when using modules as the module main class must be in a package that is either exported | ||
* or opened by the module, see {@link java.lang.module.ModuleDescriptor#read(java.io.InputStream, java.util.function.Supplier)}. | ||
* <p> | ||
* This class provides a proper module main class and calls the {@link io.helidon.Main#main(String[]) built-in main class}. | ||
*/ | ||
public class Main { | ||
/** | ||
* Cannot be instantiated. | ||
*/ | ||
private Main() { | ||
} | ||
|
||
/** | ||
* Main method. Starts CDI (and the application). | ||
* | ||
* @param args ignored | ||
*/ | ||
public static void main(String[] args) { | ||
io.helidon.microprofile.cdi.Main.main(args); | ||
} | ||
|
||
} |
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
29 changes: 29 additions & 0 deletions
29
archetypes/database-mp/src/main/resources/src/main/java/__pkg__/Main.java.mustache
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,29 @@ | ||
|
||
package {{package}}; | ||
|
||
/** | ||
* Main entry point of the application. | ||
* <p> | ||
* Note that this class is required when using modules as the module main class must be in a package that is either exported | ||
* or opened by the module, see {@link java.lang.module.ModuleDescriptor#read(java.io.InputStream, java.util.function.Supplier)}. | ||
* <p> | ||
* This class provides a proper module main class and calls the {@link io.helidon.Main#main(String[]) built-in main class}. | ||
*/ | ||
public class Main { | ||
/** | ||
* Cannot be instantiated. | ||
*/ | ||
private Main() { | ||
} | ||
|
||
/** | ||
* Main method. Starts CDI (and the application). | ||
* | ||
* @param args ignored | ||
*/ | ||
public static void main(String[] args) { | ||
io.helidon.microprofile.cdi.Main.main(args); | ||
} | ||
|
||
} |
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
29 changes: 29 additions & 0 deletions
29
archetypes/quickstart-mp/src/main/resources/src/main/java/__pkg__/Main.java.mustache
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,29 @@ | ||
|
||
package {{package}}; | ||
|
||
/** | ||
* Main entry point of the application. | ||
* <p> | ||
* Note that this class is required when using modules as the module main class must be in a package that is either exported | ||
* or opened by the module, see {@link java.lang.module.ModuleDescriptor#read(java.io.InputStream, java.util.function.Supplier)}. | ||
* <p> | ||
* This class provides a proper module main class and calls the {@link io.helidon.Main#main(String[]) built-in main class}. | ||
*/ | ||
public class Main { | ||
/** | ||
* Cannot be instantiated. | ||
*/ | ||
private Main() { | ||
} | ||
|
||
/** | ||
* Main method. Starts CDI (and the application). | ||
* | ||
* @param args ignored | ||
*/ | ||
public static void main(String[] args) { | ||
io.helidon.microprofile.cdi.Main.main(args); | ||
} | ||
|
||
} |
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