/** * @param Properties $props the properties to record * @param OutputStream $os record the properties to this output stream * @param string $header prepend this header to the property output * * @throws BuildException on an I/O error during a write. */ protected function textSaveProperties(Properties $props, OutputStream $os, $header) { try { $props->storeOutputStream($os, $header); } catch (IOException $ioe) { throw new BuildException($ioe, $this->getLocation()); } }