Package org.aspectj.ajde.internal
Class LstBuildConfigManager
java.lang.Object
org.aspectj.ajde.internal.LstBuildConfigManager
- All Implemented Interfaces:
BuildConfigManager
- Author:
- Mik Kersten
-
Field Summary
Fields inherited from interface org.aspectj.ajde.internal.BuildConfigManager
CONFIG_FILE_SUFFIX, DEFAULT_CONFIG_LABEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilesToConfig
(String configFilePath, List paths) Add files to a configuration.void
addListener
(BuildConfigListener configurationListener) Add a listner that will be notified of build configuration change eventsbuildModel
(String configFilePath) Build a model for the corresponding configuration file.Returns the currently active build configuration file.void
removeFilesFromConfig
(String configFilePath, List files) Remove files from a configuration.void
removeListener
(BuildConfigListener configurationListener) Remove a configuration listener.void
setActiveConfigFile
(String currConfigFilePath) Sets the currently active build configuration file.void
writeModel
(BuildConfigModel model) Save the given configuration model to the file that it was generated from.void
writePaths
(String configFilePath, List<String> files) Write a list of source files into a configuration file.
-
Field Details
-
currConfigFilePath
-
-
Constructor Details
-
LstBuildConfigManager
public LstBuildConfigManager()
-
-
Method Details
-
buildModel
Description copied from interface:BuildConfigManager
Build a model for the corresponding configuration file.- Specified by:
buildModel
in interfaceBuildConfigManager
- Parameters:
configFilePath
- full path to the file
-
writeModel
Description copied from interface:BuildConfigManager
Save the given configuration model to the file that it was generated from.- Specified by:
writeModel
in interfaceBuildConfigManager
-
writePaths
Description copied from interface:BuildConfigManager
Write a list of source files into a configuration file. File paths will be written relative to the path of the configuration file.- Specified by:
writePaths
in interfaceBuildConfigManager
-
addFilesToConfig
Description copied from interface:BuildConfigManager
Add files to a configuration.- Specified by:
addFilesToConfig
in interfaceBuildConfigManager
- Parameters:
configFilePath
- full path to the configuration filepaths
- list of full paths to the files to be added
-
removeFilesFromConfig
Description copied from interface:BuildConfigManager
Remove files from a configuration.- Specified by:
removeFilesFromConfig
in interfaceBuildConfigManager
- Parameters:
configFilePath
- full path to the configuration filefiles
- list of full paths to the files to be removed
-
getActiveConfigFile
Description copied from interface:BuildConfigManager
Returns the currently active build configuration file. The current active build configuration file that is set in this class is used for building and for updating the structure model.- Specified by:
getActiveConfigFile
in interfaceBuildConfigManager
- Returns:
- full path to the file
-
setActiveConfigFile
Description copied from interface:BuildConfigManager
Sets the currently active build configuration file.- Specified by:
setActiveConfigFile
in interfaceBuildConfigManager
- Parameters:
currConfigFilePath
- full path to the file
-
addListener
Description copied from interface:BuildConfigManager
Add a listner that will be notified of build configuration change events- Specified by:
addListener
in interfaceBuildConfigManager
-
removeListener
Description copied from interface:BuildConfigManager
Remove a configuration listener.- Specified by:
removeListener
in interfaceBuildConfigManager
-
getAllBuildConfigFiles
- Specified by:
getAllBuildConfigFiles
in interfaceBuildConfigManager
- Returns:
- list (of Strings) of all build configuration files found so far
-