Prompt for passwords from the console in jgit command line tools
commit7e8dc53881a4f7babbab9cd9979a49edb7ad03f1
authorShawn O. Pearce <spearce@spearce.org>
Sun, 1 Nov 2009 02:39:18 +0000 (31 19:39 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 3 Nov 2009 01:55:55 +0000 (2 17:55 -0800)
tree454ee570ae7863ac3f48ecf7cc3aa2052dc3806f
parent27a497f83e683d384d379ee75570f8c25a7aa624
Prompt for passwords from the console in jgit command line tools

If we are on a Java 6 JVM we should have the Console class available,
unless the user has redirected /dev/null to stdin.  When there is a
console present we would prefer to use that for command line prompts
as that is what the user expects from a command line tool.

Change-Id: Ibaf87bb5540371d94d96d1b7e94ca002f752e5bd
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
17 files changed:
org.eclipse.jgit.console/.classpath [new file with mode: 0644]
org.eclipse.jgit.console/.gitignore [new file with mode: 0644]
org.eclipse.jgit.console/.project [new file with mode: 0644]
org.eclipse.jgit.console/.settings/org.eclipse.core.resources.prefs [new file with mode: 0644]
org.eclipse.jgit.console/.settings/org.eclipse.core.runtime.prefs [new file with mode: 0644]
org.eclipse.jgit.console/.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
org.eclipse.jgit.console/.settings/org.eclipse.jdt.ui.prefs [new file with mode: 0644]
org.eclipse.jgit.console/.settings/org.eclipse.pde.core.prefs [new file with mode: 0644]
org.eclipse.jgit.console/META-INF/MANIFEST.MF [new file with mode: 0644]
org.eclipse.jgit.console/build.properties [new file with mode: 0644]
org.eclipse.jgit.console/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.console/pom.xml [new file with mode: 0644]
org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleAuthenticator.java [new file with mode: 0644]
org.eclipse.jgit.console/src/org/eclipse/jgit/console/ConsoleSshSessionFactory.java [new file with mode: 0644]
org.eclipse.jgit.pgm/pom.xml
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java
pom.xml