@@ -54,7 +54,7 @@ public final class ApplicationSetup implements BuildLocalSource, ComponentSetup
5454 @ Nullable
5555 private ArrayList <Runnable > codegenActions ;
5656
57- /** Components tags on components in the application. */
57+ /** Handles components tags for every components in the application. */
5858 public final ComponentTagHolder componentTags = new ComponentTagHolder ();
5959
6060 /**
@@ -100,16 +100,14 @@ public final class ApplicationSetup implements BuildLocalSource, ComponentSetup
100100 public final HashMap <NamespaceKey , NamespaceHandle <?, ?>> namespaces = new HashMap <>();
101101
102102 /** The current phase of the application's build process. */
103- private ApplicationBuildPhase phase = ApplicationBuildPhase .ASSEMBLE ;
103+ public ApplicationBuildPhase phase = ApplicationBuildPhase .ASSEMBLE ;
104104
105105 /** Any (statically defined) children this application has. */
106- public final ArrayList <BuildApplicationRepository > subChildren = new ArrayList <>();
106+ public final ArrayList <BuildApplicationRepository > childApplications = new ArrayList <>();
107107
108108 /** The template used to create the application. */
109109 public final PackedApplicationTemplate <?> template ;
110110
111- public boolean completedBuilding ;
112-
113111 /**
114112 * Create a new application.
115113 *
@@ -121,7 +119,7 @@ private ApplicationSetup(PackedApplicationInstaller<?> installer) {
121119 this .deployment = new DeploymentSetup (this , installer );
122120 this .codegenActions = deployment .goal .isCodeGenerating () ? new ArrayList <>() : null ;
123121 this .goal = installer .buildProcess .goal ();
124- this .launcher = installer .launcher ; // Is null for rootstrap
122+ this .launcher = installer .launcher ; // Is null for bootstrap
125123 }
126124
127125 /**
@@ -176,7 +174,8 @@ public void close() {
176174 }
177175
178176 // The application was build successfully
179- phase = ApplicationBuildPhase .COMPLETED ;
177+ phase = ApplicationBuildPhase .CLOSED ;
178+ new Exception ().printStackTrace ();
180179 }
181180
182181 /** {@return the component path of the application} */
@@ -244,7 +243,7 @@ public static ApplicationSetup newApplication(PackedApplicationInstaller<?> inst
244243 }
245244
246245 /** The build phase of the application. */
247- private enum ApplicationBuildPhase {
248- ASSEMBLE , CODEGEN , COMPLETED ;
246+ public enum ApplicationBuildPhase {
247+ ASSEMBLE , CODEGEN , CLOSED , COMPLETED ;
249248 }
250249}
0 commit comments