{
String platform = (String) i.next();
File output = new File( target, platform );
DaemonGenerationRequest request = new DaemonGenerationRequest();
// TODO: split platform from generator (platform = operating systems, generator = jsw, booter, standard). Generator is a property of the daemon itself
request.setPlatform( platform );
request.setStubDescriptor( descriptor );
request.setStubDaemon( modelDaemon );
request.setOutputDirectory( output );
request.setMavenProject( project );
request.setLocalRepository( localRepository );
request.setRepositoryLayout( artifactRepositoryLayout );
// add components for jsw
request.setArchiverManager( archiveManager );
request.setArtifactFactory( factory );
request.setArtifactResolver( artifactResolver );
request.setRemoteRepositories( remoteRepositories );
// set daemon version, currently only for JSW
request.setDaemonVersion( daemon.getVersion() );
try
{
daemonGeneratorService.generateDaemon( request );
}