* @return The metadata
* @exception Exception Thrown if an error occurs
*/
public IronJacamar getIronJacamarMetaData(File root) throws Exception
{
IronJacamar result = null;
File metadataFile = new File(root, "/META-INF/ironjacamar.xml");
if (metadataFile.exists())
{
InputStream input = null;
String url = metadataFile.getAbsolutePath();
try
{
long start = System.currentTimeMillis();
input = new FileInputStream(metadataFile);
result = (new IronJacamarParser()).parse(input);
log.debugf("Total parse for %s took %d ms", url, (System.currentTimeMillis() - start));
log.tracef("successufully deployed %s", result.toString());
}
catch (Exception e)
{
log.error("Error during parsing: " + url, e);
throw e;