/** * Initializes {@link ParsableFile parseable files} according to the current environment. * * @param packInfo the pack info fpor the current pack * @param parsables used to collect the read objects */ protected void readParsableFiles(PackInfo packInfo, List<ParsableFile> parsables) { for (ParsableFile parsableFile : packInfo.getParsables()) { logger.fine("Unpacked parsable: " + parsableFile.toString()); if (!parsableFile.hasCondition() || isConditionTrue(parsableFile.getCondition())) { String path = IoHelper.translatePath(parsableFile.getPath(), variables); parsableFile.setPath(path); parsables.add(parsableFile); } } }