{
for (int count=0;count<jarFiles.length;count++)
{
try
{
ToolPluginInformation toolInfo = ToolPluginInformation.getToolPluginInformation(jarFiles[count]);
/** Only add the tool info if the JAR is a tool JAR **/
if ( toolInfo != null )
{
_toolJars.add( toolInfo );
}
}
catch (Exception e)
{
// Ignore as JAR may not be a tool
}
}
}
URL[] urls = new URL[ _toolJars.size() + 1 ];
for (int count=0;count<_toolJars.size();count++)
{
ToolPluginInformation info = ((ToolPluginInformation)_toolJars.get(count));
try
{
urls[count] = info.getFilename().toURL();
}
catch (Exception e)
{
if ( tsmxLogger.loggerI18N.isErrorEnabled() )
{
tsmxLogger.loggerI18N.error("com.arjuna.ats.tools.toolsframework.ToolsClassLoader.invalidurl", new Object[] { info.getFilename() } );
}
}
}
try