private void buildParsedClasspath(String inCurrentLine) { final String FROM_SPACE = "from "; String originalLocation = null; int fromSpacePos = inCurrentLine.indexOf(FROM_SPACE); if (fromSpacePos != -1) { originalLocation = inCurrentLine.substring(fromSpacePos + FROM_SPACE.length(), inCurrentLine.length() - 1); } if (originalLocation != null && originalLocation.startsWith(S_FILE_COLON)) { originalLocation = originalLocation.substring(S_FILE_COLON.length()); try { originalLocation = URLDecoder.decode(originalLocation, "UTF-8"); } catch (UnsupportedEncodingException e) { // ignore } getParsedClasspath().addClassLocation(originalLocation); } }
public List<String> getAllClassLocations() { ParsedClasspath parsedClasspath = getParsedClasspath(); List<String> mergedClassLocations = new ArrayList<>(classLocations); for (String parsedLocation : parsedClasspath.getClassLocations()) { if (!mergedClassLocations.contains(parsedLocation)) { mergedClassLocations.add(parsedLocation); } } return mergedClassLocations; }
public List<String> getAllClassLocations() { ParsedClasspath parsedClasspath = getParsedClasspath(); List<String> mergedClassLocations = new ArrayList<>(classLocations); for (String parsedLocation : parsedClasspath.getClassLocations()) { if (!mergedClassLocations.contains(parsedLocation)) { mergedClassLocations.add(parsedLocation); } } return mergedClassLocations; }
private void buildParsedClasspath(String inCurrentLine) { final String FROM_SPACE = "from "; String originalLocation = null; int fromSpacePos = inCurrentLine.indexOf(FROM_SPACE); if (fromSpacePos != -1) { originalLocation = inCurrentLine.substring(fromSpacePos + FROM_SPACE.length(), inCurrentLine.length() - 1); } if (originalLocation != null && originalLocation.startsWith(S_FILE_COLON)) { originalLocation = originalLocation.substring(S_FILE_COLON.length()); try { originalLocation = URLDecoder.decode(originalLocation, "UTF-8"); } catch (UnsupportedEncodingException e) { // ignore } getParsedClasspath().addClassLocation(originalLocation); } }
List<String> parsedClassLocations = getParsedClasspath().getClassLocations(); for (String filename : getParsedClasspath().getClassLocations())
List<String> parsedClassLocations = getParsedClasspath().getClassLocations(); for (String filename : getParsedClasspath().getClassLocations())