#1165: fix eclipse automatic project import - #2323
#1165: fix eclipse automatic project import#2323Ali-Shariati-Najafabadi wants to merge 3 commits into
Conversation
Coverage Report for CI Build 31711941828Warning No base build found for commit Coverage: 72.916%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats💛 - Coveralls |
Hiepiscus
left a comment
There was a problem hiding this comment.
@Ali-Shariati-Najafabadi Thanks for the PR. I followed the test instructions using a local repository configuration with import=eclipse.
During the setup, I got the following Eclipse error dialog:

After closing the dialog, the setup continued and eventually reported: Successfully ended step 'Setup of repository test-eclipse'.
I am not sure whether this is related to the changes in this PR or to my local Eclipse setup, but I wanted to mention it as part of my testing. I also did not see the Eclipse IDE window being launched during the import.
hohwille
left a comment
There was a problem hiding this comment.
@Ali-Shariati-Najafabadi I never took the time to analyse what was going wrong here but your PR now opened my eyes and all seems to make sense. Great that you were able to trace this down and make this work again. 👍
I have one remark that should be addressed, then we can merge.
Thanks for testing! Good news: the actual #1165 bug is fixed and no GUI popup, import finished fine. |
|
I reviewed the .metadata log file and found that the |

This PR fixes #1165
Implemented changes:
importRepositoryso-application/-buildfilecome before-vmargs. Everything after-vmargsis forwarded to the JVM instead of being parsed by eclipse itself, so-application org.eclipse.ant.core.antRunnerwas never seen by eclipse and it silently fell back to launching the normal GUI instead of running the headless ant import.-DrepositoryImportPath=...buteclipse-import.groovyread it back viaantProperties.get("devonImportPath")(leftover from an incomplete rename), so the import path was never picked up.Testing instructions
import=eclipsein your settings repository (see repository.adoc).ide create <project> <settings-git-url>(oride repositoryon an existing project).mvn -Dtest=EclipseTest testin theclimodule, which covers the fix withEclipseTest#testImportRepository.Checklist for this PR
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.batand notfeature/921 fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internalpom.xmlfiles or otherwise if runtime dependencies changed, you have updated our LICENSE.asciidoc