Skip to content

Commit

Permalink
Adapt to latest PDE changes + use latest update site
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Dec 10, 2023
1 parent b687f13 commit b9e70e0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(env.BRANCH_NAME == deployBranch) {

pipeline {
options {
timeout(time: 180, unit: 'MINUTES')
timeout(time: 240, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds(abortPrevious: true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public interface TychoConstants {

public static final String ECLIPSE_LATEST = "https://download.eclipse.org/releases/2023-09/";
public static final String ECLIPSE_LATEST = "https://download.eclipse.org/releases/2023-12/";

static final String ANY_QUALIFIER = "qualifier";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@
import org.eclipse.pde.internal.core.XMLDefaultHandler;
import org.eclipse.pde.internal.core.builders.SchemaTransformer;
import org.eclipse.pde.internal.core.ischema.ISchema;
import org.eclipse.pde.internal.core.ischema.ISchemaDescriptor;
import org.eclipse.pde.internal.core.ischema.ISchemaInclude;
import org.eclipse.pde.internal.core.plugin.ExternalFragmentModel;
import org.eclipse.pde.internal.core.plugin.ExternalPluginModel;
import org.eclipse.pde.internal.core.plugin.ExternalPluginModelBase;
import org.eclipse.pde.internal.core.schema.PathSchemaProvider;
import org.eclipse.pde.internal.core.schema.Schema;
import org.eclipse.pde.internal.core.schema.SchemaDescriptor;
import org.eclipse.pde.internal.core.schema.SchemaProvider;
import org.eclipse.pde.internal.core.util.HeaderMap;
import org.osgi.framework.Constants;

Expand Down Expand Up @@ -100,14 +103,23 @@ public ConvertSchemaToHtmlResult call() throws Exception {
.parse(schemaFile, handler);
@SuppressWarnings("deprecation")
URL url = schemaFile.toURL();
SchemaDescriptor desc = new SchemaDescriptor(extPoint.getFullId(), url,
PathSchemaProvider pathSchemaProvider = new PathSchemaProvider(
additionalSearchPaths.stream().map(pathString -> {
IPath path = IPath.fromOSString(pathString);
if (!path.isAbsolute()) {
return IPath.fromOSString(baseDir.getPath()).append(path);
}
return path;
}).toList());
SchemaDescriptor desc = new SchemaDescriptor(extPoint.getFullId(), url, new SchemaProvider() {

@Override
public ISchema createSchema(ISchemaDescriptor descriptor, String location) {
// TODO if the path return null we should search inside the bundle target
// platform for the schema!
return pathSchemaProvider.createSchema(descriptor, schemaLocation);
}
});
schema = (Schema) desc.getSchema(false);

// Check that all included schemas are available
Expand Down

0 comments on commit b9e70e0

Please sign in to comment.