* @return The metadata
* @exception Exception Thrown if an error occurs
*/
public Connector getStandardMetaData(File root) throws Exception
{
Connector result = null;
File metadataFile = new File(root, "/META-INF/ra.xml");
if (metadataFile.exists())
{
InputStream input = null;
String url = metadataFile.getAbsolutePath();
try
{
long start = System.currentTimeMillis();
input = new FileInputStream(metadataFile);
result = (new RaParser()).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.errorf(e, "Error during parsing: %s", url);