Bug 1063253
| Summary: | Installer - cannot use relative path in console installation if target directory doesn't exist | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Petr Kremensky <pkremens> |
| Component: | Installer | Assignee: | Miles Tjandrawidjaja <mtjandra> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
| Severity: | medium | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.3.0 | CC: | mtjandra, thauser |
| Target Milestone: | ER5 | ||
| Target Release: | EAP 6.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-28 15:40:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Petr Kremensky
2014-02-10 11:26:54 UTC
You should now be able to create an installation based on your relative path. Relative base path depends on what directory you're in when your run the jar. Ex. $ pwd -> /home/here $ java -jar this/installer.jar Then use "eap" as target directory Installation will be located in /home/here/eap Rather than /home/here/this/eap This should work on both linux and windows. http://git.app.eng.bos.redhat.com/izpack.git/commit/?h=izpack-wip&id=0942776e15a3b6b737be51aff8e6b257e7e8106b A few more commits were added after this to account backslashes and window specific things. Miles, I found the source of validation problems. It matter where is the installation started from. 1) starting from some inner directory (W:\test) -> I can use relative path as expected 2) starting from drive root gives me validation error: Validation error:: Please do not use a path that contains special characters such as (; | [ ] :) or multiple consecutive spaces, as this may cause problems for some installed components. The same applies for BZ1035866. If I run the installation script from drive root (W:\) installation fails, but running the same script from some inner directory (eg. W:\test) works fine. Some strange behaviour in case 2), I get validation error, but than I am able to go on without any changes W:\>java -jar jboss-eap-6.3.0.ER4-installer.jar -console ... Select the installation path: [C:\Users\Administrator\EAP-6.3.0] test\eap press 1 to continue, 2 to quit, 3 to redisplay. 1 Validation error:: Please do not use a path that contains special characters such as (; | [ ] :) or multiple consecutive spaces, as this may cause problems for some installed components. Select the installation path: [W:\\test\eap\] <PRESS ENTER HERE> press 1 to continue, 2 to quit, 3 to redisplay. 1 Select the packs you want to install: ... Relative paths issue should now be fixed. Issue was that the paths were not being normalized. https://code.engineering.redhat.com/gerrit/gitweb?p=izpack.git;a=commit;h=4c86693618afb49078b229237e33c34ad1ee0051 Verified on EAP 6.3.0.ER5 installer. |