Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Errors compiling jgit(master)

2010/8/17 Chris Aniszczyk <caniszczyk@xxxxxxxxx>
On Mon, Aug 16, 2010 at 7:35 PM, Ketan Padegaonkar
<ketanpadegaonkar@xxxxxxxxx> wrote:
> Hey JGit team,
>
> I was trying to get my hands dirty building a git based browser using
> jruby+jgit. I got compiler errors when building jgit on java 1.5.
>
> The contribution guide mentions that jgit needs java 1.5 to build, which
> clearly does not seem to be the case according to the error message.
>
> The compile goes ahead when I switch to java 1.6. But I think this is
> something you might want to fix in the build scripts or the contribution
> guide.

Maybe Shawn can shed some light on this but jgit.console's
Bundle-RequiredExecutionEnvironment is JavaSE-1.6 indicating that it
requires 1.6... jgit itself will run on 1.5+

Yes, that's correct, org.eclipse.jgit.console is an optional bundle used by 
org.eclipse.jgit.pgm which in case it is available installs a java.io.Console 
based authenticator  to prompt the user for a password. java.io.Console
is available only since java 1.6. When org.eclipse.jgit.console is not around
instead an AWT based authenticator is installed by org.eclipse.jgit.pgm.

So in a nutshell password prompt from pgm is popping up an AWT dialog
when running on Java 1.5, while on Java 1.6 this is possible directly
from the console.

--
Matthias

Back to the top