Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic project import for Eclipse #1165

Open
hohwille opened this issue Mar 25, 2025 · 0 comments
Open

Automatic project import for Eclipse #1165

hohwille opened this issue Mar 25, 2025 · 0 comments
Labels
eclipse related to Eclipse IDE enhancement New feature or request repository Commandlet to clone, build or import git repositories

Comments

@hohwille
Copy link
Member

hohwille commented Mar 25, 2025

Expected behavior

As a IDEasy user, I want eclipse git repository project imports to happen automatically in the background so that I do not get disturbed and everything is automated without the need for me to interact.

Hint: via repository configuration and by setting import=eclipse this feature can be triggered.

Actual behavior

The automated project import seems to launch Eclipse GUI and IDEasy waits for the process to terminate what requires me to close the GUI.
Also the actual import does not seem to do anything instead of opening the Eclipse GUI.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

  1. ide create mmm https://github.com/m-m-m/settings.git

Related/Dependent Issues

Comments/Hints:

  • Project import is now implemented in IDEasy in the same way it was done in devonfw-ide but it seems that something was done wrong in IDEasy or it was always fragile/buggy and needs rework.

Links into the code:

public void importRepository(Path repositoryPath) {
if (!this.groovyInstalled) {
Mvn maven = this.context.getCommandletManager().getCommandlet(Mvn.class);
MvnArtifact groovyAnt = new MvnArtifact("org.codehaus.groovy", "groovy-ant", GROOVY_VERSION);
maven.getOrDownloadArtifact(groovyAnt);
this.groovyInstalled = true;
}
// -DdevonImportPath=\"${import_path}\" -DdevonImportWorkingSet=\"${importWorkingSets}\""
runTool(ProcessMode.DEFAULT, null, ProcessErrorHandling.THROW_CLI, VMARGS,
"-DrepositoryImportPath=\"" + repositoryPath + "\" -DrepositoryImportWorkingSet=\"" + "" + "\"", "-application", "org.eclipse.ant.core.antRunner",
"-buildfile", this.context.getIdeInstallationPath().resolve(IdeContext.FOLDER_INTERNAL).resolve("eclipse-import.xml").toString());
}

See also https://github.com/devonfw/IDEasy/tree/main/cli/src/main/package/internal

Affected version:

  • 2025.03.002-SNAPSHOT

See #1006

@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Mar 25, 2025
@hohwille hohwille changed the title Eclipse Automatic project import for Eclipse Mar 25, 2025
@hohwille hohwille added repository Commandlet to clone, build or import git repositories enhancement New feature or request eclipse related to Eclipse IDE labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eclipse related to Eclipse IDE enhancement New feature or request repository Commandlet to clone, build or import git repositories
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant