*/
protected Vector findCompileList(Vector srcList) throws BuildException {
Vector compileList=new Vector();
for (int i = 0; i < srcList.size(); i++) {
Source source=(Source)srcList.elementAt(i);
File srcFile=source.getFile();
if (!srcFile.exists()) {
throw new BuildException("Source \"" + srcFile.getPath() +
"\" does not exist!", location);
}
// Check the dependency
if( needCompile( source ) )
compileList.addElement( source );
}
if( checkDepend(oldestO, oldestOFile) ) {
log("Dependency expired, removing "
+ srcList.size() + " .o files and doing a full build ");
removeOFiles(srcList);
compileList=new Vector();
for(int i=0; i<srcList.size(); i++ ) {
Source source=(Source)srcList.elementAt(i);
compileList.addElement( source );
}
return compileList;
}