Class BazaarConfig
- java.lang.Object
-
- org.apache.maven.scm.provider.bazaar.BazaarConfig
-
public class BazaarConfig extends java.lang.ObjectCheck bazaar installation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBazaarConfig.PythonConsumerprivate static classBazaarConfig.VersionConsumerGet version of the executable.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringBAZAAR_INSTALL_URLprivate static floatBAZAAR_REQprivate static java.lang.StringBAZAAR_VERSION_TAGprivate BazaarConfig.VersionConsumerbazaarVersionprivate booleancCryptprivate static java.lang.StringCCRYPTprivate static java.lang.StringCELEMENTREEprivate booleancElementTreeprivate booleanparamikoprivate static java.lang.StringPARAMIKOprivate static java.lang.StringPYTHON_EXECprivate static floatPYTHON_REQprivate static java.lang.StringPYTHON_VERSIONprivate static java.lang.StringPYTHON_VERSION_TAGprivate BazaarConfig.VersionConsumerpythonVersion
-
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.CommandlinebuildPythonCmd(java.io.File workingDir, java.lang.String[] cmdAndArgs)private booleancheckPyModules(java.io.File workingDir, java.lang.String cmd)static BazaarConfig.VersionConsumergetBazaarVersion(java.io.File workingDir)private java.lang.StringgetInstalledStr()static BazaarConfig.VersionConsumergetPythonVersion(java.io.File workingDir)private booleanisComplete()private booleanisInstalled()java.lang.StringtoString(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)
-
-