private List < Resource > parseWarResources ( Xpp3Dom warResourcesNode ) { List < Resource > resources = new ArrayList < Resource > ( ) ; Xpp3Dom [ ] resourceNodes = warResourcesNode . getChildren ( "resource" ) ; for ( Xpp3Dom resourceNode : resourceNodes ) { if ( resourceNode == null || resourceNode . getChild ( "directory" ) == null ) { continue ; } resources . add ( parseResourceNode ( resourceNode ) ) ; } return resources ; }
Parse resources node content .