String path = (String) this.antProperties.get( "polish.api." + this.symbol ); if (path != null) { File libFile = new File( path );
String myPath = (String) this.antProperties.get( "polish.api." + this.symbol ); if (myPath != null) { File libFile = new File( myPath );
	private void findPath() {		// 1. try default path:		if (this.defaultPath != null) {			File libFile = new File( this.defaultPath );			if (libFile.exists()) {				this.path = this.defaultPath;				return;			}		}				// 2. now check if an property has been defined for this api:		String path = (String) this.antProperties.get( "polish.api." + this.symbol );		if (path != null) {			File libFile = new File( path );			if (libFile.exists()) {				this.path = libFile.getAbsolutePath();				return;			}		}				// 3. now check all file-names:		if (this.fileNames != null) {			for (int i = 0; i < this.fileNames.length; i++) {				String fileName = this.fileNames[i];				// look in the project:				File libFile = new File( this.projectLibPath + fileName );				if (libFile.exists()) {					this.path = libFile.getAbsolutePath();					return;				}				// look in the wtk:				libFile = new File( this.wtkLibPath + fileName );				if (libFile.exists()) {					this.path = libFile.getAbsolutePath();					return;				}			}		}				// 4. now try the library names:		for (int i = 0; i < this.names.length; i++) {						// first look for jar files:			String name = this.names[i] + ".jar";			// look in the project:			File libFile = new File( this.projectLibPath + name );			if (libFile.exists()) {				this.path = libFile.getAbsolutePath();				return;			}			// look in the wtk:			libFile = new File( this.wtkLibPath + name );			if (libFile.exists()) {				this.path = libFile.getAbsolutePath();				return;			}						// now try zip-files:			name = this.names[i] + ".zip";			// look in the project:			libFile = new File( this.projectLibPath + name );			if (libFile.exists()) {				this.path = libFile.getAbsolutePath();				return;			}			// look in the wtk:			libFile = new File( this.wtkLibPath + name );			if (libFile.exists()) {				this.path = libFile.getAbsolutePath();				return;			}		}						System.out.println("Warning: unable to find the library [" + this.fullName + "] on the path. If this leads to problems, please adjust the settings for this library in the file [apis.xml].");	}