Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce2009-11-01 02:39:18 +0000
committerShawn O. Pearce2009-11-03 01:55:55 +0000
commit7e8dc53881a4f7babbab9cd9979a49edb7ad03f1 (patch)
tree454ee570ae7863ac3f48ecf7cc3aa2052dc3806f /pom.xml
parent27a497f83e683d384d379ee75570f8c25a7aa624 (diff)
downloadjgit-7e8dc53881a4f7babbab9cd9979a49edb7ad03f1.tar.gz
jgit-7e8dc53881a4f7babbab9cd9979a49edb7ad03f1.tar.xz
jgit-7e8dc53881a4f7babbab9cd9979a49edb7ad03f1.zip
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>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index e144f492d9..974b58f93a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -231,6 +231,21 @@
</snapshotRepository>
</distributionManagement>
+ <profiles>
+ <!-- Set -Djgit.java6.skip=true to compile with only Java 5 -->
+ <profile>
+ <id>java6</id>
+ <activation>
+ <property>
+ <name>!jgit.java6.skip</name>
+ </property>
+ </activation>
+ <modules>
+ <module>org.eclipse.jgit.console</module>
+ </modules>
+ </profile>
+ </profiles>
+
<modules>
<module>org.eclipse.jgit</module>
<module>org.eclipse.jgit.ui</module>

Back to the top