Skip to content

Commit

Permalink
Add build.yml fix range cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko committed Mar 19, 2024
1 parent e6ad46c commit 8c87783
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public static WorkingBundleInfo processURL(final URL url, final boolean topLevel
public static List<ConnectorInfo> createConnectorInfo(
final Collection<WorkingBundleInfo> parsed, final ClassLoader bundleParentClassLoader)
throws ConfigurationException {
LOG.info("createConnectorInfo {0}",parsed);
final List<ConnectorInfo> rv = new ArrayList<ConnectorInfo>();
for (WorkingBundleInfo bundleInfo : parsed) {
final ClassLoader loader =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,19 @@ private static void resolveEffectiveProperties(List<? extends WorkingBundleInfo>
info.effectiveContents = contents;
}
}

@Override
public String toString() {
return "WorkingBundleInfo{" +
"originalLocation='" + originalLocation + '\'' +
", bundleManifest=" + bundleManifest +
", immediateBundleContents=" + immediateBundleContents +
", immediateClassPath=" + immediateClassPath +
", immediateNativeLibraries=" + immediateNativeLibraries +
", embeddedBundles=" + embeddedBundles +
", effectiveClassPath=" + effectiveClassPath +
", effectiveNativeLibraries=" + effectiveNativeLibraries +
", effectiveContents=" + effectiveContents +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,13 @@ public void addConnectorInfo(LocalConnectorInfoImpl connectorInfo) {
}

public void addConnectorBundle(Collection<URL> connectorBundleURLs) {
logger.info("add {0}",connectorBundleURLs);
final List<WorkingBundleInfo> workingInfo = new ArrayList<WorkingBundleInfo>();
for (URL url : connectorBundleURLs) {
WorkingBundleInfo info = null;
try {
if ("file".equals(url.getProtocol())) {
final File file = new File(url.toURI());
logger.info("file {0}",file);
if (file.isDirectory()) {
logger.info("isDirectory {0}",file);
info = processDirectory(file);
}
}
Expand All @@ -84,9 +81,10 @@ public void addConnectorBundle(Collection<URL> connectorBundleURLs) {
} catch (URISyntaxException e) {
throw new ConfigurationException("Invalid bundleURL: " + url.toExternalForm(), e);
}
logger.info("workingInfo {0}",info);
workingInfo.add(info);
}
logger.info("workingInfo {0}",workingInfo);
logger.info("connectorBundleParentClassLoader {0}",connectorBundleParentClassLoader);
WorkingBundleInfo.resolve(workingInfo);
for (ConnectorInfo connectorInfo : createConnectorInfo(workingInfo,
connectorBundleParentClassLoader)) {
Expand Down

0 comments on commit 8c87783

Please sign in to comment.