protected SARLConfiguration readConfiguration ( ProjectConfigurationRequest request , IProgressMonitor monitor ) throws CoreException { SARLConfiguration initConfig = null ; SARLConfiguration compileConfig = null ; final List < MojoExecution > mojos = getMojoExecutions ( request , monitor ) ; for ( final MojoExecution mojo : mojos ) { final String goal = mojo . getGoal ( ) ; switch ( goal ) { case "initialize" : //$NON-NLS-1$ initConfig = readInitializeConfiguration ( request , mojo , monitor ) ; break ; case "compile" : //$NON-NLS-1$ compileConfig = readCompileConfiguration ( request , mojo , monitor ) ; break ; default : } } if ( compileConfig != null && initConfig != null ) { compileConfig . setFrom ( initConfig ) ; } return compileConfig ; }
Read the SARL configuration .