private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private boolean isMigrationAvailable() { return Arrays.stream(flyway.getConfiguration().getLocations()) .anyMatch(l-> { if (l.isClassPath()) { return Thread.currentThread().getContextClassLoader().getResource(l.getPath()) != null; } else if (l.isFileSystem()){ return Files.exists(Paths.get(l.getPath())); } else throw new UnreachableException(); }); }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }
private String[] convertLocationToString(Flyway flyWay) { Location[] locations = flyWay.getConfiguration().getLocations(); String [] stringLocations = new String[locations.length]; for (int i = 0; i < locations.length; i++) { stringLocations[i] = locations[i].getDescriptor(); } return stringLocations; }