for (int i = 0; i < manifestAttributes.length; i++) { Attribute attribute = manifestAttributes[i]; attribute.setValue( this.environment.writeProperties( attribute.getValue() )); }
	public void execute(Device device, Locale locale, Environment env)	throws BuildException 	{		File manifestFile = new File( device.getClassesDir() + File.separatorChar + "META-INF" + File.separatorChar + "MANIFEST.MF" );		Attribute[] manifestAttributes = (Attribute[]) env.get(MANIFEST_ATTRIBUTES_KEY);		if (manifestAttributes == null) {			throw new BuildException("No manifest attributes stored.");		}		String encoding = (String) env.get( MANIFEST_ENCODING_KEY );		if (encoding == null) {			throw new BuildException("No manifest encoding stored.");		}		try {			createManifest( manifestFile, manifestAttributes, encoding, device, locale, env );		} catch (IOException e) {			e.printStackTrace();			throw new BuildException("Unable to create manifest for device [" + device.getIdentifier() + "] in [" + manifestFile.getAbsolutePath() + "]: " + e.toString() );		}	}