public static List < File > createRecipeDirectories ( File applicationDirectory ) throws IOException { List < File > result = new ArrayList <> ( ) ; ApplicationLoadResult alr = RuntimeModelIo . loadApplicationFlexibly ( applicationDirectory ) ; if ( alr . getApplicationTemplate ( ) != null ) { for ( Component c : ComponentHelpers . findAllComponents ( alr . getApplicationTemplate ( ) ) ) { File directory = ResourceUtils . findInstanceResourcesDirectory ( applicationDirectory , c ) ; if ( ! directory . exists ( ) ) result . add ( directory ) ; Utils . createDirectory ( directory ) ; } } return result ; }
Creates the recipes directories for a Roboconf components .