[resolved] how to pass parameter values from command line [Java]
Ok, I've found the following topics/bugs that show how to do it in Perl, but how can I do it in Java?
316
634
1414
This topic shows how to add the values to the code in the .sh or .bat files, but I want to add it to the command line call for that .sh or .bat file
1616
Do I just call the file in the command window and put "--context_param parameter1=adsfakf" in the command line after the name of the .bat file?
Ex. C:\>BatchFile.bat "--context_param parameter1=adsfakf"
Also, when passing a parameter at the command line, do I need to check the Prompt checkbox for that parameter in the Contexts tab/view?
Java generated script was designed based on Perl generated script, as far as command line option are concerned. Conclusion : do it the same way. But don't do it in the *.bat call, but on the "java" call (look inside the *.bat file).
Thanks to fnoury request in 4258, you should soon be able to give --context_param key="value" to the *.bat file.
Java generated script was designed based on Perl generated script, as far as command line option are concerned. Conclusion : do it the same way. But don't do it in the *.bat call, but on the "java" call (look inside the *.bat file).
Thanks to fnoury request in 4258, you should soon be able to give --context_param key="value" to the *.bat file.