Skip to content

Commit

Permalink
devonfw/ide#1368: added updater for eclipse jee (devonfw#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattesMrzik authored Jan 16, 2024
1 parent f75bfa6 commit e82a1a0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected boolean doInstall(boolean silent) {
if (installedVersion == null) {
this.context.success("Successfully installed {} in version {}", this.tool, resolvedVersion);
} else {
this.context.success("Successfully installed {} in version {} replacing previous version {]", this.tool,
this.context.success("Successfully installed {} in version {} replacing previous version {}", this.tool,
resolvedVersion, installedVersion);
}
postInstall();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.devonfw.tools.ide.tool.eclipse;

/**
* {@link EclipseUrlUpdater} for "jee" (C++) edition of Eclipse.
*/
public class EclipseJeeUrlUpdater extends EclipseUrlUpdater {
@Override
protected String getEdition() {

return "jee";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected Pattern getVersionPattern() {
@Override
protected String mapVersion(String version) {

// TODO remove this hack and get versiosn from reliable API
// TODO remove this hack and get versions from reliable API
return super.mapVersion(version.replace(" ", "-"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.devonfw.tools.ide.tool.docker.DockerRancherDesktopUrlUpdater;
import com.devonfw.tools.ide.tool.dotnet.DotNetUrlUpdater;
import com.devonfw.tools.ide.tool.eclipse.EclipseCppUrlUpdater;
import com.devonfw.tools.ide.tool.eclipse.EclipseJeeUrlUpdater;
import com.devonfw.tools.ide.tool.eclipse.EclipseJavaUrlUpdater;
import com.devonfw.tools.ide.tool.gcloud.GCloudUrlUpdater;
import com.devonfw.tools.ide.tool.gcviewer.GcViewerUrlUpdater;
Expand Down Expand Up @@ -57,10 +58,11 @@ public class UpdateManager extends AbstractProcessorWithTimeout {
private final UrlRepository urlRepository;

private final List<AbstractUrlUpdater> updaters = Arrays.asList(new AndroidStudioUrlUpdater(), new AwsUrlUpdater(),
new AzureUrlUpdater(), new CobigenUrlUpdater(), new DockerDesktopUrlUpdater() , new DotNetUrlUpdater(), new EclipseCppUrlUpdater(),
new EclipseJavaUrlUpdater(), new GCloudUrlUpdater(), new GcViewerUrlUpdater(), new GhUrlUpdater(),
new GraalVmCommunityUpdater(), new GraalVmOracleUrlUpdater(), new GradleUrlUpdater(), new HelmUrlUpdater(), new IntellijUrlUpdater(),
new JavaUrlUpdater(), new JenkinsUrlUpdater(), new JmcUrlUpdater(), new KotlincUrlUpdater(), new KotlincNativeUrlUpdater(),
new AzureUrlUpdater(), new CobigenUrlUpdater(), new DockerDesktopUrlUpdater(), new DotNetUrlUpdater(),
new EclipseCppUrlUpdater(), new EclipseJeeUrlUpdater(), new EclipseJavaUrlUpdater(), new GCloudUrlUpdater(),
new GcViewerUrlUpdater(), new GhUrlUpdater(), new GraalVmCommunityUpdater(), new GraalVmOracleUrlUpdater(),
new GradleUrlUpdater(), new HelmUrlUpdater(), new IntellijUrlUpdater(), new JavaUrlUpdater(),
new JenkinsUrlUpdater(), new JmcUrlUpdater(), new KotlincUrlUpdater(), new KotlincNativeUrlUpdater(),
new LazyDockerUrlUpdater(), new MvnUrlUpdater(), new NodeUrlUpdater(), new NpmUrlUpdater(), new OcUrlUpdater(),
new PipUrlUpdater(), new PythonUrlUpdater(), new QuarkusUrlUpdater(), new DockerRancherDesktopUrlUpdater(),
new SonarUrlUpdater(), new TerraformUrlUpdater(), new TomcatUrlUpdater(), new VsCodeUrlUpdater());
Expand Down

0 comments on commit e82a1a0

Please sign in to comment.