Compare commits
No commits in common. "66b46259b20001e24092a91e5ff365598cbb0256" and "3107c62627b1853b61926fcb9f003f47fd9f24f3" have entirely different histories.
66b46259b2
...
3107c62627
@ -68,7 +68,7 @@ public class ExportApisToWso2FromV32 extends AbstractProcess {
|
|||||||
int maxThreads = config.getMaxThreads();
|
int maxThreads = config.getMaxThreads();
|
||||||
//ExecutorService executor = Executors.newFixedThreadPool(maxThreads);
|
//ExecutorService executor = Executors.newFixedThreadPool(maxThreads);
|
||||||
|
|
||||||
int skipCount = 9;
|
int skipCount = 0;
|
||||||
|
|
||||||
for (SearchedArtifact api : sortedArtifacts) {
|
for (SearchedArtifact api : sortedArtifacts) {
|
||||||
final int index = apiCounter.getAndIncrement();
|
final int index = apiCounter.getAndIncrement();
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package cz.trask.migration.mapper;
|
package cz.trask.migration.mapper;
|
||||||
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -184,17 +183,6 @@ public class ApiDefinitionMapper32to45 {
|
|||||||
endpointProd.remove("config");
|
endpointProd.remove("config");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (endpointProd != null && endpointProd.containsKey("url") && endpointProd.get("url") != null) {
|
|
||||||
String url = endpointProd.get("url").toString();
|
|
||||||
try {
|
|
||||||
URL u = new URL(url);
|
|
||||||
} catch (Exception e) {
|
|
||||||
url = url.replaceAll("\\{\\{.*?\\}\\}", "");
|
|
||||||
if (!url.startsWith("http"))
|
|
||||||
url = "http://" + url;
|
|
||||||
endpointProd.put("url", url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endpointConfig.get("sandbox_endpoints") != null && (endpointConfig.get("sandbox_endpoints") instanceof Map)) {
|
if (endpointConfig.get("sandbox_endpoints") != null && (endpointConfig.get("sandbox_endpoints") instanceof Map)) {
|
||||||
@ -205,17 +193,6 @@ public class ApiDefinitionMapper32to45 {
|
|||||||
endpointSand.remove("config");
|
endpointSand.remove("config");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (endpointSand != null && endpointSand.containsKey("url") && endpointSand.get("url") != null) {
|
|
||||||
String url = endpointSand.get("url").toString();
|
|
||||||
try {
|
|
||||||
URL u = new URL(url);
|
|
||||||
} catch (Exception e) {
|
|
||||||
url = url.replaceAll("\\{\\{.*?\\}\\}", "");
|
|
||||||
if (!url.startsWith("http"))
|
|
||||||
url = "http://" + url;
|
|
||||||
endpointSand.put("url", url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endpointConfig.get("endpoint_security") != null && (endpointConfig.get("endpoint_security") instanceof Map)) {
|
if (endpointConfig.get("endpoint_security") != null && (endpointConfig.get("endpoint_security") instanceof Map)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user