// If the matchString already starts with "." (e.g. ".as" or ".mxml"), then dotMatchString
// will be equal to matchString; otherwise, dotMatchString will be "." + matchString
String dotMatchString = (matchString.startsWith(".")) ? matchString : ("." + matchString); //$NON-NLS-1$ //$NON-NLS-2$
for (int i = 0; i < n; i++)
{
SourceFile sourceFile = files[i];
boolean pathExists = (usePath && sourceFile.getFullPath().matches(".*[/\\\\].*")); //$NON-NLS-1$
String name = pathExists ? sourceFile.getFullPath() : sourceFile.getName();
// if we are using the full path string, then prefix a '.' to our matching string so that abc.as and Gabc.as don't both hit
String match = (usePath && pathExists) ? dotMatchString : matchString;
match = match.replace('/', '.'); // get rid of path identifiers and use dots