String context = line.substring(contextStart, contextEnd);
if (messageCode == ENTITY_INVALID)
{
// emit the erroneous text along with the message
report.message(messageCode, new MessageLocation(entry, lineCounter, matcher.start(), context.trim()), matchedText);
}
else
{
report.message(messageCode, new MessageLocation(entry, lineCounter, matcher.start(), context.trim()));
}
}
lineCounter++;
}
}
catch (FileNotFoundException e1)
{
String fileName = new File(zip.getName()).getName();
report.message(MessageId.RSC_001, new MessageLocation(fileName, -1, -1), entry);
}
catch (IOException e1)
{
String fileName = new File(zip.getName()).getName();
report.message(MessageId.PKG_008, new MessageLocation(fileName, -1, -1), entry);
}
catch (Exception e)
{
e.printStackTrace();
report.message(MessageId.RSC_005, new MessageLocation(entry, -1, -1), e.getMessage());
}
finally
{
if (is != null)
{