We're missing the ability to provide a context dir within a git repo when importing an application from OpenShift. The application wizard allows the user to set a context dir, which is used when importing right after the successfull creation. The (standalone) import is lacking this.
steps to reproduce:
- EXEC: launch openshift application wizard and pick "eap64-basic-s2i"
- ASSERT: in the next page make sure there is "kitchensink" set to the CONTEXT_DIR template parameter
- ASSERT: in the parameters, make sure that the SOURCE_REPOSITORY_REF is set to "6.4.x"
- EXEC: finish the wizard and once the resources are created, simply confirm the import dialog that pops up
- ASSERT: you get a "jboss-kitchensink" in your workspace. The import actually cloned the whole repo "jboss-eap-quickstarts" and imported the project within the "kitchensink" (the CONTEXT_DIR) folder as a workspace project
- EXEC: switch the branch in the git repo that already exists (ex. switch to master)
- EXEC: in OpenShift Explorer: kill your workspace project, select the "eap-app" service and choose "Import Application" in the context-menu.
- EXEC: in the upcoming import wizard, check "reuse existing repository" and then hit "Finish"
You get a project "jboss-eap-quickstart".
There was no way to provide a context dir. To get the kitchensink project you need to remove the jboss-eap-quickstart" project, checkout the correct branch and reimport "kitchensink" (kitchensink only exists in the 6.4.x branch, not in the 7.x branches) manually as an existing maven project.