File src = getFile("source/src", false ); if (src.exists()) { this.sourceSettings.add( new SourceSetting( src  ) ); } else { src = getFile("src", false ); if (src.exists()) { this.sourceSettings.add( new SourceSetting( src  ) ); } else { src = getFile("source", false); if (src.exists()) { this.sourceSettings.add( new SourceSetting( src ) ); } else {
File src = getProjectOrAbsoluteFile( "source/src", false ); if (!src.exists()) { src = getProjectOrAbsoluteFile("src", false ); if (!src.exists()) { src = getProjectOrAbsoluteFile("source", false); if (!src.exists()) {
	public SourceSetting[] getSourceSettings() {		if (this.sourceSettings.size() == 0) {			// add default directory: either source/src, scr or source:			File src = getFile("source/src", false );			if (src.exists()) {				this.sourceSettings.add( new SourceSetting( src  ) );			} else {				src = getFile("src", false );				if (src.exists()) {					this.sourceSettings.add( new SourceSetting( src  ) );				} else {					src = getFile("source", false);					if (src.exists()) {						this.sourceSettings.add( new SourceSetting( src ) );					} else {						throw new BuildException("Did not find any of the default " +								"source directories [source/src], [src] or [source]. " +								"Please specify the [sourceDir]-attribute of the " +								"<build> element. " +								"Base-directory is [" + this.antProject.getBaseDir().getAbsolutePath() + "].");					}				}			}		}		SourceSetting[] settings = (SourceSetting[]) this.sourceSettings.toArray( new SourceSetting[ this.sourceSettings.size()]);		return settings;	}