public static Map < Component , File > findScopedInstancesDirectories ( AbstractApplication absApp ) { Map < Component , File > result = new HashMap <> ( ) ; for ( Component c : ComponentHelpers . findAllComponents ( absApp . getGraphs ( ) ) ) { // Target? if ( ! ComponentHelpers . isTarget ( c ) ) continue ; // Is there a resources directory? File dir = ResourceUtils . findInstanceResourcesDirectory ( absApp . getDirectory ( ) , c ) ; if ( ! dir . exists ( ) ) continue ; result . put ( c , dir ) ; } return result ; }
Finds the resource directories for scoped instances .