public void addAllSubsystemFileSourcesFromModule ( FeaturePack . Module module , ArtifactFileResolver artifactFileResolver , boolean transitive ) throws IOException { // the subsystem templates are included in module artifacts files for ( ModuleParseResult . ArtifactName artifactName : module . getModuleParseResult ( ) . getArtifacts ( ) ) { // resolve the artifact Artifact artifact = module . getFeaturePack ( ) . getArtifactResolver ( ) . getArtifact ( artifactName . getArtifact ( ) ) ; if ( artifact == null ) { throw new RuntimeException ( "Could not resolve module resource artifact " + artifactName . getArtifactCoords ( ) + " for feature pack " + module . getFeaturePack ( ) . getFeaturePackFile ( ) ) ; } // resolve the artifact file File artifactFile = artifactFileResolver . getArtifactFile ( artifact ) ; // get the subsystem templates addAllSubsystemFileSourcesFromZipFile ( artifactFile ) ; } if ( transitive ) { for ( FeaturePack . Module dependency : module . getDependencies ( ) . values ( ) ) { addAllSubsystemFileSourcesFromModule ( dependency , artifactFileResolver , false ) ; } } }
Adds all file sources in the specified module s artifacts .