Package org.eclipse.jgit.pgm
Class Version
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Version
-
class Version extends TextBuiltin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
getBundleVersion()
private static java.lang.String
getBundleVersion(java.net.URL url)
private java.lang.String
getImplementationVersion()
protected boolean
requiresRepository()
If this command requires a repository.protected void
run()
Perform the actions of this command.-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, resolve, setCommandName
-
-
-
-
Method Detail
-
run
protected void run()
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in classTextBuiltin
-
requiresRepository
protected final boolean requiresRepository()
If this command requires a repository.- Overrides:
requiresRepository
in classTextBuiltin
- Returns:
- true if
TextBuiltin.db
/TextBuiltin.getRepository()
is required
-
getImplementationVersion
private java.lang.String getImplementationVersion()
-
getBundleVersion
private java.lang.String getBundleVersion()
-
getBundleVersion
private static java.lang.String getBundleVersion(java.net.URL url)
-
-