TurboCommons-Java/.turboBuilder/Utils.js
function getFilesList(path, includes, excludes){
	
	// Init default vars values
	includes = (includes === undefined || includes == null || includes == '') ? "**" : includes;
	excludes = (excludes === undefined || excludes == null || excludes == '') ? "" : excludes;
	
	var fs = project.createDataType("fileset");
	
	fs.setDir(new java.io.File(path));
    
	if(includes != ""){
	
		fs.setIncludes(includes);
	}	
    
    if(excludes != ""){
    
    	fs.setExcludes(excludes);
    }    

    var srcFiles = fs.getDirectoryScanner(project).getIncludedFiles();
    
    var result = [];
    
    for (var i = 0; i<srcFiles.length; i++){
        
    	result.push(srcFiles[i]);
    }
    
    return result;
}
function getFilesList(path, includes, excludes){
	
	// Init default vars values
	includes = (includes === undefined || includes == null || includes == '') ? "**" : includes;
	excludes = (excludes === undefined || excludes == null || excludes == '') ? "" : excludes;
	
	var fs = project.createDataType("fileset");
	
	fs.setDir(new java.io.File(path));
    
	if(includes != ""){
	
		fs.setIncludes(includes);
	}	
    
    if(excludes != ""){
    
    	fs.setExcludes(excludes);
    }    

    var srcFiles = fs.getDirectoryScanner(project).getIncludedFiles();
    
    var result = [];
    
    for (var i = 0; i<srcFiles.length; i++){
        
    	result.push(srcFiles[i]);
    }
    
    return result;
}
function getFilesList ( path , includes , excludes ) { // Init default vars values
 includes = ( includes === undefined || includes == null || includes == '' ) ? "**" : includes ; excludes = ( excludes === undefined || excludes == null || excludes == '' ) ? "" : excludes ; var fs = project . createDataType ( "fileset" ) ; fs . setDir ( new java . io . File ( path ) ) ; if ( includes != "" ) { fs . setIncludes ( includes ) ; } if ( excludes != "" ) { fs . setExcludes ( excludes ) ; } var srcFiles = fs . getDirectoryScanner ( project ) . getIncludedFiles ( ) ; var result = [ ] ; for ( var i = 0 ; i < srcFiles . length ; i ++ ) { result . push ( srcFiles [ i ] ) ; } return result ; }
Get a list with all the files inside the specified path and all of its subfolders.

@param path A full file system path from which we want to get the list of files
@param includes comma- or space-separated list of patterns of files that must be included; all files are included when omitted.
@param excludes comma- or space-separated list of patterns of files that must be excluded; no files (except default excludes) are excluded when omitted.

@returns An array containing all the matching files inside the given path and subfolders. Each array element will be
the full filename plus the relative path to the provided path. For example, if we provide "src/main" as path,
resulting files may be like "php/managers/BigManager.php", ... and so.
Get a list with all the files inside the specified path and all of its subfolders .