| Summary: | rhq-ant.cmd command script is not compatible with Windows | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Larry O'Leary <loleary> |
| Component: | Launch Scripts | Assignee: | John Mazzitelli <mazz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.0.0 | CC: | skondkar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Windows | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
Windows 7 64-bit
rhq-ant-bundle-common-3.0.0.GA
|
|
| Last Closed: | 2013-09-02 07:23:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Attachments: | |||
|
Description
Larry O'Leary
2011-01-24 20:07:27 UTC
To resolve this issue: cd modules/common/ant-bundle/src/main/assembly/bin Download ant.bat: wget https://svn.apache.org/repos/asf/gump/trunk/test/fixture/packages/ant-1.6.2/bin/ant.bat Rename: mv ant.bat rhq-ant.bat Remove other OS/2 scripts: rm antenv.cmd envset.cmd rhq-ant.cmd runrc.cmd Created attachment 475045 [details]
Patch diff to remove unneeded files and add missing file
rhq-ant.bat also needs to be modified to call the RHQ Ant main class rather the standard Ant main class, and perhaps other changes (the equivalent of whatever changes were made to the rhq-ant shell script). Created attachment 475091 [details] Patch diff to remove unneeded files and add missing file with RHQ specific updates Based on comment 3, I have updated the patch to include the RHQ specific changes to ant.bat. The changes are noted in the attachment but essentially the only thing that seems to have been necessary from the ant -> rhq-ant version of the script in the Windows world is: ANT_HOME environment variable changed to RHQ_ANT_HOME User specific pre and post configuration scripts for ANT are pulled from .rhq/rhq-antrc-pre.bat and .rhq/rhq-antrc-post.bat instead of their default of antrc-pre.bat and antrc-post.bat located in the user's home directory. The -main ANT argument is now referencing org.rhq.bundle.ant.AntMain The only noticable difference between the rhq-ant and rhq-ant.bat scripts is the order of the JARs loaded from the lib directory. This can be seen by running rhq-ant -diagnostics. Created attachment 478269 [details]
rhq-ant-bat based on Ant 1.8.0 ant.bat
the bundle deployer tool utilizes Ant 1.8.0, not 1.6.2. Therefore the attached patch version of rhq-ant.bat is not fully correct. I will attach rhq-ant.bat that is based off of ant 1.8.0
this is done. note that the attended rhq-ant.bat based on 1.8 was not fully correct - missed two additional places where the -main argument needed to be passed in. I checked in the fully corrected script and I tested on WinXP and and it worked fine. commits: d3799e2f59f40845bdf2da3898d347ae4e795cdd 5a7f6fb357fab1abfdfe1d40735596e1f7ad5baf last comment: "attended" should have been "attached" Verified on build 135 (Version: 4.1.0-SNAPSHOT Build Number: 925b384) Downloaded and extracted the rhq-bundle-deployer-4.1.0-SNAPSHOT.zip to windows box. Verified that the bin directory has file 'rhq-ant.bat'. Copied deploy.xml and bundle files to the bin directory of the bundle deployer tool and deployed the bundle successfully. Marking as verified. Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago. |