* @return The metadata
* @exception Exception Thrown if an error occurs
*/
public JbossRa getJBossMetaData(File root) throws Exception
{
JbossRa result = null;
File metadataFile = new File(root, "/META-INF/jboss-ra.xml");
if (metadataFile.exists())
{
InputStream input = null;
String url = metadataFile.getAbsolutePath();
try
{
long start = System.currentTimeMillis();
input = new FileInputStream(metadataFile);
result = (new JbossRaParser()).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;