diff --git a/src/main/java/rife/bld/BuildExecutor.java b/src/main/java/rife/bld/BuildExecutor.java index 9ec9d62..30a3aa0 100644 --- a/src/main/java/rife/bld/BuildExecutor.java +++ b/src/main/java/rife/bld/BuildExecutor.java @@ -8,7 +8,6 @@ import rife.bld.help.HelpHelp; import rife.bld.operations.HelpOperation; import rife.bld.operations.exceptions.ExitStatusException; -import rife.bld.wrapper.Wrapper; import rife.ioc.HierarchicalProperties; import rife.tools.ExceptionUtils; @@ -272,18 +271,7 @@ public int execute(String[] arguments) { * @since 1.5.1 */ public void start(String[] arguments) { - boolean embedded = false; - if (arguments != null) { - var arg_list = new ArrayList<>(Arrays.asList(arguments)); - embedded = arg_list.remove(Wrapper.EMBEDDED_ARGUMENT); - if (embedded) { - arguments = arg_list.toArray(arguments); - } - } - var status = execute(arguments); - if (!embedded) { - System.exit(status); - } + System.exit(execute(arguments)); } /** diff --git a/src/main/java/rife/bld/wrapper/Wrapper.java b/src/main/java/rife/bld/wrapper/Wrapper.java index 50d4e26..aa79eca 100644 --- a/src/main/java/rife/bld/wrapper/Wrapper.java +++ b/src/main/java/rife/bld/wrapper/Wrapper.java @@ -34,7 +34,6 @@ */ public class Wrapper { public static final String BUILD_ARGUMENT = "--build"; - public static final String EMBEDDED_ARGUMENT = "--embedded"; static final String MAVEN_CENTRAL = "https://repo1.maven.org/maven2/"; static final String SONATYPE_SNAPSHOTS = "https://s01.oss.sonatype.org/content/repositories/snapshots/"; @@ -82,12 +81,7 @@ public class Wrapper { * @since 1.5 */ public static void main(String[] arguments) { - var arg_list = new ArrayList<>(Arrays.asList(arguments)); - var embedded = arg_list.remove(EMBEDDED_ARGUMENT); - var status = new Wrapper().installAndLaunch(arg_list); - if (!embedded) { - System.exit(status); - } + System.exit(new Wrapper().installAndLaunch(new ArrayList<>(Arrays.asList(arguments)))); } /**