public final List /* <AttachedNarArtifact> */ getAttachedNarDependencies ( final List /* * < * NarArtifacts * > */ narArtifacts , final AOL archOsLinker , final String type ) throws MojoExecutionException , MojoFailureException { boolean noarch = false ; AOL aol = archOsLinker ; if ( aol == null ) { noarch = true ; aol = this . defaultAOL ; } final List artifactList = new ArrayList ( ) ; for ( final Object narArtifact : narArtifacts ) { final Artifact dependency = ( Artifact ) narArtifact ; final NarInfo narInfo = getNarInfo ( dependency ) ; if ( noarch ) { artifactList . addAll ( getAttachedNarDependencies ( dependency , null , NarConstants . NAR_NO_ARCH ) ) ; } // use preferred binding, unless non existing. final String binding = narInfo . getBinding ( aol , type != null ? type : Library . STATIC ) ; // FIXME kludge, but does not work anymore since AOL is now a class if ( aol . equals ( NarConstants . NAR_NO_ARCH ) ) { // FIXME no handling of local artifactList . addAll ( getAttachedNarDependencies ( dependency , null , NarConstants . NAR_NO_ARCH ) ) ; } else { artifactList . addAll ( getAttachedNarDependencies ( dependency , aol , binding ) ) ; } } return artifactList ; }
Returns a list of all attached nar dependencies for a specific binding and noarch but not where local is specified