[
https://jira.jboss.org/jira/browse/TEIID-230?page=com.atlassian.jira.plug...
]
Ramesh Reddy resolved TEIID-230.
--------------------------------
Resolution: Done
In the admin shell, when executing in the "script mode" you can pass in
parameters from the command line, and they can be accessed in your script by
"bsh.args" value.
For example if this below line executed
mmadmin myscript.bsh param1 param2 param3
then inside the myscript.bsh file, the script developer can access the parameters as
for(String arg:bsh.args) {
print(arg);
}
Add Reading the Command line parameter support for mmadmin
----------------------------------------------------------
Key: TEIID-230
URL:
https://jira.jboss.org/jira/browse/TEIID-230
Project: Teiid
Issue Type: Feature Request
Components: Tools
Affects Versions: 6.0.0
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
Priority: Minor
Fix For: 6.1.0
Original Estimate: 2 hours
Remaining Estimate: 2 hours
Currently there is no way to pass in command line parameters to the MMAdmin while
executing a script other than script name it self. You could add "-D" parameter
through script manipulation, however there is no easier way.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira