@@ -51,7 +51,6 @@ public int Run(IFlubuSession flubuSession)
5151
5252 try
5353 {
54- BeforeBuildExecution ( flubuSession ) ;
5554 RunBuild ( flubuSession ) ;
5655 flubuSession . Complete ( ) ;
5756 AfterBuildExecution ( flubuSession ) ;
@@ -140,16 +139,16 @@ private void RunBuild(IFlubuSession flubuSession)
140139 {
141140 flubuSession . TargetTree . ResetTargetTree ( ) ;
142141 ConfigureDefaultProps ( flubuSession ) ;
142+ BeforeBuildExecution ( flubuSession ) ;
143143 ConfigureBuildProperties ( flubuSession ) ;
144-
145144 ConfigureDefaultTargets ( flubuSession ) ;
146145
147146 _scriptProperties . InjectProperties ( this , flubuSession ) ;
148147
149148 _targetCreator . CreateTargetFromMethodAttributes ( this , flubuSession ) ;
150-
151- ConfigureTargets ( flubuSession ) ;
152149 OnBuildInitialized ( flubuSession ) ;
150+ ConfigureTargets ( flubuSession ) ;
151+
153152 if ( ! flubuSession . Args . InteractiveMode )
154153 {
155154 var targetsInfo = ParseCmdLineArgs ( flubuSession . Args . MainCommands , flubuSession . TargetTree ) ;
@@ -293,7 +292,7 @@ protected virtual void BeforeBuildExecution(ITaskContext context)
293292 }
294293
295294 /// <summary>
296- /// Event that happens when build is initialized. Target 's and properties are configured.
295+ /// Event that happens when build is initialized. build properties are configured, target 's are not yet configured.
297296 /// </summary>
298297 /// <param name="context"></param>
299298 protected virtual void OnBuildInitialized ( ITaskContext context )
0 commit comments