|
|
|
|
|
|
|
|
|
Re: InternalException: combination of --all and --only not allowed [message #1692769 is a reply to message #1422014] |
Fri, 17 April 2015 19:52 |
René Jansen Messages: 7 Registered: September 2014 |
Junior Member |
|
|
We are in a POC so I had to resolve this. Let me explain what happened. As the jgit.sh script had to be uploaded in binary, I had to split off the script part and run with the jar. Otherwise, the script part would have been translated to EBCDIC (good) but the jar file behind it also (bad).
The problem I had with the arguments were caused by the argument array being split up over spaces. I tested with comments of at least two words, as I am used to. This failed, with the mentioned exception, on all platforms except windows.
After some thorough but tiresome debugging, it turned out that args4j exactly does what is needed. It was the shell script that I started jgit with, that dropped the ball, on every Unix I tried it on, including z/OS.
Some wise comment googled stated you should not start java classes with scripts on Unix. I now start it with an alias defined in my .profile:
alias jgit="java org.eclipse.jgit.pgm.Main"
All is well, and two-word comments are working now, and do not complain about --only and -all. The next issue is jgit diff, which yields garbage on z/OS instead of patches. I'll make a separate posting.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03811 seconds