public static List < ModelError > parseTargetProperties ( File projectDirectory , Component c ) { List < ModelError > errors ; File dir = ResourceUtils . findInstanceResourcesDirectory ( projectDirectory , c ) ; if ( dir . isDirectory ( ) && ! Utils . listAllFiles ( dir , Constants . FILE_EXT_PROPERTIES ) . isEmpty ( ) ) errors = parseDirectory ( dir , c ) ; else errors = new ArrayList <> ( 0 ) ; return errors ; }
Parses the target properties for a given component .