Double quotes in GeneralCommandLine
Hi all, currently, I want to execute this command line mina test lc:lc-test --test-arguments '-m "evaluation test"' using GeneralCommandLine in IntelliJ, but GeneralCommandLine will execute it as mina test lc:lc-test --test-arguments '-m \"evaluation test\"', so how can I remove those backward slash in a GeneralCommandLine instance?
Thanks in advance!
Please sign in to leave a comment.
That depends on what is "mina" and what it does with its arguments and on what OS and shell it is.
In general, you use something like this:
new GeneralCommandLine("mina", "test", "lc:lc-test", "--test-arguments", "-m \"evaluation test\"")This should work exactly the same as running the command mina test ... '-m "evaluation test"' in Bash.
To debug, you may replace "mina" in aforementioned commands with a script which prints its arguments.