Package com.ganteater.ae
Class AEWorkspace
java.lang.Object
com.ganteater.ae.AEWorkspace
- All Implemented Interfaces:
AEManager
- Direct Known Subclasses:
AEPluginWorkspace,DesktopWorkspace,WebWorkspace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCloseHook(Runnable shutdownHook) voidaddRunner(RecipeRunner testRunner) protected StringchoicePriorityRecipeFolder(String text, String[] possibleValues) choiceValue(String name, String description, Object[] possibleValues, ILogger log, boolean notifyMe, Processor processor) voidclose()booleanconfirmation(String name, String message, Processor unit, boolean notifyMe) protected RecipeRunnercreateTestRunner(String name) voidexecuteAnteaterMaven(File aeConfigFile, String action) protected PropertiesfillLogProperties(Node[] configNode) findAEconfigs(File path) protected Filevoidprotected Nodeprotected FilegetCurrentConfig(Node configs, String aNameConfiguration) getCustomConfPropFileName(String configurationName) getDefaultUserConfiguration(String aName, String theDefaultConfiguration) static AEWorkspacegetOperationsMethod(String name) getPomLocation(String confFileName, String aeDir) protected FileObject[]getTestPath(String name) String[]static Propertiesprotected String[]protected voidinitLogger(Node[] configNode) voidinitUserPreferencesEncryption(String password) inputChoice(String name, String description, String[] values, String defaultValue, Processor taskProcessor, boolean notifyMe) voidinputDataTable(Processor unit, Node aTableNode, boolean notifyMe) inputInteger(String name, String[] values, String defaultValue) String[]inputMultiChoice(String name, String[] values, String defaultValue, Processor taskProcessor) inputValue(String aName, String description, String aValue, ILogger log, String type, boolean notifyMe, Processor processor) booleanisConsoleDefaultInput(String varName, String description) voidloadConfiguration(boolean refreshTaskMap) loadConfiguration(String confName, boolean refreshTaskPath) voidprotected voidvoidprogressText(String name) voidprogressValue(int i, int length, boolean success) voidvoidremoveRunner(RecipeRunner testRunner) voidremoveTestPath(String name) voidvoidvoidprotected Fileprotected StringselectConfiguration(String[] configNames) selectConfiguration(String confName, Node configNodes, boolean refreshTaskPath) voidsetBaseDir(File baseDir) voidsetConfigurationName(String fConfigurationName) voidsetConsoleDefaultInput(boolean defaultMode) voidsetDefaultUserConfiguration(String propertyName, String value) voidsetOperationsClasses(Set<Class> operationsClasses) voidsetStartDir(File startDir) voidsetTestPath(String name, String path) voidstartTaskNotify(RecipeRunner task) voidtasksChoice(MultiTaskRunDialog dialog, String[] list, boolean exceptionIgnoreFlag, Object setup, Processor taskProcessor, boolean visible)
-
Field Details
-
CONFIGURATION_TAG_NAME
- See Also:
-
ENVIRONMENT_FILE_TITLE
- See Also:
-
MESSAGE_PASSWORD_REQUIRED
- See Also:
-
CONFIG_SUFIX_PROP_NAME
- See Also:
-
defaultMode
-
-
Constructor Details
-
AEWorkspace
public AEWorkspace() -
AEWorkspace
-
-
Method Details
-
loadConfiguration
-
getConfiguration
- Throws:
IOException
-
getConfigurationFile
-
findAlternativeConfiguration
-
selectConfiguration
-
getHomeWorkingDir
- Specified by:
getHomeWorkingDirin interfaceAEManager
-
choicePriorityRecipeFolder
-
runSetupNodes
- Throws:
Exception
-
loadCustomProperties
-
getPreferencesFile
-
getCustomConfPropFileName
-
getHomeConfigurationsDir
-
refreshTaskPath
- Throws:
IOException
-
progressValue
- Specified by:
progressValuein interfaceAEManager
-
progressText
- Specified by:
progressTextin interfaceAEManager
-
getFile
-
inputValue
public String inputValue(String aName, String description, String aValue, ILogger log, String type, boolean notifyMe, Processor processor) - Specified by:
inputValuein interfaceAEManager
-
inputValue
-
confirmation
public boolean confirmation(String name, String message, Processor unit, boolean notifyMe) throws Exception - Specified by:
confirmationin interfaceAEManager- Throws:
Exception
-
inputDataTable
- Specified by:
inputDataTablein interfaceAEManager- Throws:
IOException
-
loadConfProperties
- Throws:
IOException
-
selectConfiguration
public String selectConfiguration(String confName, Node configNodes, boolean refreshTaskPath) throws IOException - Throws:
IOException
-
setDefaultUserConfiguration
-
getDefaultUserConfiguration
-
getCurrentConfig
-
getStartDir
- Specified by:
getStartDirin interfaceAEManager
-
inputChoice
public String inputChoice(String name, String description, String[] values, String defaultValue, Processor taskProcessor, boolean notifyMe) - Specified by:
inputChoicein interfaceAEManager
-
inputMultiChoice
-
getValue
-
inputInteger
-
inputFile
-
executeAnteaterMaven
-
getPomLocation
-
findAEconfigs
-
selectConfiguration
-
getTestPath
- Specified by:
getTestPathin interfaceAEManager
-
runTask
- Specified by:
runTaskin interfaceAEManager- Throws:
CommandException
-
createTestRunner
- Throws:
CommandException
-
removeTestPath
-
setTestPath
-
getWorkingDir
- Specified by:
getWorkingDirin interfaceAEManager
-
tasksChoice
public MultiTaskRunDialog tasksChoice(MultiTaskRunDialog dialog, String[] list, boolean exceptionIgnoreFlag, Object setup, Processor taskProcessor, boolean visible) - Specified by:
tasksChoicein interfaceAEManager
-
getSystemVariables
- Specified by:
getSystemVariablesin interfaceAEManager
-
setConsoleDefaultInput
- Specified by:
setConsoleDefaultInputin interfaceAEManager
-
isConsoleDefaultInput
- Specified by:
isConsoleDefaultInputin interfaceAEManager
-
getConfigNode
- Specified by:
getConfigNodein interfaceAEManager
-
getAllConfigNode
-
getTasksMap
-
getTestsDescList
-
getPublicTestsList
-
startTaskNotify
- Specified by:
startTaskNotifyin interfaceAEManager
-
choiceValue
public String choiceValue(String name, String description, Object[] possibleValues, ILogger log, boolean notifyMe, Processor processor) - Specified by:
choiceValuein interfaceAEManager
-
getInstance
-
resetConfiguration
-
resetConfigurationName
-
getConfigurationName
-
loadConfiguration
-
addRunner
-
removeRunner
- Specified by:
removeRunnerin interfaceAEManager
-
stopAllRunners
-
setBaseDir
-
getBaseDir
-
getOperationsClasses
-
setOperationsClasses
-
getOperationsMethod
-
getOperationsMethods
-
getRunners
-
finished
-
getUserPreferences
-
getTestsList
- Specified by:
getTestsListin interfaceAEManager
-
message
-
setConfigurationName
-
initUserPreferencesEncryption
-
close
-
addCloseHook
-
getRecipesScaner
-
setStartDir
-
initLogger
-
fillLogProperties
-