String path = (String) antProperties.get( "polish.api." + libName );
String path = (String) this.antProperties.get( "polish.api." + libName );
	public String[] getClassPaths( Device device ) {		if (device.getSupportedApisAsString() == null) {			return new String[0];		}		// first check if the device's libraries have been resolved already:		String[] resolvedPaths = (String[]) this.resolvedClassPaths.get( device.getSupportedApisAsString() );		if (resolvedPaths != null) {			return resolvedPaths;		}		// now resolve the path to each supported library:		String[] libNames = device.getSupportedApis();		ArrayList libPaths = new ArrayList();		for (int i = 0; i < libNames.length; i++) {			String libName = libNames[i];			Library lib = (Library) this.libraries.get( libName );			String libPath = null;			if (lib != null ) {				libPath = lib.getPath();			} else {				libPath = (String) this.resolvedLibraryPaths.get( libName );				if (libPath == null) {					// try to resolve the lib-path by the name:					// try a jar file:					String fileName = this.projectLibPath + libName + ".jar";					File file = new File( fileName );					if ( file.exists() ) {						libPath = file.getAbsolutePath();					} else {						// try a zip-file:						fileName = this.projectLibPath + libName + ".zip";						file = new File( fileName );						if ( file.exists() ) {							libPath = file.getAbsolutePath();						} else {							// now check if an property has been defined for this api:							String path = (String) antProperties.get( "polish.api." + libName );							if (path != null) {								File libFile = new File( path );								if (libFile.exists()) {									libPath = libFile.getAbsolutePath();								} else {									System.out.println("Warning: the Ant-property [polish.api." + libName + "] points to a non-existing file. When this leads to problems, please register this API in [apis.xml].");								}							} else {								System.out.println("Warning: unable to resolve path to API [" + libName + "]. When this leads to problems, please register this API in [apis.xml].");							}						}					}				}			} // if libPath == null			if (libPath != null) {				libPaths.add( libPath );				this.resolvedLibraryPaths.put( libName, libPath );			}		}		resolvedPaths = (String[]) libPaths.toArray( new String[ libPaths.size() ] );		this.resolvedClassPaths.put( device.getSupportedApisAsString(), resolvedPaths );		return resolvedPaths;	}