Class BazaarConfig
- java.lang.Object
-
- org.apache.maven.scm.provider.bazaar.BazaarConfig
-
public class BazaarConfig extends java.lang.Object
Check bazaar installation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
BazaarConfig.PythonConsumer
private static class
BazaarConfig.VersionConsumer
Get version of the executable.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BAZAAR_INSTALL_URL
private static float
BAZAAR_REQ
private static java.lang.String
BAZAAR_VERSION_TAG
private BazaarConfig.VersionConsumer
bazaarVersion
private boolean
cCrypt
private static java.lang.String
CCRYPT
private static java.lang.String
CELEMENTREE
private boolean
cElementTree
private boolean
paramiko
private static java.lang.String
PARAMIKO
private static java.lang.String
PYTHON_EXEC
private static float
PYTHON_REQ
private static java.lang.String
PYTHON_VERSION
private static java.lang.String
PYTHON_VERSION_TAG
private BazaarConfig.VersionConsumer
pythonVersion
-
Constructor Summary
Constructors Constructor Description BazaarConfig(java.io.File workingDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static org.codehaus.plexus.util.cli.Commandline
buildPythonCmd(java.io.File workingDir, java.lang.String[] cmdAndArgs)
private boolean
checkPyModules(java.io.File workingDir, java.lang.String cmd)
static BazaarConfig.VersionConsumer
getBazaarVersion(java.io.File workingDir)
private java.lang.String
getInstalledStr()
static BazaarConfig.VersionConsumer
getPythonVersion(java.io.File workingDir)
private boolean
isComplete()
private boolean
isInstalled()
java.lang.String
toString(java.io.File workingDir)
-
-
-
Field Detail
-
BAZAAR_REQ
private static final float BAZAAR_REQ
- See Also:
- Constant Field Values
-
PYTHON_REQ
private static final float PYTHON_REQ
- See Also:
- Constant Field Values
-
BAZAAR_VERSION_TAG
private static final java.lang.String BAZAAR_VERSION_TAG
- See Also:
- Constant Field Values
-
BAZAAR_INSTALL_URL
private static final java.lang.String BAZAAR_INSTALL_URL
- See Also:
- Constant Field Values
-
PYTHON_EXEC
private static final java.lang.String PYTHON_EXEC
- See Also:
- Constant Field Values
-
PYTHON_VERSION
private static final java.lang.String PYTHON_VERSION
- See Also:
- Constant Field Values
-
PYTHON_VERSION_TAG
private static final java.lang.String PYTHON_VERSION_TAG
- See Also:
- Constant Field Values
-
PARAMIKO
private static final java.lang.String PARAMIKO
- See Also:
- Constant Field Values
-
CCRYPT
private static final java.lang.String CCRYPT
- See Also:
- Constant Field Values
-
CELEMENTREE
private static final java.lang.String CELEMENTREE
- See Also:
- Constant Field Values
-
bazaarVersion
private BazaarConfig.VersionConsumer bazaarVersion
-
pythonVersion
private BazaarConfig.VersionConsumer pythonVersion
-
cElementTree
private boolean cElementTree
-
paramiko
private boolean paramiko
-
cCrypt
private boolean cCrypt
-
-
Method Detail
-
checkPyModules
private boolean checkPyModules(java.io.File workingDir, java.lang.String cmd)
-
isInstalled
private boolean isInstalled()
- Returns:
- True if one can run basic bazaar commands
-
isComplete
private boolean isComplete()
- Returns:
- True if all modules for bazaar are installed.
-
getBazaarVersion
public static BazaarConfig.VersionConsumer getBazaarVersion(java.io.File workingDir) throws ScmException
- Throws:
ScmException
-
getPythonVersion
public static BazaarConfig.VersionConsumer getPythonVersion(java.io.File workingDir) throws ScmException
- Throws:
ScmException
-
buildPythonCmd
private static org.codehaus.plexus.util.cli.Commandline buildPythonCmd(java.io.File workingDir, java.lang.String[] cmdAndArgs) throws ScmException
- Throws:
ScmException
-
getInstalledStr
private java.lang.String getInstalledStr()
-
toString
public java.lang.String toString(java.io.File workingDir)
-
-