[
https://issues.jboss.org/browse/JBIDE-11127?page=com.atlassian.jira.plugi...
]
Max Rydahl Andersen commented on JBIDE-11127:
---------------------------------------------
A zip could also have more than one, and a zip could also not contain any (by error).
Thus I would say a better fix is to do as you say, unzip and if only one root directory
scan <installdir>/<rootdir> or if no root directory *then* scan all and if
more than one show the dialog.
If none found in either case that is an error too that should be reported to the user.
i.e. "No runtime/server found...."
After downloading a runtime all other runtimes in the install
locations are added
---------------------------------------------------------------------------------
Key: JBIDE-11127
URL:
https://issues.jboss.org/browse/JBIDE-11127
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: runtime detection
Affects Versions: 3.3.0.Beta1
Environment: jbdevstudio-product-universal-5.0.0.v201203010100M-H88-Beta1.jar
Reporter: Martin Malina
Assignee: Max Rydahl Andersen
Fix For: 3.3.0.Beta3
Attachments: jbide-11127.patch
When you Download and add a new runtime using Preferences -> JBoss Tools -> JBoss
Tools Runtime Detection -> Download it will install not only the newly downloaded
runtime but also all other runtimes in the parent directory. This shouldn't happen as
the user didn't ask for it.
Consider this scenario:
1. ~/runtimes contains a lot of runtimes
2. download as 7.1 and use the default install location ~/
3. when the downloading finishes not only as 7.1 will be added but also everything inside
~/runtimes
This probably happens because after the download JBT calls the search function in the
install dir ~/. To fix this issue it could just call the search on ~/$NEW_RUNTIME_DIR .
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira