Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using CommandLineAdapters

Hi,

I have been playing with the sample CommandLineAdapter that comes with RQM, and have to say I'm not that impressed.

As it uses Runtime.exec(), which isn't a shell, so we can't do any variable replacement and command concatenation (using ; or && for instance).
Runtime.exec() also has many well publicised faults, mainly with it's handling of quotes etc.

I have managed to get around these first stumbling blocks by modifying the java to write out the command line to a temporary file, and execute that with a shell, leaving the Runtime.exec() method to only have "sh script.sh" in it's argument.


How are others using the commandLineAdapter ? Have you created your own version based on the sample one, or does that one suffice for everybody else?

Has anyone else created a SSH adapter (on the server side), so that a java adpater is not required on the client machine, or is this integral to the way that RQM can automate the running of tests, and hence a non-starter from the outset?

I would be interested to hear how others have solved the problem of working this way when there are a lot of automated jobs to run through RQM

thanks in advance,
-Andy

0 votes



One answer

Permanent link
Note: This post is 4+ years old.

Please upgrade to the latest version of RQM (see https://jazz.net/downloads/rational-quality-manager/) and review the product documentation (see https://jazz.net/help-dev/clm/topic/com.ibm.help.common.jazz.calm.doc/com.ibm.help.common.jazz.calm.doc_eclipse-gentopic1.html) and jazz.net resources (see https://jazz.net/help).  If your issue persists, please ask a new question (https://jazz.net/forum/questions/ask), open a defect (see https://jazz.net/mystuff/#tab=workitems), or open a PMR (see http://www-01.ibm.com/support/docview.wss?uid=swg21507639).

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 05 '10, 6:32 a.m.

Question was seen: 5,486 times

Last updated: May 27 '15, 7:31 a.m.

Confirmation Cancel Confirm